/* ==========================================================================
   ESTUDIO CONTABLE — Hoja de estilos principal
   --------------------------------------------------------------------------
   Para cambiar la paleta de colores o tipografías, edita solo las variables
   de :root. Todo el sitio se actualiza automáticamente.
   ========================================================================== */

:root {
  /* Colores de marca */
  --navy-950: #050F1F;
  --navy-900: #081A33;
  --navy-800: #0A1F3D;
  --navy-700: #13305A;
  --navy-500: #3A5680;
  --navy-100: #E6ECF4;
  --gold:      #B08D57;
  --gold-soft: #D8C6A0;
  --ivory:     #F7F5F0;
  --white:     #FFFFFF;
  --ink:       #141D2B;
  --muted:     #5A6575;
  --line:      rgba(10, 31, 61, .12);
  --line-light: rgba(255, 255, 255, .14);
  --success:   #2E7D5B;

  /* Colores del contenido (cabecera y pie usan los de arriba) */
  --accent:     #2E6FE0;
  --accent-600: #2459B8;
  --accent-200: #BFD4F8;
  --accent-50:  #EEF4FE;
  --surface:    #F4F7FB;
  --error:     #B3412F;

  /* Tipografías */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-accent: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala */
  --radius: 4px;
  --radius-lg: 10px;
  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 2px 10px rgba(8, 26, 51, .06);
  --shadow-md: 0 18px 50px -18px rgba(8, 26, 51, .28);
  --shadow-lg: 0 40px 80px -30px rgba(8, 26, 51, .45);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h4 { margin: 0; font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1rem; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--navy-800); color: var(--white); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 999; background: var(--navy-800); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; }

em { font-style: italic; }
h1 em, h2 em { font-family: var(--font-accent); font-weight: 500; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--navy-800); --fg: var(--white); --bd: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.7rem;
  font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap; position: relative;
}
.btn svg { font-size: 1.1em; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary:hover { --bg: var(--navy-700); --bd: var(--navy-700); }
.btn--gold { --bg: var(--gold); --bd: var(--gold); --fg: var(--white); }
.btn--gold:hover { --bg: #9C7A47; --bd: #9C7A47; }
.btn--ghost { --bg: transparent; --fg: var(--navy-800); --bd: rgba(10, 31, 61, .25); }
.btn--ghost:hover { --bg: var(--navy-800); --fg: var(--white); --bd: var(--navy-800); }
.btn--outline-light { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.4); }
.btn--outline-light:hover { --bg: var(--white); --fg: var(--navy-900); --bd: var(--white); }
.btn--sm { padding: .7rem 1.2rem; font-size: .82rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Encabezado
   -------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header.is-scrolled {
  --header-h: 70px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { position: relative; display: block; flex-shrink: 0; }
.brand__logo { height: 40px; width: auto; transition: opacity .3s; }
.brand__logo--light { position: absolute; inset: 0; opacity: 0; }

.nav__list { display: flex; gap: 2.2rem; }
.nav__link {
  font-size: .88rem; font-weight: 500; color: var(--ink); position: relative; padding: .4rem 0;
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy-800); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__home, .nav__extra { display: none; }
.header__inner .nav { margin-left: auto; }
.header__cta { margin-left: 2.2rem; }
.nav__overlay[hidden] { display: none; }
.nav__wa {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%;
  padding: .9rem 1rem; border: 1px solid var(--navy-800); border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; color: var(--navy-800);
}
.nav__wa .wa-icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--navy-900); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; left: 18px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; left: 12px; transform: rotate(-45deg); }

.header__actions { display: flex; align-items: center; gap: 1rem; }
/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(1.5rem, 3vw, 2.5rem)) 0 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
  overflow: hidden;
}
/* Líneas tipo libro contable: detalle de identidad */
.hero__ledger {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 47px, rgba(10, 31, 61, .045) 47px 48px);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.6) 45%, transparent 75%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.6) 45%, transparent 75%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 4.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--navy-900);
  margin-bottom: 1.6rem;
}
.hero__title em { color: var(--accent); }
.hero__text { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 34rem; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__text { margin-bottom: 2rem; }
.hero__points { display: grid; gap: .75rem; padding-top: 1.8rem; border-top: 1px solid var(--line); max-width: 30rem; }
.hero__points li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; font-weight: 600; color: var(--navy-900); }
.hero__points svg { flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--navy-800); color: var(--accent-200); stroke-width: 2.4; }

.hero__media { position: relative; }
.hero__photo {
  margin: 0; position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 50%, rgba(8, 26, 51, .35)); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::before {
  content: ""; position: absolute; inset: 2rem -1.5rem -1.5rem 2rem;
  border: 1px solid var(--accent-200); border-radius: var(--radius-lg); z-index: -1;
}
.hero__card {
  position: absolute; left: -2.5rem; bottom: 2.5rem;
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.3rem 1rem 1rem; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.hero__card strong { display: block; font-size: .9rem; color: var(--navy-900); line-height: 1.3; }
.hero__card span { font-size: .8rem; color: var(--muted); }
.hero__card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-800); color: var(--accent-200); font-size: 1.2rem; flex-shrink: 0; }
.hero__seal {
  position: absolute; top: -2.2rem; right: -2.2rem; width: 124px; height: 124px;
  display: grid; place-items: center; background: var(--navy-800); border-radius: 50%; color: var(--white);
  box-shadow: var(--shadow-md);
}
.hero__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero__seal text { fill: var(--accent-200); stroke: none; font-family: var(--font-body); font-size: 8.6px; font-weight: 600; letter-spacing: 2.2px; }
.hero__seal span { font-family: var(--font-accent); font-size: 1.9rem; font-style: italic; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Franja de especialidades */
.strip { position: relative; background: var(--navy-900); color: rgba(255,255,255,.82); overflow: hidden; padding: 1.15rem 0; }
.strip__track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; }
.strip span { font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.strip i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { padding: clamp(3rem, 5vw, 4.25rem) 0; position: relative; }
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy-100); color: var(--navy-800); font-size: 1.3rem; flex-shrink: 0; }
.ico--lg { width: 56px; height: 56px; font-size: 1.6rem; }
.ico svg { stroke-width: 1.5; }

/* Encabezado de sección: línea dorada + título */
.head { text-align: center; margin: 0 auto clamp(1.6rem, 3vw, 2.2rem); }
.head--left { text-align: left; margin-left: 0; }
.head__rule { display: block; width: 44px; height: 2px; background: var(--accent); margin: 0 auto 1.1rem; }
.head--left .head__rule { margin-left: 0; }
.head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--navy-900); }
.head--light h2 { color: var(--white); }

/* Quiénes somos */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-md); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__content .head { margin-bottom: 1.2rem; }
.about__text { font-size: 1.1rem; color: var(--muted); max-width: 30rem; margin-bottom: 2rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.values li { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.values strong { font-size: .95rem; color: var(--navy-900); }

/* Servicios */
.services { background: var(--surface); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service .ico { margin-bottom: .8rem; transition: background .35s var(--ease), color .35s var(--ease); }
.service h3 { font-size: 1.1rem; color: var(--navy-900); }
.service p { font-size: .93rem; color: var(--muted); margin: 0; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service:hover .ico { background: var(--navy-800); color: var(--accent-200); }

/* Por qué elegirnos */
.why { background: var(--navy-900); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.why__grid li { text-align: center; padding: 2rem 1.2rem; border: 1px solid var(--line-light); border-radius: 16px; background: rgba(255,255,255,.03); }
.why__grid .ico { background: rgba(216,198,160,.12); color: var(--accent-200); margin-bottom: 1rem; }
.why__grid h3 { font-size: 1rem; color: var(--white); font-weight: 600; letter-spacing: 0; }

/* Galería */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item { position: relative; overflow: hidden; border-radius: 14px; padding: 0; aspect-ratio: 4 / 3; background: var(--navy-100); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,15,31,.7)); }
.gallery__caption { position: absolute; left: 1.1rem; bottom: .9rem; z-index: 1; color: var(--white); font-size: .9rem; font-weight: 600; text-align: left; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 4rem 1rem;
  background: rgba(5, 15, 31, .94); opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255,255,255,.85); font-size: 1rem; font-weight: 500; margin-top: 1rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1.4rem; color: #fff; font-size: 2.6rem; line-height: 1; width: 48px; height: 48px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; display: grid; place-items: center; font-size: 1.4rem; transition: background .3s; }
.lightbox__nav:hover { background: rgba(255,255,255,.12); }
.lightbox__nav--prev { left: 1.4rem; }
.lightbox__nav--next { right: 1.4rem; }

/* Equipo */
.team { background: var(--surface); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin-inline: auto; }
.member { text-align: center; }
.member__photo { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--navy-100); margin-bottom: 1rem; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.1rem; color: var(--navy-900); }
.member p { margin: .3rem 0 0; font-size: .85rem; color: var(--accent); font-weight: 600; }

/* Testimonios */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testimonial { margin: 0; padding: 1.8rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); display: flex; flex-direction: column; gap: 1rem; }
.testimonial__quote { width: 30px; height: 24px; fill: var(--accent-200); stroke: none; }
.testimonial blockquote { margin: 0; flex: 1; font-size: 1rem; line-height: 1.65; color: var(--ink); }
.testimonial figcaption { padding-top: 1rem; border-top: 1px solid var(--line); }
.testimonial figcaption strong { display: block; font-size: .95rem; color: var(--navy-900); }
.testimonial figcaption span { font-size: .85rem; color: var(--muted); }

/* Preguntas frecuentes */
.faq { background: var(--surface); }
.faq__wrap { max-width: 820px; }
.faq__list { display: grid; gap: .75rem; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.4rem; transition: border-color .3s; }
.faq__item[open] { border-color: var(--accent-200); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-size: 1rem; font-weight: 700; color: var(--navy-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background-color: var(--navy-100);
  background-image:
    linear-gradient(var(--navy-800), var(--navy-800)),
    linear-gradient(var(--navy-800), var(--navy-800));
  background-size: 10px 1.5px, 1.5px 10px; background-position: center; background-repeat: no-repeat;
  transition: transform .35s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer p { color: var(--muted); margin: 0; padding: 0 0 1.2rem; }

/* Contacto */
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.contact__info .head { margin-bottom: 1.8rem; }
.contact__list { display: grid; gap: .8rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; padding: .9rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.contact__list small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.contact__list a, .contact__list span:not(.contact__icon) { color: var(--navy-900); font-weight: 600; font-size: .95rem; }
.contact__list a:hover { color: var(--accent); }
.contact__icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--navy-100); color: var(--navy-800); font-size: 1.15rem; }
.contact__info svg path[d^="M20.5"] { fill: currentColor; stroke: none; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.2rem, 2.4vw, 1.8rem); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--navy-900); margin-bottom: .45rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); width: 100%;
  padding: .8rem 1rem; background: var(--surface); border: 1px solid transparent; border-radius: 10px;
  transition: border-color .3s, background .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1F3D' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.8rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(19, 48, 90, .08); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background-color: #FDF6F4; }
.field__error { color: var(--error); font-size: .78rem; margin-top: .35rem; }
.field__error:empty { display: none; }
.field--check { margin-bottom: 1.4rem; }
.check { display: flex !important; gap: .7rem; align-items: flex-start; font-weight: 400 !important; font-size: .85rem !important; color: var(--muted) !important; cursor: pointer; line-height: 1.5; }
.check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--navy-800); appearance: auto; -webkit-appearance: checkbox; padding: 0; }
.check a { color: var(--navy-800); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { border-radius: 10px; }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.form__status { margin: 1rem 0 0; font-size: .9rem; text-align: center; min-height: 1.4em; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--error); }

/* --------------------------------------------------------------------------
   Bloques comerciales (problemas, servicios con foto, secciones divididas)
   -------------------------------------------------------------------------- */
.head p { margin: .8rem auto 0; max-width: 34rem; color: var(--muted); font-size: 1.02rem; }
.head--left p { margin-left: 0; }

/* Problemas */
.pains { background: var(--white); }
.pains__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pain { padding: 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.pain h3 { font-size: 1.02rem; color: var(--navy-900); margin: 1rem 0 .4rem; }
.pain p { font-size: .9rem; color: var(--muted); margin: 0; }
.ico--alert { background: #FBF3E9; color: #A8722F; }

/* Servicios con foto */
.group-label { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.services__grid + .group-label { margin-top: 2rem; }
.svc { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc__img { position: relative; margin: 0; aspect-ratio: 16 / 10; background: var(--navy-100); overflow: hidden; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .svc__img img { transform: scale(1.04); }
.svc__tag { position: absolute; top: .8rem; left: .8rem; padding: .3rem .7rem; border-radius: 999px; background: var(--accent); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.svc__body { padding: 1.3rem 1.4rem 1.5rem; }
.svc__body h3 { font-size: 1.1rem; color: var(--navy-900); margin-bottom: .4rem; }
.svc__body p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Secciones divididas: foto + texto */
.split--alt { background: var(--surface); }
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.split__grid--reverse > :first-child { order: 2; }
.split__photo, .where__photo { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--navy-100); box-shadow: var(--shadow-md); }
.split__photo img, .where__photo img { width: 100%; height: 100%; object-fit: cover; }
.split .head, .where .head, .contact__info .head { margin-bottom: 1rem; }
.split__text { font-size: 1.05rem; color: var(--muted); max-width: 32rem; margin-bottom: 1.5rem; }
.checks { display: grid; gap: .8rem; margin-bottom: 1.6rem; }
.checks li { position: relative; padding-left: 2.1rem; font-weight: 600; color: var(--navy-900); font-size: .97rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1rem; width: 22px; height: 22px; border-radius: 50%; background: var(--navy-800)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8C6A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks--sm li { font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .4rem .85rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--navy-800); }

/* Pasos */
.steps { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step { text-align: center; padding: 1.5rem 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.step .ico { margin-bottom: 1rem; background: var(--navy-800); color: var(--accent-200); }
.step h3 { font-size: 1.05rem; color: var(--navy-900); margin-bottom: .4rem; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Rubros */
.sectors { background: var(--navy-900); }
.sectors__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-width: 900px; margin: 0 auto; }
.sectors__list li { padding: .7rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-light); background: rgba(255,255,255,.04); color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 600; }

/* Dónde estamos */
.where { background: var(--surface); }
.where__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.where__photo { aspect-ratio: 16 / 11; }
.where__cards { display: grid; gap: .8rem; }
.where__card { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.where__card strong { display: block; color: var(--navy-900); font-size: .95rem; }
.where__card span:not(.ico) { font-size: .88rem; color: var(--muted); }

.contact__info .checks { margin-bottom: 1.6rem; }
.contact__info .split__text { margin-bottom: 1.2rem; }
.testimonials { background: var(--white); }
.team { background: var(--surface); }
.faq { background: var(--white); }
.faq__item { background: var(--surface); border-color: transparent; }
.contact { background: var(--surface); }

@media (max-width: 1100px) {
  .pains__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .split__grid, .where__grid { grid-template-columns: 1fr; }
  .split__grid--reverse > :first-child { order: 0; }
  .steps__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .pains__grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .pain { padding: 1.1rem; }
  .pain h3 { font-size: .92rem; }
  .pain p { font-size: .82rem; }
  .services__grid { grid-template-columns: 1fr; }
  .svc { flex-direction: row; }
  .svc__img { aspect-ratio: auto; width: 38%; flex-shrink: 0; }
  .svc__body { padding: 1rem; }
  .svc__body h3 { font-size: .98rem; }
  .svc__body p { font-size: .84rem; }
  .svc__tag { font-size: .62rem; top: .5rem; left: .5rem; padding: .2rem .5rem; }
  .step { display: flex; text-align: left; gap: 1rem; align-items: center; padding: 1.1rem; }
  .step .ico { margin: 0; }
  .step h3 { margin-bottom: .2rem; }
  .sectors__list li { padding: .55rem .9rem; font-size: .82rem; }
}

/* Teléfono con prefijo +51 */
.phone { display: flex; align-items: stretch; background: var(--surface); border: 1px solid transparent; border-radius: 10px; transition: border-color .3s, background .3s, box-shadow .3s; }
.phone__prefix { display: flex; align-items: center; gap: .45rem; padding: 0 .8rem 0 1rem; font-size: .92rem; font-weight: 600; color: var(--navy-900); border-right: 1px solid var(--line); }
.phone__prefix svg { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.field .phone input { background: transparent; border: 0; box-shadow: none; padding-left: .8rem; }
.field .phone input:focus { box-shadow: none; background: transparent; }
.phone:focus-within { background: var(--white); border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(19, 48, 90, .08); }
.field.has-error .phone { border-color: var(--error); background: #FDF6F4; }
.field.has-error .phone input { border: 0; background: transparent; }
.field input::placeholder, .field textarea::placeholder { color: #A3ABB7; }

/* --------------------------------------------------------------------------
   Estilo moderno del contenido
   -------------------------------------------------------------------------- */
h1 em, h2 em { font-family: var(--font-display); font-style: normal; font-weight: 800; letter-spacing: -.035em; }
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%); }
.hero__title em { color: var(--accent); }
.hero__points svg { background: var(--accent); color: var(--white); }
.strip { background: var(--navy-800); }
.strip i { background: var(--accent-200); }

.section { padding: clamp(3rem, 5vw, 4.25rem) 0; }
.head__rule { width: 36px; height: 4px; border-radius: 4px; background: var(--accent); }
.head h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }

.ico { border-radius: 14px; background: var(--accent-50); color: var(--accent); }
.ico--alert { background: #FDEEEE; color: #D14B4B; }

.pains { background: var(--white); }
.pain { border-radius: 18px; background: var(--white); box-shadow: 0 1px 2px rgba(10,31,61,.04); transition: border-color .3s, box-shadow .3s; }
.pain:hover { border-color: #F3C9C9; box-shadow: 0 12px 30px -18px rgba(209,75,75,.45); }

.services { background: var(--surface); }
.group-label { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: var(--accent-50); color: var(--accent); letter-spacing: .08em; font-size: .7rem; }
.svc { border-radius: 20px; border-color: rgba(10,31,61,.07); box-shadow: 0 1px 2px rgba(10,31,61,.04); }
.svc__tag { background: var(--accent); }

.split { background: var(--white); }
.split--alt { background: var(--surface); }
.split__photo { border-radius: 22px; }
.checks li::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.chips li { background: var(--white); border-color: var(--accent-200); color: var(--accent-600); }

/* Empezar es simple: recuadro propio */
.steps-sec { background: var(--white); }
.steps-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2rem, 4vw, 3.2rem);
  background: radial-gradient(40rem 20rem at 100% 0%, rgba(46,111,224,.35), transparent 60%), var(--navy-900);
}
.steps-card .head h2 { color: var(--white); }
.steps__grid { position: relative; }
.step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; }
.step .ico { background: var(--accent); color: var(--white); }
.step h3 { color: var(--white); }
.step p { color: rgba(255,255,255,.7); }

/* Rubros */
.sectors { background: var(--surface); }
.sectors__list li { background: var(--white); border: 1px solid rgba(10,31,61,.08); color: var(--navy-900); box-shadow: 0 1px 2px rgba(10,31,61,.04); transition: border-color .3s, color .3s; }
.sectors__list li:hover { border-color: var(--accent); color: var(--accent); }

/* Equipo */
.team { background: var(--white); }
.member__photo { border-radius: 20px; background: var(--surface); }
.member p { color: var(--accent); }

/* Preguntas */
.faq { background: var(--surface); }
.faq__item { background: var(--white); border: 1px solid rgba(10,31,61,.07); border-radius: 16px; }
.faq__item[open] { border-color: var(--accent-200); box-shadow: 0 12px 30px -22px rgba(46,111,224,.6); }
.faq__item summary::after { background-color: var(--accent-50); background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)); }

/* Contacto: panel azul + formulario blanco */
.contact { background: var(--white); }
.contact__grid { gap: 1.5rem; align-items: stretch; }
.contact__info {
  border-radius: 24px; padding: clamp(1.6rem, 3vw, 2.4rem);
  background: radial-gradient(30rem 18rem at 100% 0%, rgba(46,111,224,.35), transparent 60%), var(--navy-900);
}
.contact__info .head h2 { color: var(--white); }
.contact__list li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.contact__list small { color: var(--accent-200); }
.contact__list a, .contact__list span:not(.contact__icon) { color: var(--white); }
.contact__list a:hover { color: var(--accent-200); }
.contact__icon { background: var(--accent); color: var(--white); }
.form { border-radius: 24px; border-color: rgba(10,31,61,.08); box-shadow: 0 30px 60px -40px rgba(10,31,61,.35); }
.field input, .field select, .field textarea, .phone { background-color: #F5F8FC; border: 1px solid #DCE4EF; border-radius: 12px; }
.field .phone input { border: 0; }
.form .btn--primary { background: var(--accent); border-color: var(--accent); }
.form .btn--primary:hover { background: var(--accent-600); border-color: var(--accent-600); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,111,224,.12); }
.phone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,111,224,.12); }
.check a { color: var(--accent); }

@media (max-width: 640px) {
  .steps-card { border-radius: 20px; padding: 1.6rem 1.1rem; }
  .contact__info { border-radius: 20px; }
  .form { border-radius: 20px; }
}

/* --------------------------------------------------------------------------
   Títulos tipo "etiqueta + título" e íconos modernos
   -------------------------------------------------------------------------- */
.head, .head--left { text-align: left; margin-left: 0; margin-right: 0; max-width: 46rem; }
.head__rule { display: none; }
.head .eyebrow-mono, .eyebrow-mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; color: var(--navy-900); }
.head p { margin: 1rem 0 0; max-width: 36rem; font-size: 1.05rem; line-height: 1.7; }
.head--light h2 { color: var(--white); }
.head--light .eyebrow-mono, .contact__info .head .eyebrow-mono { color: var(--accent-200); }
.faq__wrap .head { max-width: none; }
.sectors__list { justify-content: flex-start; margin: 0; max-width: none; }
.team__grid { max-width: none; }

/* Checks suaves (círculo celeste + check azul) */
.checks li::before, .hero__points svg { box-sizing: border-box; }
.checks li { font-weight: 500; color: var(--ink); }
.checks li::before {
  width: 24px; height: 24px; top: 0;
  background: var(--accent-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6FE0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hero__points svg { width: 24px; height: 24px; padding: 6px; background: var(--accent-50); color: var(--accent); stroke-width: 3; }
.hero__points li { font-weight: 500; color: var(--ink); }
.chips li { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-weight: 500; font-size: .78rem; border-radius: 8px; border-color: rgba(10,31,61,.12); color: var(--navy-800); background: var(--white); }

/* Íconos modernos */
.ico { width: 52px; height: 52px; border-radius: 16px; font-size: 1.45rem; background: linear-gradient(145deg, #F2F6FF, #E3ECFD); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(46,111,224,.12); }
.ico svg { stroke-width: 1.8; }
.ico--alert { background: linear-gradient(145deg, #FFF4F4, #FDE6E6); color: #D9443F; box-shadow: inset 0 0 0 1px rgba(217,68,63,.12); }
.step .ico { background: linear-gradient(145deg, #4A86F0, #2459B8); color: var(--white); box-shadow: 0 10px 24px -12px rgba(46,111,224,.8); }
.contact__icon { border-radius: 12px; background: linear-gradient(145deg, #4A86F0, #2459B8); }

/* Hover suave en tarjetas */
.svc, .pain { transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s cubic-bezier(.2,.7,.2,1), border-color .6s; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(10,31,61,.28); }
.svc__img img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.svc:hover .svc__img img { transform: scale(1.03); }
.pain:hover { transform: translateY(-2px); border-color: rgba(217,68,63,.18); box-shadow: 0 18px 36px -28px rgba(217,68,63,.35); }

@media (max-width: 640px) {
  .head h2 br { display: none; }
  .head h2 { font-size: 1.75rem; }
  .ico { width: 46px; height: 46px; border-radius: 14px; font-size: 1.25rem; }
}

/* --------------------------------------------------------------------------
   Íconos 3D, pasos, rubros y lista desplegable
   -------------------------------------------------------------------------- */
.pain { padding: 1.6rem 1.5rem; border-radius: 20px; }
.pain__icon { width: 72px; height: 72px; margin: -.3rem 0 .4rem -.3rem; }
.pain h3 { font-size: 1.1rem; margin: .4rem 0 .5rem; }

.steps-sec { background: var(--surface); }
.steps__grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step { text-align: left; padding: 1.6rem 1.6rem 1.8rem; background: var(--white); border: 1px solid rgba(10,31,61,.08); border-radius: 22px; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s cubic-bezier(.2,.7,.2,1); }
.step:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(10,31,61,.3); }
.step__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.step__top img { width: 76px; height: 76px; margin: -.4rem 0 0 -.4rem; }
.step__top span { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.step h3 { font-size: 1.2rem; color: var(--navy-900); margin-bottom: .5rem; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

.head--center { text-align: center; margin-left: auto; margin-right: auto; }
.head--center p { margin-left: auto; margin-right: auto; }
.sectors { background: var(--white); }
.sectors__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.sector { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1.6rem 1rem; min-height: 190px; text-align: center; background: var(--white); border: 1px solid rgba(10,31,61,.09); border-radius: 20px; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s cubic-bezier(.2,.7,.2,1), border-color .4s; }
.sector img { width: 80px; height: 80px; }
.sector span { font-weight: 700; font-size: 1.02rem; color: var(--navy-900); line-height: 1.3; }
.sector:hover { transform: translateY(-3px); border-color: var(--accent-200); box-shadow: 0 20px 40px -30px rgba(46,111,224,.45); }

/* Lista desplegable moderna */
.cselect { position: relative; }
.cselect select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.cselect__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left;
  padding: .8rem 1rem; background: #F5F8FC; border: 1px solid #DCE4EF; border-radius: 12px;
  font-size: .95rem; color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s;
}
.cselect__btn.is-placeholder { color: #8A94A6; }
.cselect__btn::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--navy-800); border-bottom: 2px solid var(--navy-800); transform: translateY(-3px) rotate(45deg); transition: transform .3s; flex-shrink: 0; }
.cselect.is-open .cselect__btn { background: var(--white); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,111,224,.12); }
.cselect.is-open .cselect__btn::after { transform: translateY(2px) rotate(-135deg); }
.cselect__list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: .4rem;
  background: var(--white); border: 1px solid rgba(10,31,61,.08); border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(10,31,61,.3);
  max-height: 290px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.cselect.is-open .cselect__list { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .2s; }
.cselect__opt { display: flex; justify-content: space-between; align-items: center; padding: .7rem .85rem; border-radius: 10px; font-size: .93rem; color: var(--ink); cursor: pointer; }
.cselect__opt:hover, .cselect__opt.is-focus { background: var(--accent-50); color: var(--accent-600); }
.cselect__opt.is-selected { font-weight: 600; color: var(--accent); }
.cselect__opt.is-selected::after { content: ""; width: 6px; height: 11px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-2px, -2px); }
.field.has-error .cselect__btn { border-color: var(--error); background: #FDF6F4; }

@media (max-width: 960px) {
  .sectors__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: 1fr; max-width: none; }
}
@media (max-width: 640px) {
  .pain__icon { width: 56px; height: 56px; }
  .step { display: block; padding: 1.3rem; }
  .step__top img { width: 64px; height: 64px; }
  .sector { min-height: 150px; padding: 1.2rem .6rem; }
  .sector img { width: 64px; height: 64px; }
  .sector span { font-size: .9rem; }
}

/* Rubros en una sola línea con flechas */
.head--center .eyebrow-mono, .head--center p { margin-left: auto; margin-right: auto; }
.carousel { position: relative; }
.sectors__grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 4 * 1rem) / 5); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: .3rem .1rem 1rem; }
.sectors__grid::-webkit-scrollbar { display: none; }
.sector { scroll-snap-align: start; min-height: 0; padding: 1.4rem .8rem; }
.sector img { width: 68px; height: 68px; }
.sector span { font-size: .95rem; }
.carousel__btn {
  position: absolute; top: calc(50% - .5rem); transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--navy-900); font-size: 1.2rem;
  border: 1px solid rgba(10,31,61,.1); box-shadow: 0 10px 24px -12px rgba(10,31,61,.35);
  transition: background .3s, color .3s, opacity .3s;
}
.carousel__btn svg { stroke-width: 2.2; }
.carousel__btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.carousel__btn--prev { left: -22px; }
.carousel__btn--next { right: -22px; }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 1100px) { .sectors__grid { grid-auto-columns: calc((100% - 3 * 1rem) / 4); } .carousel__btn--prev { left: -8px; } .carousel__btn--next { right: -8px; } }
@media (max-width: 760px) { .sectors__grid { grid-auto-columns: calc((100% - 2 * .8rem) / 2.6); gap: .8rem; } }
@media (max-width: 640px) { .carousel__btn { width: 38px; height: 38px; } .carousel__btn--prev { left: -6px; } .carousel__btn--next { right: -6px; } .sector { min-height: 0; } }

/* Fondos alternados: cada sección se ve separada */
.pains { background: var(--white); }
.services { background: var(--surface); }
.split { background: var(--white); }
.split--alt { background: var(--surface); }
.steps-sec { background: var(--white); }
.sectors { background: var(--surface); }
.team { background: var(--white); }
.faq { background: var(--surface); }
.contact { background: var(--white); }
.step { box-shadow: 0 1px 2px rgba(10,31,61,.04); }

/* Orden nuevo: Servicios primero, fondos alternados */
.services { background: var(--white); }
.pains { background: var(--surface); }
.split { background: var(--white); }
.split--alt { background: var(--surface); }
.steps-sec { background: var(--white); }
.sectors { background: var(--surface); }
.faq { background: var(--white); }
.faq__item { background: var(--surface); }
.contact { background: var(--surface); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Portada sin título: el texto toma el protagonismo */
.hero__text { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.5; color: var(--navy-900); font-weight: 600; letter-spacing: -.01em; max-width: 32rem; }

/* Servicios como primer bloque (sin portada) */
.services--top { padding-top: calc(var(--header-h) + clamp(1.5rem, 3vw, 2.5rem)); background: linear-gradient(180deg, var(--surface) 0%, var(--white) 320px); }
/* Contacto en celular: primero el formulario, luego los datos */
.contact__mhead { display: none; }
@media (max-width: 960px) {
  .contact__mhead { display: block; order: -2; margin-bottom: 0; }
  .contact .form { order: -1; }
  .contact__info .head { display: none; }
}

/* Menú de celular moderno */
.nav__info { display: none; }
@media (max-width: 960px) {
  .nav { padding: .8rem 1.25rem 1.6rem; }
  .nav__list { gap: .25rem; }
  .header .nav__link { display: block; padding: .85rem 1rem; border-bottom: 0; border-radius: 12px; font-size: 1.05rem; font-weight: 600; color: var(--navy-900); transition: background .25s, color .25s; }
  .header .nav__link::after { display: none; }
  .header .nav__link:hover { background: var(--surface); }
  .header .nav__link.is-active { background: var(--accent-50); color: var(--accent); }
  .nav__extra { margin-top: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
  .nav__cta { width: 100%; padding: 1rem; border-radius: 12px; font-size: .95rem; }
  .nav__info { display: grid; gap: .7rem; margin-top: 1.2rem; }
  .nav__info li { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--muted); }
  .nav__info svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--accent-50); color: var(--accent); flex-shrink: 0; stroke-width: 1.8; }
}

/* Título principal (primer bloque) */
.head--hero { max-width: 52rem; }
.head--hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; color: var(--navy-900); margin: 0; }
.head--hero h1 .accent { color: var(--accent); }
.head--hero p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
@media (max-width: 640px) { .head--hero h1 br { display: none; } .head--hero h1 { font-size: 2.1rem; } }

/* Menú de celular a pantalla completa, con separadores */
@media (max-width: 960px) {
  .nav { bottom: 0; overflow-y: auto; display: flex; flex-direction: column; padding-bottom: 2rem; box-shadow: none; }
  .nav__overlay { display: none !important; }
  .nav__list > li + li { border-top: 1px solid var(--line); }
  .header .nav__link { margin: .15rem 0; padding-top: .7rem; padding-bottom: .7rem; }
  .nav__extra { margin-top: 1.2rem; border-top: 0; padding-top: 0; }
}

/* Primer bloque: recuadro azul oscuro con el título */
.services--top { background: var(--white); }
.head--hero h1 { font-size: calc(clamp(2.2rem, 4.6vw, 3.6rem) - 1px); }
.hero-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem); padding: clamp(2rem, 4.5vw, 3.6rem);
  border-radius: 28px; color: var(--white);
  background:
    radial-gradient(36rem 22rem at 100% 0%, rgba(46,111,224,.45), transparent 65%),
    radial-gradient(24rem 18rem at 0% 100%, rgba(46,111,224,.18), transparent 70%),
    linear-gradient(135deg, #0B2147 0%, #081A33 100%);
  box-shadow: 0 30px 60px -40px rgba(8,26,51,.6);
}
.hero-card .eyebrow-mono { color: #9DC0FF; }
.hero-card h1 { margin: 0; font-size: calc(clamp(2.1rem, 4.4vw, 3.4rem) - 1px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; color: var(--white); }
.hero-card h1 .accent { color: #7FB0FF; }
.hero-card__sub { margin: 1rem 0 0; max-width: 34rem; color: rgba(255,255,255,.75); font-size: 1.05rem; }
.hero-card__art { position: relative; height: 220px; }
.hero-card__ring { position: absolute; inset: 50% auto auto 50%; width: 220px; height: 220px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(127,176,255,.22), rgba(127,176,255,0) 70%); }
.hc-i { position: absolute; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.hc-i--1 { width: 120px; height: 120px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hc-i--2 { width: 88px; height: 88px; left: 4%; top: 2%; transform: rotate(-8deg); }
.hc-i--3 { width: 80px; height: 80px; right: 2%; bottom: 0; transform: rotate(6deg); }
.services--top .group-label:first-of-type { margin-top: 0; }

@media (max-width: 760px) {
  .hero-card { grid-template-columns: 1fr; gap: 0; padding: 1.8rem 1.4rem 1.6rem; border-radius: 22px; }
  .hero-card__art { display: none; }
  .section.services--top { padding-top: calc(var(--header-h) + 1.2rem); }
  .hero-card h1 { font-size: calc(2rem - 1px); }
  .hero-card h1 br { display: none; }
}

/* Servicios en celular: foto arriba, texto abajo */
@media (max-width: 640px) {
  .svc { flex-direction: column; }
  .svc__img { width: 100%; aspect-ratio: 16 / 9; }
  .svc__body { padding: 1.1rem 1.2rem 1.3rem; }
  .svc__body h3 { font-size: 1.05rem; }
  .svc__body p { font-size: .9rem; }
  .services__grid { gap: 1rem; }
}

/* Títulos 1px más pequeños */
.head h2 { font-size: calc(clamp(1.9rem, 3.4vw, 2.75rem) - 1px); }
@media (max-width: 640px) {
  .head--hero h1 { font-size: calc(2.1rem - 1px); }
  .head h2 { font-size: calc(1.75rem - 1px); }
}

/* Preguntas frecuentes: sin resaltado celeste y con apertura suave */
:root { interpolate-size: allow-keywords; }
.faq__item summary { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; outline: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--accent-200); outline-offset: 4px; border-radius: 8px; }
.faq__item { transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease; }
.faq__item[open] { background: var(--white); border-color: rgba(46,111,224,.22); box-shadow: 0 16px 36px -28px rgba(10,31,61,.35); }
.faq__item summary { transition: color .3s ease; }
.faq__item[open] summary { color: var(--accent-600); }
.faq__item summary::after { transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .3s; }
.faq__item[open] summary::after { background-color: var(--accent); background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff); }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .4s cubic-bezier(.2,.7,.2,1), content-visibility .4s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__answer p { opacity: 0; transform: translateY(-4px); transition: opacity .35s ease .05s, transform .35s ease .05s; }
.faq__item[open] .faq__answer p { opacity: 1; transform: none; }

/* Logo C&T */
.brand__logo { height: 52px; }
.footer .footer__brand img { height: 54px; }
@media (max-width: 960px) { .header .brand__logo { height: 42px; } }

/* En celular no se muestra la etiqueta sobre el título principal */
@media (max-width: 640px) { .head--hero .eyebrow-mono { display: none; } }

/* Pie de página compacto en celular */
@media (max-width: 640px) {
  .footer { padding-top: 2.6rem; font-size: .88rem; }
  .footer .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; padding-bottom: 1.8rem; }
  .footer .footer__brand, .footer .footer__col:last-child { grid-column: 1 / -1; }
  .footer .footer__brand img { height: 46px; margin-bottom: .9rem; }
  .footer .footer__brand p { margin: 0; font-size: .86rem; }
  .footer .footer__col { gap: .45rem; }
  .footer .footer__col h4 { margin-bottom: .6rem; font-size: .68rem; }
  .footer .footer__col:last-child { padding-top: 1.4rem; border-top: 1px solid var(--line-light); }
  .footer .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.2rem 0 1.4rem; font-size: .76rem; }
  .footer .footer__bottom div { gap: 1.2rem; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,.62); padding-top: clamp(4rem, 7vw, 5.5rem); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 1.4rem; }
.footer__brand p { max-width: 22rem; }
.footer h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.3rem; font-weight: 600; }
.footer__col { display: flex; flex-direction: column; gap: .65rem; align-items: flex-start; }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--white); }
.social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; font-size: 1.05rem; color: rgba(255,255,255,.8); transition: background .3s, color .3s, border-color .3s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 0; border-top: 1px solid var(--line-light); font-size: .82rem; }
.footer__bottom p { margin: 0; }
.footer__bottom div { display: flex; gap: 1.6rem; }
.footer__bottom a:hover { color: var(--white); }

.contact__info svg path[d^="M20.5"] { fill: currentColor; stroke: none; }

/* --------------------------------------------------------------------------
   Animaciones al desplazarse
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Páginas internas (política de privacidad / 404)
   -------------------------------------------------------------------------- */
.page { padding: calc(var(--header-h) + 4rem) 0 6rem; background: var(--surface); min-height: 70vh; }
.page__inner { max-width: 50rem; margin-inline: auto; background: var(--white); padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.page h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--navy-900); margin-bottom: 1rem; }
.page h2 { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); margin: 2.2rem 0 .8rem; }
.page p, .page li { color: var(--muted); }
.page ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.page--center { display: grid; place-items: center; text-align: center; }
.page .header { background: rgba(255,255,255,.9); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__list { gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  /* Menú celular: encabezado delgado + panel desplegable */
  .header, .header.is-scrolled { --header-h: 64px; height: 64px; background: var(--white); box-shadow: 0 1px 0 var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand__logo { height: 32px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
    background: var(--white); padding: .5rem 1.25rem 1.5rem;
    box-shadow: 0 24px 40px -24px rgba(8,26,51,.35);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s var(--ease), visibility 0s linear .45s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__home { display: block; }
  .nav__link {
    display: flex; justify-content: space-between; align-items: center;
    padding: .95rem 0; border-bottom: 1px solid var(--line);
    font-size: 1rem; font-weight: 600; color: var(--navy-900);
  }
  .nav__link::after { position: static; content: "→"; width: auto; height: auto; background: none; color: var(--gold); transform: none; font-weight: 400; transition: transform .3s var(--ease); }
  .nav__link:hover::after, .nav__link.is-active::after { transform: translateX(4px); }
  .nav__link.is-active { color: var(--gold); }
  .nav__extra { display: block; margin-top: 1.4rem; }
  .nav__extra p { margin: 1rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.6; }
  .nav__overlay { position: fixed; inset: 64px 0 0; z-index: 98; background: rgba(5,15,31,.35); }
  body.menu-open { overflow: hidden; }

  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero__photo { aspect-ratio: 5 / 4; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .hide-sm { display: none; }
  .section { padding: 3rem 0; }
  .hero__title br { display: none; }
  .hero__media::before { inset: 1.2rem -.6rem -.6rem 1.2rem; }
  .values { grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
  .values li { padding: 1rem .8rem; align-items: center; text-align: center; }
  .values strong { font-size: .82rem; }
  .services__grid { grid-template-columns: 1fr; }
  /* Equipo y testimonios: carrusel deslizable con el dedo */
  .team__grid, .testimonials__grid { display: grid; grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem .4rem; scroll-padding-left: 1rem; }
  .team__grid { grid-auto-columns: 64%; gap: 1rem; }
  .testimonials__grid { grid-auto-columns: 86%; gap: 1rem; }
  .team__grid::-webkit-scrollbar, .testimonials__grid::-webkit-scrollbar { display: none; }
  .member, .testimonial { scroll-snap-align: start; }
  .service { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1rem; padding: 1.2rem; }
  .service .ico { margin: 0; }
  .service h3 { flex: 1; }
  .service p { flex-basis: 100%; margin-top: .4rem; }
  .why__grid { gap: .8rem; }
  .why__grid li { padding: 1.4rem .8rem; }
  .why__grid h3 { font-size: .9rem; }
  .gallery__grid { gap: .7rem; }
  .gallery__caption { font-size: .8rem; left: .8rem; bottom: .6rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .faq__item { padding: 0 1.1rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
}