/* ═══════════════════════════════════════════════════════════
   MARCOS BABALAWO — CSS AVANZADO
   Estética: Ritual refinado · Oscuro espiritual · Oro místico
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:          #faf8f4;
  --surface:     #f4f0e8;
  --surface-2:   #ede8dc;
  --text:        #1a1208;
  --muted:       #6b5e47;
  --line:        rgba(120, 30, 20, 0.12);
  --brand:       #e10600;
  --brand-light: #ff3b2f;
  --brand-glow:  rgba(225, 6, 0, 0.20);
  --accent:      #8b1a1a;
  --shadow:      0 20px 60px rgba(26, 18, 8, 0.12);
  --shadow-lg:   0 32px 80px rgba(26, 18, 8, 0.18);
  --radius:      20px;
  --radius-sm:   12px;
  --max:         1140px;
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;
  --font-ui:      'Montserrat', sans-serif;
  --ease:        cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg:          #080604;
  --surface:     #0f0d08;
  --surface-2:   #1a1710;
  --text:        #f5f0e8;
  --muted:       #a89070;
  --line:        rgba(225, 6, 0, 0.15);
  --brand:       #ff3b30;
  --brand-light: #ff6b60;
  --brand-glow:  rgba(255, 59, 48, 0.28);
  --accent:      #c0392b;
  --shadow:      0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-lg:   0 32px 80px rgba(0, 0, 0, 0.75);
}


/* ═══════════════════════════════════════════════════════════
   ORBS DE BLUR ROJO ANIMADOS — Fondo global
   ═══════════════════════════════════════════════════════════ */

/* Contenedor de orbs — fixed, detrás de todo */
.orbs-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  will-change: transform;
}
[data-theme="dark"] .orb { opacity: 0.28; }

/* Orb 1 — grande, esquina superior derecha */
.orb-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #e10600 0%, #ff4433 40%, transparent 70%);
  top: -180px; right: -160px;
  animation: orbFloat1 14s ease-in-out infinite;
}

/* Orb 2 — mediano, lado izquierdo */
.orb-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, #c00000 0%, #e10600 50%, transparent 70%);
  top: 35vh; left: -160px;
  animation: orbFloat2 18s ease-in-out infinite;
}

/* Orb 3 — pequeño, centro-bajo */
.orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #ff2200 0%, #e10600 45%, transparent 70%);
  bottom: 15vh; right: 10%;
  animation: orbFloat3 11s ease-in-out infinite;
}

/* Orb 4 — muy difuso, centro */
.orb-4 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8b0000 0%, #cc0000 40%, transparent 68%);
  top: 55vh; left: 30%;
  animation: orbFloat4 22s ease-in-out infinite;
  opacity: 0.10;
  filter: blur(110px);
}
[data-theme="dark"] .orb-4 { opacity: 0.18; }

/* Orb 5 — acento arriba izquierda */
.orb-5 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, #ff1a00 0%, #e10600 50%, transparent 70%);
  top: 8vh; left: 20%;
  animation: orbFloat5 16s ease-in-out infinite;
  opacity: 0.12;
}
[data-theme="dark"] .orb-5 { opacity: 0.22; }

@keyframes orbFloat1 {
  0%   { transform: translate(0,   0)   scale(1); }
  25%  { transform: translate(-60px, 80px) scale(1.08); }
  50%  { transform: translate(-30px, 140px) scale(0.95); }
  75%  { transform: translate(50px,  60px)  scale(1.04); }
  100% { transform: translate(0,   0)   scale(1); }
}
@keyframes orbFloat2 {
  0%   { transform: translate(0, 0)    scale(1); }
  30%  { transform: translate(80px, -100px) scale(1.10); }
  60%  { transform: translate(50px, 60px)   scale(0.92); }
  100% { transform: translate(0, 0)    scale(1); }
}
@keyframes orbFloat3 {
  0%   { transform: translate(0, 0)    scale(1); }
  20%  { transform: translate(-70px, -50px) scale(1.12); }
  55%  { transform: translate(40px, -90px)  scale(0.90); }
  80%  { transform: translate(-30px, 40px)  scale(1.06); }
  100% { transform: translate(0, 0)    scale(1); }
}
@keyframes orbFloat4 {
  0%   { transform: translate(0, 0)  scale(1); }
  35%  { transform: translate(-120px, -80px) scale(1.15); }
  70%  { transform: translate(80px,  100px)  scale(0.88); }
  100% { transform: translate(0, 0)  scale(1); }
}
@keyframes orbFloat5 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(90px, 70px)  scale(1.20); }
  75%  { transform: translate(-50px, 30px) scale(0.85); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Asegura que el contenido esté sobre los orbs */
header, main, footer { position: relative; z-index: 1; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  isolation: isolate;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }

.skip {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  left: 16px; top: 16px; width: auto; height: auto; padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  z-index: 9999; font-family: var(--font-ui);
}

/* ─── HEADER ─────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(200%) blur(20px) brightness(1.05);
  -webkit-backdrop-filter: saturate(200%) blur(20px) brightness(1.05);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 30%, var(--brand-light) 50%, var(--brand) 70%, transparent 100%);
  opacity: 0.5;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; font-family: var(--font-ui);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; overflow: hidden; transition: opacity 0.2s var(--ease); }
.brand:hover { opacity: 0.82; }
.brand img {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow), 0 4px 14px rgba(0,0,0,0.25);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.brand:hover img { box-shadow: 0 0 0 6px var(--brand-glow), 0 8px 24px var(--brand-glow); transform: scale(1.04); }
.brand .name { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .tag { display: block; font-size: 0.73rem; color: var(--muted); margin-top: 1px; letter-spacing: 0.02em; }

.navlinks { display: flex; align-items: center; gap: 8px; }
.navlinks a {
  color: var(--muted); font-weight: 500; font-size: 0.9rem;
  position: relative; padding: 8px 14px; border-radius: 999px; letter-spacing: 0.02em;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.navlinks a:hover { color: var(--text); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.navlinks a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.navlinks a[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0px;
  width: 20px; height: 2px; border-radius: 99px; background: var(--brand);
}
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; justify-content: flex-end; }
.iconbtn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent);
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  transition: background 0.25s var(--ease), transform 0.2s var(--ease-spring), border-color 0.25s;
}
.iconbtn:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.iconbtn:active { transform: translateY(0) scale(0.96); }
.iconbtn svg { width: 17px; height: 17px; }
.menu-btn { display: none; }
.mobilepanel { display: none; } /* legacy — replaced by drawer */

/* ─── BOTONES ─────────────────────────────────────────────── */
.btn {
  font-family: var(--font-ui); padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.04em; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s var(--ease), filter 0.25s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.12); opacity: 0; transition: opacity 0.2s; }
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 60%, #ff6060 100%);
  color: #ffffff; border-color: transparent;
  box-shadow: 0 6px 24px var(--brand-glow), 0 2px 8px rgba(0,0,0,0.1);
  text-transform: uppercase; font-size: 0.82rem;
}
.btn-primary:hover { box-shadow: 0 12px 40px var(--brand-glow), 0 4px 16px rgba(0,0,0,0.15); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(6px); text-transform: uppercase; font-size: 0.82rem; }
.btn-ghost:hover { border-color: var(--brand); }

/* ─── HERO ────────────────────────────────────────────────── */
.hero { padding: clamp(50px, 7vw, 90px) 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -200px; right: -100px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 65%);
  pointer-events: none; animation: breathe 6s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  50% { transform: scale(1.12) translate(-20px, 20px); opacity: 1; }
}

.heroGrid {
  display: grid; gap: 48px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center; position: relative; z-index: 1;
}

.kicker {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  color: var(--brand); font-family: var(--font-ui); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  animation: fadeInUp 0.8s var(--ease) both;
}
.kicker .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 8%, transparent); }
}

h1 {
  font-family: var(--font-display);
  margin: 20px 0 12px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95; letter-spacing: -0.02em; font-weight: 900; text-transform: uppercase;
  animation: fadeInUp 0.8s 0.1s var(--ease) both;
}

.subtitle {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
  margin: 12px 0 8px; animation: fadeInUp 0.8s 0.15s var(--ease) both;
}

.list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; animation: fadeInUp 0.8s 0.2s var(--ease) both; }
.list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.bullet {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 2px; margin-top: 7px;
  background: var(--brand); transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.list li:hover .bullet { transform: rotate(135deg); }

.ctaRow { display: flex; gap: 12px; align-items: center; margin-top: 28px; animation: fadeInUp 0.8s 0.25s var(--ease) both; flex-wrap: wrap; }
.help { color: var(--muted); font-size: 0.88rem; font-family: var(--font-ui); line-height: 1.5; }

/* ─── HERO CARD & FOTO ────────────────────────────────────── */
.heroCard {
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, rgba(0,0,0,0.08));
  padding: 16px 16px 14px;
  box-shadow: 0 8px 32px rgba(225,6,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
  animation: fadeInRight 0.9s 0.2s var(--ease) both;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  overflow: hidden;
}
[data-theme="dark"] .heroCard {
  background: #0e0e0e;
  border-color: color-mix(in srgb, var(--brand) 30%, rgba(255,255,255,0.06));
}
.heroCard:hover {
  box-shadow: 0 20px 60px rgba(225,6,0,0.18), 0 4px 20px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
/* Esquinas decorativas rojas */
.heroCard::before, .heroCard::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border-color: var(--brand); border-style: solid; opacity: 0.8;
  z-index: 3; pointer-events: none;
}
.heroCard::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.heroCard::after  { bottom: 56px; right: 8px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }

/* FOTO — imagen completa, sin línea, sin recorte */
.heroImgWrap {
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  /* Mismo fondo que el card = desaparece cualquier borde visible */
  background: #ffffff;
  border: none;
  outline: none;
  box-shadow: none;
  display: block;
  width: 100%;
  /* Elimina el gap baseline que genera la línea blanca */
  line-height: 0;
  font-size: 0;
}
[data-theme="dark"] .heroImgWrap {
  background: #0e0e0e;
}
.heroImgWrap img {
  /* Block + width 100% = sin espacio lateral */
  display: block;
  width: 100%;
  height: auto;
  /* Sin object-fit cover que recorta */
  object-fit: contain;
  object-position: center center;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: bottom;
  /* Taller image — show full photo */
  max-height: 580px;
  transition: transform 0.6s var(--ease);
}
.heroCard:hover .heroImgWrap img { transform: scale(1.03); }

.heroMeta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pill {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  color: var(--brand); font-family: var(--font-ui); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s var(--ease-spring);
}
.pill:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--brand) 15%, var(--surface)); }

/* ─── SECCIONES ──────────────────────────────────────────── */
.section { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); position: relative; }
.sectionTitle {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  margin: 0 0 6px; text-align: center; letter-spacing: -0.01em; text-transform: uppercase;
}
.sectionTitle::after {
  content: ''; display: block; width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  margin: 10px auto 8px; border-radius: 2px;
}
.sectionSub {
  text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 58ch;
  font-family: var(--font-ui); font-size: 0.95rem; line-height: 1.6;
}

/* ─── CARDS ───────────────────────────────────────────────── */
.grid3 { display: grid; gap: 20px; grid-template-columns: repeat(3,1fr); margin-top: 24px; }
.card {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,18,8,0.06);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease), border-color 0.3s;
  position: relative;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 5%, transparent) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.card:hover::before { opacity: 1; }
.card .thumb { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; position: relative; }
.card .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(26,18,8,0.3)); opacity: 0; transition: opacity 0.3s; }
.card:hover .thumb::after { opacity: 1; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); vertical-align: bottom; }
.card:hover .thumb img { transform: scale(1.06); }
.card .body { padding: 18px 20px 20px; }
.card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; letter-spacing: 0.03em; color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.card .actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.small {
  font-family: var(--font-ui); padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
}
.small:hover { transform: translateY(-1px); }
.small.primary { background: color-mix(in srgb, var(--brand) 15%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 40%, transparent); color: var(--brand); }
.small.primary:hover { background: color-mix(in srgb, var(--brand) 25%, var(--surface)); }

/* ─── SOCIAL ──────────────────────────────────────────────── */
.socialRow { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.socialCard {
  width: 76px; height: 76px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; box-shadow: 0 4px 16px rgba(26,18,8,0.06);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease), border-color 0.3s, color 0.3s;
  color: var(--muted);
}
.socialCard:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 12px 32px var(--brand-glow); border-color: var(--brand); color: var(--brand); }
.socialCard svg { width: 28px; height: 28px; }

/* ─── SPLIT / PANELS ──────────────────────────────────────── */
.split { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: start; }
.panel {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 4px 20px rgba(26,18,8,0.06);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s;
}
.panel:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 20%, transparent); }
.panel h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 10px; letter-spacing: 0.03em; }
.panel p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }

.facts { display: grid; gap: 12px; margin-top: 16px; }
.fact {
  display: flex; gap: 12px; padding: 14px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  transition: border-color 0.25s, background 0.25s;
}
.fact:hover { border-color: color-mix(in srgb, var(--brand) 30%, transparent); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.fact b { display: block; font-family: var(--font-ui); font-size: 0.9rem; margin-bottom: 2px; }
.fact span { color: var(--muted); font-size: 0.87rem; font-family: var(--font-ui); }

/* ─── FORMULARIO ──────────────────────────────────────────── */
.form { display: grid; gap: 12px; margin-top: 12px; }
.input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--surface));
  color: var(--text); font-family: var(--font-ui); font-size: 0.92rem; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); background: var(--surface); }
.input::placeholder { color: var(--muted); opacity: 0.7; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  padding: 0; border-top: 1px solid var(--line);
  color: var(--muted); font-family: var(--font-ui); font-size: 0.9rem;
  position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 30%, var(--brand-light) 50%, var(--brand) 70%, transparent 100%);
  opacity: 0.4;
}
.foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot a { color: var(--text); font-weight: 600; transition: color 0.2s; }
.foot a:hover { color: var(--brand); }

/* ─── MODAL ───────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; display: none; place-items: center;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(6px);
  padding: 20px; z-index: 1000;
}
.modal[open] { display: grid; }
.modalCard {
  width: min(980px, 100%); border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  background: var(--surface); box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  overflow: hidden; animation: scaleIn 0.3s var(--ease-spring) both;
}
@keyframes scaleIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modalTop { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; }
.modalTop b { font-size: 1rem; letter-spacing: 0.04em; }
.modalTop button { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-family: var(--font-ui); font-size: 0.82rem; transition: background 0.2s, border-color 0.2s; }
.modalTop button:hover { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-color: var(--brand); }
.modalBody { padding: 0; }
.modalBody iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }

/* ─── ANIMACIONES ─────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.grid3 .card:nth-child(1) { transition-delay: 0s; }
.grid3 .card:nth-child(2) { transition-delay: 0.08s; }
.grid3 .card:nth-child(3) { transition-delay: 0.16s; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .heroGrid { grid-template-columns: 1fr; }
  .navlinks { display: none; }
  .menu-btn { display: grid; }
  /* mobile drawer handles this now */
  .grid3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .brand { min-width: auto; }
  .nav-actions { min-width: auto; }
  h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
}

@media (max-width: 600px) {
  .ctaRow { flex-direction: column; align-items: stretch; }
  .ctaRow .btn { text-align: center; }
  .heroMeta { justify-content: center; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════ */
#scrollProgress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), #ff8070);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 999;
  box-shadow: 0 0 10px var(--brand-glow);
}

/* ═══════════════════════════════════════════════════════════
   HEADER SHRINK ON SCROLL
   ═══════════════════════════════════════════════════════════ */
header {
  transition: padding 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.4s;
}
header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.10);
}
header.scrolled .nav { padding: 10px 0; }
header.scrolled .brand img { width: 30px; height: 30px; }

/* ═══════════════════════════════════════════════════════════
   HAMBURGER BUTTON — ANIMADO X ↔ ☰
   ═══════════════════════════════════════════════════════════ */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 201;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.menu-btn:hover {
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  box-shadow: 0 0 0 4px var(--brand-glow);
}
/* 3 barras animadas */
.menu-btn .bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s, width 0.3s var(--ease);
  transform-origin: center;
}
.menu-btn .bar-2 { width: 14px; margin-left: -3px; }

/* Estado abierto → X */
.menu-btn.is-open .bar-1 { transform: translateY(7px) rotate(45deg); width: 20px; }
.menu-btn.is-open .bar-2 { opacity: 0; transform: scaleX(0); }
.menu-btn.is-open .bar-3 { transform: translateY(-7px) rotate(-45deg); width: 20px; }
.menu-btn.is-open { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-color: var(--brand); }

/* ═══════════════════════════════════════════════════════════
   MOBILE DRAWER — MENÚ LATERAL PREMIUM
   ═══════════════════════════════════════════════════════════ */

/* Overlay oscuro */
#mobileOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 198;
  backdrop-filter: blur(0px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
#mobileOverlay.active {
  display: block;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}

/* Drawer lateral */
#mobileDrawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0,0,0,0.25);
  z-index: 200;
  transform: translateX(105%);
  transition: transform 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#mobileDrawer.active { transform: translateX(0); }

/* Franja roja decorativa arriba del drawer */
#mobileDrawer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), transparent);
  flex-shrink: 0;
}

/* Header del drawer */
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-brand img {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.drawer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.drawer-brand-sub {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 1px;
}

/* Botón cerrar X */
#mobileClose {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
}
#mobileClose:hover {
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border-color: var(--brand);
  transform: rotate(90deg) scale(1.1);
}

/* Cuerpo del drawer — links */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mob-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.3s var(--ease);
  /* Animación de entrada desde derecha */
  opacity: 0;
  transform: translateX(24px);
}
.mob-link.in {
  opacity: 1;
  transform: translateX(0);
  transition: color 0.25s, background 0.25s, border-color 0.25s,
              opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mob-link:hover,
.mob-link[aria-current="page"] {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 22%, transparent);
}
.mob-link[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

.mob-link-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: background 0.25s, transform 0.25s var(--ease-spring);
}
.mob-link:hover .mob-link-icon { transform: scale(1.12); background: color-mix(in srgb, var(--brand) 18%, var(--surface)); }

.mob-link-text { flex: 1; }
.mob-link-label { display: block; }
.mob-link-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 1px;
}

/* Divider */
.drawer-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

/* Footer del drawer — CTA */
.drawer-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-footer .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 0.88rem;
}

/* Bloquea scroll del body cuando menú abierto */
body.menu-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════
   CURSOR GLOW (desktop)
   ═══════════════════════════════════════════════════════════ */
#cursorGlow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,6,0,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  top: 0; left: 0;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.4s;
  will-change: transform;
}
#cursorGlow.big {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(225,6,0,0.12) 0%, transparent 65%);
}
[data-theme="dark"] #cursorGlow { background: radial-gradient(circle, rgba(255,59,48,0.12) 0%, transparent 65%); }
[data-theme="dark"] #cursorGlow.big { background: radial-gradient(circle, rgba(255,59,48,0.20) 0%, transparent 65%); }

/* ═══════════════════════════════════════════════════════════
   ANIMACIONES AVANZADAS
   ═══════════════════════════════════════════════════════════ */

/* Shimmer en cards al hover */
.card::after, .panel::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.06) 50%,
    transparent 80%
  );
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}
.card:hover::after, .panel:hover::after { left: 160%; }

/* Glow en los botones CTA */
.btn-primary {
  animation: btnPulse 3s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 6px 24px var(--brand-glow), 0 2px 8px rgba(0,0,0,0.1); }
  50%       { box-shadow: 0 8px 32px rgba(225,6,0,0.35), 0 2px 8px rgba(0,0,0,0.1); }
}
.btn-primary:hover { animation: none; }

/* Texto gradiente en H1 — primera palabra en rojo */
.hero-accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 60%, #ff8060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Underline animado en navlinks */
.navlinks a::before {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.navlinks a:hover::before { transform: scaleX(1); }
.navlinks a[aria-current="page"]::before { transform: scaleX(0.6); }

/* Floating label en inputs */
.input-wrap { position: relative; }
.input-wrap .input { padding-top: 20px; padding-bottom: 8px; }
.input-wrap label {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
.input-wrap .input:focus ~ label,
.input-wrap .input:not(:placeholder-shown) ~ label {
  top: 10px;
  transform: translateY(0);
  font-size: 0.68rem;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Pill badge animado en kicker */
.kicker {
  position: relative;
  overflow: hidden;
}
.kicker::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: kickerShine 4s ease-in-out infinite;
}
@keyframes kickerShine {
  0%   { left: -100%; }
  40%  { left: 160%; }
  100% { left: 160%; }
}

/* Section title underline slide */
.sectionTitle::after {
  transition: width 0.6s var(--ease);
  animation: lineGrow 1s 0.3s var(--ease) both;
}
@keyframes lineGrow {
  from { width: 0; opacity: 0; }
  to   { width: 40px; opacity: 1; }
}

/* Floating action para testimonios */
.testi-card {
  position: relative;
  overflow: hidden;
}
.testi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: linear-gradient(180deg, var(--brand), var(--brand-light));
  transition: height 0.4s var(--ease);
  border-radius: 0 0 3px 3px;
}
.testi-card:hover::before { height: 100%; }

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE UPDATE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .menu-btn {
    display: flex !important;
  }
  .navlinks { display: none !important; }
}

/* ── Mobile nav: prevent brand text getting crushed ── */
@media (max-width: 960px) {
  .brand { flex: 1; min-width: 0; gap: 8px; }
  .brand img { width: 32px !important; height: 32px !important; flex-shrink: 0; }
  .brand .name { font-size: 0.82rem; }
  .brand .tag { display: none; }
  .nav-actions { gap: 6px; flex-shrink: 0; }
  /* Hide theme button on very small screens to give brand more space */
  .nav-actions .iconbtn:not(.menu-btn) { display: none; }
  /* Show CTA btn only on slightly wider mobile */
  .nav-actions .btn { display: none; }
  .menu-btn { display: flex !important; flex-shrink: 0; }
}
@media (max-width: 400px) {
  .brand .name { font-size: 0.76rem; letter-spacing: 0; }
}
