/*
 * COMUNICATIX — Sistema de diseño accesible WCAG 2.1 AA
 * Variables semánticas que flipean limpio entre modo día/noche.
 * ───────────────────────────────────────────────────────────────
 */

/* ── MODO NOCHE (default) ───────────────────────────── */
:root {
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Fondos — negro tinta cálido, sin tinte azul */
  --bg:        #0B0B0A;   /* fondo principal */
  --surface:   #141312;   /* paneles / cards */
  --card:      #1C1B18;   /* card elevado    */
  --invert:    #F2EEE4;   /* sección contraste (Nosotros) — hueso */
  --invert-s:  #E8E2D2;   /* superficie en sección contraste */

  /* Texto sobre fondos oscuros (bg / surface / card) */
  --text:      #F0ECE0;   /* principal  — ~16.7:1 ✓ */
  --text-b:    #A39C8C;   /* cuerpo     — ~7.2:1 ✓ */
  --text-l:    #8A8479;   /* etiquetas  — ~5.3:1 ✓ */
  --text-out:  rgba(240,236,224,0.28); /* stroke outline */

  /* Texto sobre fondos claros (--invert) */
  --inv-text:  #1A1815;   /* principal  — ~15.3:1 ✓ */
  --inv-b:     #57524A;   /* cuerpo     — ~6.7:1 ✓ */
  --inv-l:     #6E6858;   /* etiquetas  — ~4.8:1 ✓ */

  /* Color de marca — un solo acento: teal saturado, inspirado en Transformative Teal (Coloro/WGSN 2026) */
  --accent:    #127B7D;   /* principal: botones (blanco encima ~5.1:1 ✓) */
  --accent-t:  #28BBBD;   /* texto sobre oscuro — ~8.4:1 ✓ */
  --accent-ti: #0A5A5C;   /* texto sobre claro  — ~6.9:1 ✓ */

  /* Bordes / Nav */
  --border:    rgba(240,236,224,0.10);
  --border-i:  rgba(11,11,10,0.12);
  --nav-bg:    rgba(11,11,10,0.93);
  --nav-bg-channels: 11 11 10;
  --nav-text:  var(--text);

  /* Radios — variados a propósito, no todo pill */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
}

/* ── MODO DÍA ────────────────────────────────────────── */
.light {
  --bg:        #F2EEE4;
  --surface:   #EAE4D5;
  --card:      #E1DACB;
  --invert:    #0B0B0A;   /* Nosotros en tinta */
  --invert-s:  #141312;

  --text:      #1A1815;   /* ~15.3:1 ✓ */
  --text-b:    #57524A;   /* ~6.7:1 ✓ */
  --text-l:    #6E6858;   /* ~4.8:1 ✓ */
  --text-out:  rgba(26,24,21,0.18);

  --inv-text:  #F0ECE0;
  --inv-b:     #A39C8C;
  --inv-l:     #8A8479;

  --accent-t:  #0A5A5C;   /* teal legible sobre hueso */
  --accent-ti: #28BBBD;   /* teal legible sobre tinta */

  --border:    rgba(26,24,21,0.10);
  --border-i:  rgba(240,236,224,0.10);
  --nav-bg:    rgba(242,238,228,0.93);
  --nav-bg-channels: 242 238 228;
  --nav-text:  var(--text);
}

/* ── HERO: siempre en el tono de fondo del tema activo ─ */
:root {
  --hero-g1: rgba(18,123,125,0.16);
  --hero-bg: #0B0B0A;
  --hero-text: #F0ECE0;
  --hero-out: rgba(240,236,224,0.28);
}

/* En modo día el hero pasa a hueso */
.light {
  --hero-g1: rgba(18,123,125,0.07);
  --hero-bg: #F2EEE4;
  --hero-text: #1A1815;
  --hero-out: rgba(26,24,21,0.18);
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 { font-family: var(--font-head), system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* ─── GLOBAL UTILITIES ───────────────────────────────── */
.electric { color: var(--accent-t); }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* ─── SCROLL REVEALS (CSS puro) ─────────────────────── */
@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }
  [data-reveal="right"] {
    animation: reveal-right linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }
}

@keyframes reveal       { from { opacity:0; transform:translateY(28px) } to { opacity:1; transform:none } }
@keyframes reveal-right { from { opacity:0; transform:translateX(28px) } to { opacity:1; transform:none } }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(5rem, 9vh, 6rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 8% 15%, var(--hero-g1) 0%, transparent 60%),
    var(--hero-bg);
  background-attachment: fixed;
  transition: background 0.3s ease;
}

@media (max-width: 768px) { .hero { background-attachment: scroll; } }

.hero-bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 60% 70% at 8% 15%, var(--hero-g1) 0%, transparent 60%),
    linear-gradient(180deg, rgba(11,11,10,0.35) 0%, rgba(11,11,10,0.55) 55%, rgba(11,11,10,0.85) 100%);
}
.light .hero-overlay {
  background:
    radial-gradient(ellipse 60% 70% at 8% 15%, var(--hero-g1) 0%, transparent 60%),
    linear-gradient(180deg, rgba(242,238,228,0.45) 0%, rgba(242,238,228,0.65) 55%, rgba(242,238,228,0.88) 100%);
}
.hero-content, .hero > .line-accent { position: relative; z-index: 2; }

@supports (animation-timeline: scroll()) {
  .hero-content {
    animation: hero-exit linear both;
    animation-timeline: scroll(root block);
    animation-range: 8vh 65vh;
  }
}
@keyframes hero-exit { to { opacity:0.05; transform:translateY(-50px); } }


.hero-h1 {
  display: flex; flex-direction: column;
  font-size: clamp(2.6rem, 7vw, 7.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--hero-text);
  margin-bottom: 2.25rem;
}
.hero-line { display: block; }
.hero-h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--hero-out);
}
.hero-h1 .electric { color: var(--accent-t); }

/* Entrada animada: "La marca que" + "La gente elige." aparecen juntas primero;
   después el bloque del medio ("las IA / recomiendan.") se abre entre las dos
   empujándolas hacia arriba/abajo — efecto sorpresa, ver playHeroSplit() en main.js */
@keyframes hero-line-in { from { opacity:0; transform:translateY(32px); } to { opacity:1; transform:none; } }
.hero-line-top    { animation:hero-line-in 0.9s cubic-bezier(.16,.84,.44,1) both; animation-delay:0.1s; transition:transform 0.9s cubic-bezier(.65,0,.35,1); }
.hero-line-bottom { animation:hero-line-in 0.9s cubic-bezier(.16,.84,.44,1) both; animation-delay:0.24s; transition:transform 0.9s cubic-bezier(.65,0,.35,1); }
.hero-mid {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 1s cubic-bezier(.65,0,.35,1), opacity 0.6s ease 0.2s;
}
.hero-h1.split .hero-line-top    { transform: translateY(-14px); }
.hero-h1.split .hero-line-bottom { transform: translateY(10px); }

.hero-ai-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-t); margin-bottom: 1.5rem;
  animation: hero-line-in 0.9s cubic-bezier(.16,.84,.44,1) both;
}
.blink-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(18,123,125,0.55); }
  50%      { opacity: 0.45; box-shadow: 0 0 0 5px rgba(18,123,125,0); }
}

.hero-sub { animation:hero-line-in 0.9s cubic-bezier(.16,.84,.44,1) both; animation-delay:0.6s; }
.hero-ctas a { animation:hero-line-in 0.9s cubic-bezier(.16,.84,.44,1) both; }
.hero-ctas a:nth-child(1) { animation-delay:0.68s; }
.hero-ctas a:nth-child(2) { animation-delay:0.76s; }
.hero-ctas a:nth-child(3) { animation-delay:0.84s; }
.hero-tag { animation:hero-line-in 0.7s cubic-bezier(.16,.84,.44,1) both; }
.hero-tag:nth-child(1) { animation-delay:0.7s; }
.hero-tag:nth-child(2) { animation-delay:0.78s; }
.hero-tag:nth-child(3) { animation-delay:0.86s; }
.hero-tag:nth-child(4) { animation-delay:0.94s; }
.hero-tag:nth-child(5) { animation-delay:1.02s; }
.hero-tag:nth-child(6) { animation-delay:1.1s; }

.hero-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 768px) {
  .hero-strip { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-strip-right { display: none; }
}

.hero-sub {
  font-size: 1.02rem; line-height: 1.75;
  color: var(--text-b);
  border-left: 1.5px solid var(--accent); padding-left: 1.1rem;
}
.hero-ctas { display:flex; flex-direction:column; gap:1.1rem; }

.cta-primary {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: color 0.2s, gap 0.2s;
}
.cta-primary:hover { color: var(--accent-t); gap: 0.9rem; }

.cta-secondary {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-l);
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: color 0.2s;
}
.cta-secondary:hover { color: var(--text); }

.hero-tags { display:flex; flex-direction:column; gap:0.65rem; align-items:flex-end; }
.hero-tag  { font-size:0.68rem; font-weight:500; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-l); }

/* ─── NAV (parallax: se compacta y oscurece con el scroll) ─── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: calc(4rem - var(--nav-scroll, 0) * 0.5rem);
  display: flex; align-items: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  justify-content: space-between;
  background: rgb(var(--nav-bg-channels) / calc(0.32 + var(--nav-scroll, 0) * 0.61));
  backdrop-filter: blur(calc(5px + var(--nav-scroll, 0) * 15px));
  -webkit-backdrop-filter: blur(calc(5px + var(--nav-scroll, 0) * 15px));
  transition: height 0.25s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.4);
}
.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  width: 0%; background: var(--accent);
  transition: width 0.1s linear;
}

.nav-logo {
  display: flex; align-items: center;
}
.nav-logo-svg {
  height: 48px; width: auto; color: var(--nav-text);
  transition: color 0.25s ease;
}
@media (max-width: 480px) { .nav-logo-svg { height: 38px; } }
.nav-logo:hover .nav-logo-svg { color: var(--accent-t); }

.nav-links { display:flex; gap:0.6rem; list-style:none; }
.nav-links a {
  font-size:0.78rem; font-weight:600; color:var(--text-b);
  letter-spacing:0.02em; transition:color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
  padding:0.55rem 1.1rem; border:1px solid var(--border); border-radius:var(--radius-md);
  display:inline-block;
}
.nav-links a:hover { color:var(--text); border-color:var(--accent-t); background:var(--surface); transform:translateY(-1px); }

.nav-controls { display:flex; align-items:center; gap:0.75rem; }

/* lang switcher */
.lang-switch {
  display:flex; align-items:center; gap:0.15rem;
  border:1px solid var(--border); padding:0.25rem; border-radius:var(--radius-md);
  background:var(--surface);
}
.lang-switch-item { display:flex; align-items:center; }
.lang-btn {
  font-size:0.72rem; font-weight:700; letter-spacing:0.04em;
  color:var(--text-l); background:none; border:none; cursor:pointer;
  padding: 0.4rem 0.7rem; border-radius:var(--radius-sm);
  transition:color 0.2s, background 0.2s;
}
.lang-btn:hover    { color:var(--text); }
.lang-btn.active   { color:#fff; background:var(--accent); }
.lang-sep          { display:none; }

/* theme toggle */
.theme-btn {
  width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  background:var(--surface); border:1px solid var(--border); border-radius:50%; cursor:pointer;
  color:var(--text-b); transition:color 0.2s, border-color 0.2s, transform 0.4s;
}
.theme-btn:hover { color:var(--text); border-color:var(--accent-t); transform:rotate(20deg); }
.theme-btn svg   { width:18px; height:18px; }
.theme-btn svg[hidden] { display:none; }

.nav-cta {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #fff !important; border-radius:var(--radius-md);
  padding: 0.5rem 1.2rem;
  transition: background 0.2s, transform 0.15s; display:inline-block;
}
.nav-cta:hover { background:var(--accent); transform:translateY(-2px); }

.nav-hamburger {
  display:none; background:none; border:none; color:var(--text-b);
  cursor:pointer; padding:0.4rem; flex-direction:column; gap:5px; align-items:flex-end;
}
.nav-hamburger span {
  display:block; height:1.5px; background:currentColor;
  transition:transform 0.22s, opacity 0.22s, width 0.22s;
}
.nav-hamburger span:nth-child(1) { width:22px; }
.nav-hamburger span:nth-child(2) { width:15px; }
.nav-hamburger span:nth-child(3) { width:22px; }
.nav-hamburger.open span:nth-child(1) { width:22px; transform:rotate(45deg) translate(4.5px,4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity:0; }
.nav-hamburger.open span:nth-child(3) { width:22px; transform:rotate(-45deg) translate(4.5px,-4.5px); }

.nav-mobile {
  position:fixed; top:4rem; left:0; right:0;
  background:var(--nav-bg); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  padding:2.5rem clamp(1.5rem,4vw,3rem);
  display:flex; flex-direction:column; gap:1.75rem;
  border-bottom:1px solid var(--border); z-index:49;
  border-radius:0 0 var(--radius-lg) var(--radius-lg);
}
.nav-mobile[hidden] { display:none; }
.nav-mobile a {
  font-family:var(--font-head); font-size:1.3rem; font-weight:700;
  color:var(--text-b); transition:color 0.2s; letter-spacing:-0.02em;
}
.nav-mobile a:hover { color:var(--text); }
.nav-mobile .lang-switch { margin-top:0.5rem; padding-top:0.5rem; border-top:1px solid var(--border); background:none; border-left:none; border-right:none; border-bottom:none; border-radius:0; }
.nav-mobile .nav-cta { align-self:flex-start; }

@media (max-width: 900px) {
  .nav-links, .nav-cta.desktop, .hidden-mobile { display:none; }
  .nav-hamburger { display:flex; }
}

/* ─── SECCIONES BASE ─────────────────────────────────── */
.section { padding: clamp(5rem,10vw,8rem) clamp(1.5rem,5vw,4rem); }

.section-eyebrow {
  font-size:0.63rem; font-weight:600; letter-spacing:0.22em; text-transform:uppercase;
  color:var(--text-l); margin-bottom:2rem;
  display:flex; align-items:center; gap:0.75rem;
}
.section-eyebrow::before {
  content:''; display:inline-block; width:18px; height:1px;
  background:var(--accent-t); flex-shrink:0;
}

.section-title {
  font-size: clamp(2.4rem, 5.5vw, 6rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.04em;
  color: var(--text);
}

/* CTA compartido al pie de una sección — reemplaza el click-to-contact de las cards */
.section-cta {
  display: flex; align-items: center; gap: 0.6rem;
  width: fit-content; margin: 3.5rem auto 0;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text);
  transition: border-color 0.25s, background 0.25s, transform 0.2s, gap 0.2s;
}
.section-cta::after { content: "→"; transition: transform 0.2s; }
.section-cta:hover {
  border-color: var(--accent-t); background: var(--surface);
  transform: translateY(-2px); gap: 0.9rem;
}

/* ─── SERVICIOS ──────────────────────────────────────── */
.services-header {
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:2rem; flex-wrap:wrap; margin-bottom:3.5rem;
}
.services-sub { font-size:0.9rem; color:var(--text-b); line-height:1.8; max-width:22rem; }

.services-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1rem;
}
@media (max-width:900px) { .services-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px) { .services-grid { grid-template-columns:1fr; } }

.service-card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:clamp(1.75rem,3vw,2.5rem);
  display:flex; flex-direction:column; gap:1rem;
  min-height:clamp(260px,28vw,360px);
  position:relative; overflow:hidden;
  transition:background 0.25s, border-color 0.25s, transform 0.25s;
}
.service-card::after {
  content:''; position:absolute; bottom:0; left:0;
  height:2px; width:100%; background:var(--accent);
  transform:scaleX(0); transform-origin:left; transition:transform 0.35s ease;
}
.service-card:hover { background:var(--card); border-color:var(--accent-t); transform:translateY(-3px); }
.service-card:hover::after { transform:scaleX(1); }
.service-card:hover .service-icon { transform:scale(1.12) rotate(-4deg); }

.service-num { font-size:0.58rem; font-weight:600; letter-spacing:0.2em; color:var(--text-l); }
.service-icon { width:28px; height:28px; color:var(--accent-t); flex-shrink:0; stroke-width:1.5; margin-top:0.25rem; transition:transform 0.3s ease; }
.service-title {
  font-size:clamp(1.05rem,1.8vw,1.5rem); font-weight:700;
  color:var(--text); line-height:1.15; letter-spacing:-0.025em;
  flex:1; display:flex; align-items:flex-end;
}
.service-desc  { font-size:0.845rem; line-height:1.75; color:var(--text-b); }
.service-tags  {
  font-size:0.58rem; font-weight:600; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--accent-t); padding-top:1rem; border-top:1px solid var(--border);
}

/* ─── FORMATOS ───────────────────────────────────────── */
.formatos { background:var(--surface); }

.formatos-grid {
  display:grid; grid-template-columns:repeat(3,1fr); align-items:start;
  gap:clamp(1.25rem,2.5vw,2rem); margin-top:3.5rem;
}
@media (max-width:768px) { .formatos-grid { grid-template-columns:1fr; } }

.formato-card {
  background:var(--bg);
  border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:clamp(1.5rem,2.5vw,2rem);
  display:flex; flex-direction:column; gap:1rem;
  position:relative;
  transition:border-color 0.25s, transform 0.25s;
}
.formato-card:hover { border-color:var(--accent); transform:translateY(-5px); }
.formato-card:hover .formato-icon { animation:logo-shake 0.5s ease; }

/* Producción es la tarjeta destacada */
.formato-card.featured {
  background:var(--accent);
  border-color:var(--accent);
}
.formato-card.featured .formato-tag   { color:rgba(255,255,255,0.7); }
.formato-card.featured .formato-title { color:#fff; }
.formato-card.featured .formato-desc  { color:rgba(255,255,255,0.82); }
.formato-card.featured .formato-ideal { color:rgba(255,255,255,0.65); border-top-color:rgba(255,255,255,0.2); }
.formato-card.featured .formato-badge { background:rgba(255,255,255,0.18); color:#fff; }
.formato-card.featured:hover { border-color:var(--accent); }

.formato-tag {
  font-size:0.6rem; font-weight:700; letter-spacing:0.2em; text-transform:uppercase;
  color:var(--accent-t);
}
.formato-icon {
  width:48px; height:48px; color:var(--accent-t); stroke-width:1.4; flex-shrink:0;
  align-self:center;
}
.formato-card.featured .formato-icon { color:rgba(255,255,255,0.9); }

.formato-title {
  font-size:clamp(1.4rem,2.4vw,1.9rem); font-weight:700;
  color:var(--text); line-height:1.15; letter-spacing:-0.025em;
}
.formato-desc { font-size:0.95rem; line-height:1.7; color:var(--text-b); }
.formato-ideal {
  font-size:0.78rem; line-height:1.6; color:var(--text-l);
  padding-top:1rem; border-top:1px solid var(--border);
}
.formato-badge {
  display:inline-block; align-self:flex-start;
  font-size:0.6rem; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  background:var(--surface); color:var(--text-l);
  padding:0.3rem 0.65rem; border-radius:999px;
  border:1px solid var(--border);
}

/* ─── NOSOTROS (siempre invertido) ──────────────────── */
.nosotros {
  background: var(--invert);
  background-attachment: fixed;
  transition: background 0.3s ease;
}
@media (max-width:768px) { .nosotros { background-attachment:scroll; } }

.nosotros .section-eyebrow { color:var(--inv-l); }
.nosotros .section-eyebrow::before { background:var(--accent); }

.nosotros-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:clamp(3rem,7vw,6rem); margin-top:2.5rem; align-items:start;
}
@media (max-width:768px) { .nosotros-grid { grid-template-columns:1fr; } }

.nosotros-statement {
  font-size:clamp(1.6rem,3vw,2.6rem); font-weight:700;
  line-height:1.15; letter-spacing:-0.03em; color:var(--inv-text);
}
.nosotros-statement .accent { color:var(--accent); }

.nosotros-stats {
  display:grid; grid-template-columns:1fr 1fr; gap:2rem;
  margin-top:3rem; padding-top:2.5rem; border-top:1px solid var(--border-i);
}
.stat-n {
  font-size:clamp(1.8rem,3.2vw,2.8rem); font-weight:700;
  color:var(--inv-text); line-height:1;
  display:flex; align-items:baseline; gap:0.2em; letter-spacing:-0.03em;
}
.stat-n.stat-n-sm { font-size:clamp(1.3rem,2.2vw,2rem); }
.stat-sup { font-size:0.38em; color:var(--accent); letter-spacing:0.08em; text-transform:uppercase; font-weight:700; vertical-align:super; }
.stat-l   { font-size:0.78rem; color:var(--inv-l); margin-top:0.4rem; line-height:1.4; }

.nosotros-body { font-size:0.95rem; line-height:1.85; color:var(--inv-b); display:flex; flex-direction:column; gap:1.1rem; }
.nosotros-cta {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); transition: gap 0.2s;
}
.nosotros-cta:hover { gap: 0.9rem; }

/* ─── CONTACTO ───────────────────────────────────────── */
.contacto { background: var(--surface); }

.contact-grid {
  display:grid; grid-template-columns:1fr 1.3fr;
  gap:clamp(3rem,7vw,6rem); margin-top:2.5rem; align-items:start;
}
@media (max-width:768px) { .contact-grid { grid-template-columns:1fr; } }

.contact-tagline {
  font-size:clamp(2rem,4.5vw,4.2rem); font-weight:700;
  line-height:0.97; letter-spacing:-0.04em; color:var(--text);
}
.contact-tagline .electric { color:var(--accent-t); }

.contact-info { margin-top:2.5rem; display:flex; flex-direction:column; gap:1.2rem; }
.contact-info-row {
  display:flex; align-items:flex-start; gap:0.85rem;
  font-size:0.875rem; color:var(--text-b); line-height:1.5;
}
.contact-info-row strong { color:var(--text); font-weight:500; display:block; }
.contact-info-icon { flex-shrink:0; margin-top:2px; color:var(--accent-t); }

.contact-socials { margin-top:3rem; display:flex; gap:1.5rem; flex-wrap:wrap; }
.contact-socials a {
  font-size:0.68rem; font-weight:600; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--text-l); transition:color 0.2s;
}
.contact-socials a:hover { color:var(--text); }

.contact-form { display:flex; flex-direction:column; gap:1.25rem; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (max-width:480px) { .form-row { grid-template-columns:1fr; } }

.form-field { display:flex; flex-direction:column; gap:0.45rem; }
.form-label { font-size:0.63rem; font-weight:600; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-l); }

.form-input, .form-select, .form-textarea {
  background:var(--bg); border:1px solid var(--border);
  color:var(--text); font-family:var(--font-body),system-ui,sans-serif;
  font-size:0.9rem; padding:0.8rem 1rem;
  outline:none; transition:border-color 0.2s, box-shadow 0.2s;
  width:100%; border-radius:var(--radius-sm);
}
.form-input::placeholder, .form-textarea::placeholder { color:var(--text-l); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color:var(--accent-t);
  box-shadow:0 0 0 3px rgba(18,123,125,0.15);
  outline:2px solid transparent;
}
.form-select { appearance:none; cursor:pointer; }
.form-textarea { resize:vertical; min-height:130px; }

.form-submit {
  background:var(--accent); color:#fff; border-radius:var(--radius-md);
  font-family:var(--font-body),system-ui,sans-serif;
  font-size:0.73rem; font-weight:600; letter-spacing:0.12em; text-transform:uppercase;
  padding:1rem 2rem; border:none; cursor:pointer; align-self:flex-start;
  transition:background 0.2s, transform 0.15s;
}
.form-submit:hover { transform:translateY(-2px); }
.form-submit:focus-visible { outline:3px solid var(--accent-t); outline-offset:3px; }

.form-success {
  padding:3rem 2rem; border:1px solid var(--accent); border-radius:var(--radius-lg);
  background:rgba(18,123,125,0.06);
  display:flex; flex-direction:column; gap:0.75rem;
}
.form-success[hidden] { display:none; }
.form-success-title { font-size:1.4rem; font-weight:700; color:var(--accent-t); }
.form-success-text  { font-size:0.875rem; color:var(--text-b); line-height:1.7; }
.form-success-again {
  font-size:0.68rem; font-weight:600; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--text-l); background:none; border:none; cursor:pointer; margin-top:0.5rem;
  align-self:flex-start;
}
.form-success-again:hover { color:var(--text); }

/* ─── MARCAS (grilla estática de logos) ─────────────── */
.marcas {
  background:#F2EEE4;
  padding:clamp(2.5rem,5vw,4rem) clamp(1.5rem,5vw,4rem);
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.marcas-label {
  text-align:center;
  font-size:0.63rem; font-weight:600; letter-spacing:0.22em; text-transform:uppercase;
  color:#6E6858; margin-bottom:2.25rem;
}
.marcas-grid {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:clamp(1.75rem,4vw,3.25rem);
}
.marca-logo {
  width:auto; max-width:160px; object-fit:contain;
  filter:grayscale(1) contrast(1.15) opacity(0.75); transition:filter 0.3s ease, opacity 0.3s ease;
}
.marca-logo:hover { filter:none; opacity:1; animation:logo-shake 0.5s ease; }
@keyframes logo-shake {
  0%, 100% { transform:translateX(0) rotate(0); }
  20%      { transform:translateX(-4px) rotate(-4deg); }
  40%      { transform:translateX(4px) rotate(4deg); }
  60%      { transform:translateX(-3px) rotate(-3deg); }
  80%      { transform:translateX(3px) rotate(2deg); }
}

/* ─── EQUIPO ─────────────────────────────────────────── */
.equipo { background:var(--surface); }
.equipo-grid {
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:clamp(1.5rem,3vw,2.5rem); margin-top:3.5rem;
}
@media (max-width:700px) { .equipo-grid { grid-template-columns:1fr; } }

.equipo-card {
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:clamp(1.75rem,3vw,2.5rem);
  display:flex; flex-direction:column; gap:0.75rem;
  transition:border-color 0.25s, transform 0.25s;
}
.equipo-card:hover { border-color:var(--accent-t); transform:translateY(-4px); }
.equipo-avatar {
  width:96px; height:96px; border-radius:var(--radius-md);
  object-fit:cover; margin-bottom:0.75rem;
  border:1px solid var(--border);
  filter:grayscale(1) contrast(1.02) brightness(1.03);
  transition:filter 0.4s ease;
}
.equipo-card:hover .equipo-avatar { filter:grayscale(0); }
.equipo-avatar-placeholder {
  display:flex; align-items:center; justify-content:center; border-radius:var(--radius-md);
  background:var(--surface); border:1px solid var(--border);
  color:var(--accent-t); font-family:var(--font-head); font-weight:700; font-size:1.2rem;
}
.equipo-name { font-size:1.3rem; font-weight:700; color:var(--text); letter-spacing:-0.02em; }
.equipo-role {
  font-size:0.72rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--accent-t);
}
.equipo-bio { font-size:0.875rem; line-height:1.75; color:var(--text-b); flex:1; }
.equipo-linkedin {
  display:inline-flex; align-items:center; gap:0.5rem; align-self:flex-start;
  font-size:0.72rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--text-l); padding-top:0.85rem; margin-top:0.25rem;
  border-top:1px solid var(--border); transition:color 0.2s;
}
.equipo-linkedin:hover { color:var(--accent-t); }

/* ─── PARTNERSHIP ────────────────────────────────────── */
.partnership-grid {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:clamp(1.25rem,2.5vw,1.75rem); margin-top:3.5rem;
}
@media (max-width:900px) { .partnership-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px) { .partnership-grid { grid-template-columns:1fr; } }

.partner-card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:clamp(1.5rem,2.5vw,2rem);
  display:flex; flex-direction:column; align-items:flex-start; gap:1.1rem;
  transition:border-color 0.25s, transform 0.25s;
}
.partner-card:hover { border-color:var(--accent-t); transform:translateY(-4px); }
.partner-logo-wrap {
  height:72px; width:100%;
  display:flex; align-items:center; justify-content:center;
}
.partner-logo { max-height:72px; max-width:100%; width:auto; object-fit:contain; object-position:center; }
.partner-logo-darkmark { filter:invert(1); }
.light .partner-logo-darkmark { filter:none; }
.partner-text { display:flex; flex-direction:column; text-align:left; width:100%; }
.partner-name { font-weight:700; color:var(--text); font-size:0.9rem; }
.partner-desc { font-size:0.82rem; line-height:1.65; color:var(--text-b); }

/* ─── FAQ ────────────────────────────────────────────── */
.faq { background:var(--surface); }
.faq-list {
  display:flex; flex-direction:column; gap:0.75rem;
  max-width:44rem; margin-top:3.5rem;
}
.faq-item {
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-md);
  overflow:hidden; transition:border-color 0.25s;
}
.faq-item.open { border-color:var(--accent-t); }
.faq-trigger {
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:1rem;
  background:none; border:none; cursor:pointer; text-align:left;
  padding:1.1rem 1.4rem; font-family:var(--font-body),system-ui,sans-serif;
  font-size:0.95rem; font-weight:600; color:var(--text);
}
.faq-icon {
  flex-shrink:0; width:22px; height:22px; display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; color:var(--accent-t); transition:transform 0.3s ease;
}
.faq-item.open .faq-icon { transform:rotate(45deg); }
.faq-panel { display:grid; grid-template-rows:0fr; transition:grid-template-rows 0.35s ease; }
.faq-item.open .faq-panel { grid-template-rows:1fr; }
.faq-answer {
  overflow:hidden; min-height:0; transition:padding 0.35s ease;
  padding:0 1.4rem; font-size:0.88rem; line-height:1.75; color:var(--text-b);
}
.faq-item.open .faq-answer { padding:0 1.4rem 1.2rem; }

/* ─── WHATSAPP FLOTANTE ──────────────────────────────── */
.whatsapp-float {
  position:fixed; right:1.5rem; bottom:1.5rem; z-index:60;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 20px rgba(0,0,0,0.28);
  transition:transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform:scale(1.08); box-shadow:0 8px 26px rgba(0,0,0,0.35); }
.whatsapp-float svg { width:28px; height:28px; }
@media (max-width:480px) {
  .whatsapp-float { right:1rem; bottom:1rem; width:50px; height:50px; }
  .whatsapp-float svg { width:25px; height:25px; }
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background:var(--bg);
  border-top:1px solid var(--border);
  padding:clamp(2.5rem,4vw,3.5rem) clamp(1.5rem,5vw,4rem);
}
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap; }
.footer-logo  { display:flex; align-items:center; }
.footer-logo-svg { height:18px; width:auto; color:var(--text-l); }
.footer-copy  { font-size:0.7rem; color:var(--text-l); letter-spacing:0.04em; }
.footer-links { display:flex; flex-wrap:wrap; gap:1rem 1.5rem; }
.footer-links a { font-size:0.7rem; font-weight:500; color:var(--text-l); letter-spacing:0.04em; transition:color 0.2s; }
.footer-links a:hover { color:var(--text); }

/* ─── UTILS ──────────────────────────────────────────── */
.line-accent {
  height:1px;
  background:linear-gradient(to right, var(--accent), rgba(18,123,125,0.2), transparent);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}
