/* ===== Santafibra — hoja de estilos =====
   Colores tomados del sitio original (azul #385399, gris oscuro #2C353D)
   más el turquesa y verde del logo.                                     */
:root {
  --blue: #385399;
  --blue-dark: #2b4179;
  --blue-soft: #e8edf7;
  --navy: #2c353d;
  --navy-deep: #1f262d;
  --teal: #35b0c0;
  --green: #6db33f;
  --wa: #25d366;
  --wa-dark: #1ebe5d;
  --bg: #f6f7f9;
  --white: #ffffff;
  --text: #2c353d;
  --muted: #5c6773;
  --line: #e2e6ec;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(44, 53, 61, 0.08);
  --shadow-lg: 0 20px 50px rgba(44, 53, 61, 0.14);
  --font-head: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1140px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 1000; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--navy); color: #d8dde3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section--dark .kicker { color: var(--teal); }
.lead { font-size: 1.125rem; color: var(--muted); }
.section--dark .lead { color: #c3cad2; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(56, 83, 153, .3); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--wa { background: var(--wa); color: #0b3d22; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue-soft); }
.btn--sm { padding: 10px 18px; font-size: .875rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(44,53,61,.08); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand img, .brand svg { height: 60px; width: auto; }
@media (max-width: 480px) { .brand img, .brand svg { height: 52px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--navy); text-decoration: none !important;
  background: none; border: 0; white-space: nowrap;
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__link { padding: 8px 9px; font-size: .84rem; }
  .nav__cta { display: none; }
  .lang { margin-left: 6px; padding-left: 6px; }
  .brand img, .brand svg { height: 54px; }
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s; border: 1px solid var(--line);
}
.nav__item.is-open > .nav__sub, .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--navy); font-size: .92rem; text-decoration: none !important; }
.nav__sub a:hover { background: var(--blue-soft); color: var(--blue); }
.nav__cta { margin-left: 10px; }
.lang { display: flex; align-items: center; gap: 2px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.lang a { padding: 6px 8px; font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--muted); border-radius: 6px; text-decoration: none !important; }
.lang a:hover { color: var(--blue); background: var(--blue-soft); }
.lang a[aria-current="true"] { color: #fff; background: var(--blue); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.nav-toggle[aria-expanded="true"] .ico-menu { display: none; }

@media (max-width: 1023px) {
  /* sin backdrop-filter: crearía un bloque contenedor y rompería el panel fijo del menú */
  .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 20px 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s; gap: 0;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link:hover, .nav__link[aria-current="page"] { background: none; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px;
    display: none; min-width: 0;
  }
  .nav__item.is-open > .nav__sub, .nav__item.is-current > .nav__sub { display: block; }
  .nav__item:hover > .nav__sub { display: none; }
  .nav__item.is-open:hover > .nav__sub { display: block; }
  .nav__sub a { padding: 12px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin: 20px 0 0; width: 100%; }
  .lang { margin: 18px 0 0; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); justify-content: center; gap: 8px; }
  .lang a { padding: 8px 14px; font-size: .9rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(53,176,192,.35), transparent 60%),
              linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, var(--blue-dark) 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; min-height: calc(100vh - var(--header-h)); max-height: 820px; padding-block: 72px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .kicker { color: var(--teal); }
.hero .lead { color: #d3dae3; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
.hero__bg { position: absolute; inset: 0; z-index: 0; opacity: .35; pointer-events: none; }
.hero__bg svg { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 56px 48px; gap: 28px; }
  .hero__art { max-width: 380px; margin: 0 auto; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Hero a pantalla completa con slides ---------- */
.hero--full { min-height: min(88vh, 820px); display: flex; align-items: stretch; }
.hero--full .hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero--full .hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; opacity: 0; transform: scale(1.05); transition: opacity 1.3s ease, transform 8s linear; }
.hero--full .hero__slides img.is-active { opacity: 1; transform: scale(1); }
.hero--full::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(31,38,45,.96) 0%, rgba(31,38,45,.9) 32%, rgba(31,38,45,.55) 55%, rgba(31,38,45,.12) 78%, rgba(31,38,45,.05) 100%),
              linear-gradient(180deg, rgba(31,38,45,.25) 0%, rgba(31,38,45,0) 30%, rgba(31,38,45,.35) 100%); }
.hero--full .hero__bg { opacity: .14; z-index: 1; }
.hero__inner--full { grid-template-columns: 1fr; z-index: 2; min-height: 0; padding-block: 88px 96px; align-content: center; }
.hero__content { max-width: 600px; }
.hero__captions { position: relative; min-height: 260px; }
.hero__caption { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.hero__caption.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.hero__tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero__tags span { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #e6ebf1; font-family: var(--font-head); font-size: .85rem; font-weight: 500; background: rgba(255,255,255,.06); }
.hero__dots:has(button:only-child) { display: none; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .2s, background .2s; }
.hero__dots button.is-active { background: #fff; width: 26px; border-radius: 6px; }
.hero__badge { position: absolute; z-index: 3; background: #fff; color: var(--navy); border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.3); display: flex; align-items: center; gap: 10px; line-height: 1.15; }
.hero__badge small { display: block; font-size: .62rem; letter-spacing: .08em; color: var(--muted); font-family: var(--font-head); font-weight: 600; }
.hero__badge strong { font-family: var(--font-head); font-size: .95rem; }
.hero__badge svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #e6f9ee; color: #128c4b; flex: none; }
.hero__badge--tl { top: 14%; left: 56%; }
.hero__badge--br { bottom: 16%; right: 8%; }
@media (max-width: 900px) {
  .hero--full { min-height: 0; }
  .hero--full::before { background: linear-gradient(180deg, rgba(31,38,45,.55) 0%, rgba(31,38,45,.9) 45%, rgba(31,38,45,.97) 100%); }
  .hero--full .hero__slides img { object-position: center 30%; }
  .hero__inner--full { padding-block: 200px 84px; }
  .hero__captions { min-height: 0; }
  .hero__badge--tl { top: 18px; left: 20px; } .hero__badge--br { display: none; }
  .hero__dots { bottom: 18px; }
}

/* ---------- Tarjetas con foto ---------- */
.card--media { padding: 0; overflow: hidden; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card--media:hover .card__media img { transform: scale(1.05); }
.card--media .card__icon { margin: -27px 24px 0; position: relative; z-index: 1; box-shadow: 0 6px 16px rgba(44,53,61,.15); background: #fff; }
.card--media h3, .card--media p, .card--media .card__link { margin-left: 24px; margin-right: 24px; }
.card--media h3 { margin-top: 12px; }
.card--media p { margin-bottom: 12px; }
.card--media .card__link { margin-bottom: 24px; }
.card--media p:last-child { margin-bottom: 24px; }
.card--feature.card--media .card__media { position: relative; }
@media (min-width: 1024px) {
  .grid--services > .card--media:last-child:nth-child(3n+1) { display: grid; grid-template-columns: 320px 1fr auto; align-items: center; gap: 0 24px; padding: 0; }
  .grid--services > .card--media:last-child:nth-child(3n+1) .card__media { aspect-ratio: auto; height: 100%; min-height: 180px; grid-row: 1 / span 3; }
  .grid--services > .card--media:last-child:nth-child(3n+1) .card__icon { margin: 0; grid-column: 3; grid-row: 1 / span 3; margin-right: 24px; box-shadow: none; background: linear-gradient(135deg, var(--blue-soft), #d9f3f6); }
  .grid--services > .card--media:last-child:nth-child(3n+1) h3 { grid-column: 2; align-self: end; margin: 22px 0 0; min-width: 0; }
  .grid--services > .card--media:last-child:nth-child(3n+1) p { grid-column: 2; align-self: start; margin: 8px 0 22px; }
  .grid--services > .card--media:last-child:nth-child(3n+1) .card__link { grid-column: 2; margin: 0 0 22px; }
}

/* ---------- Sobre nosotros con foto ---------- */
.about__visual img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow-lg); border: 6px solid rgba(255,255,255,.06); }

/* ---------- Cabeceras de página con foto enmarcada ---------- */
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.page-hero__photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.08); }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero__photo { max-width: 520px; }
  .page-hero__photo img { aspect-ratio: 16 / 9; border-radius: 16px; }
}

/* ---------- Stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.stat { display: flex; gap: 14px; align-items: baseline; }
.stat__n { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; color: var(--blue); line-height: 1; }
.stat__l { font-size: .92rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; padding-block: 22px; }
  .stat { flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; }
  .stat__n { font-size: 2rem; }
  .stat__l { font-size: .85rem; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* 7 servicios en 3 columnas: la última tarjeta ocupa toda la fila en horizontal */
@media (min-width: 1024px) {
  .grid--services > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
  .grid--services > .card:last-child:nth-child(3n+1) h3 { margin: 0; min-width: 260px; }
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-soft), #d9f3f6); color: var(--blue);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin: 6px 0 0; }
.card p { color: var(--muted); margin: 0; flex: 1; }
.card__link { font-family: var(--font-head); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card__link:hover svg { transform: translateX(4px); }
.card--feature { position: relative; overflow: hidden; }
.card--feature::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53,176,192,.18), transparent 70%); pointer-events: none;
}

/* ---------- Quiénes somos ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about__text p { color: #c9d0d8; }
.about__points { display: grid; gap: 14px; margin-top: 8px; }
.about__points li { display: flex; gap: 12px; align-items: flex-start; color: #e9edf1; font-weight: 500; }
.about__points svg { width: 22px; height: 22px; flex: none; color: var(--teal); margin-top: 2px; }
.about__visual { position: relative; }
.about__visual svg { width: 100%; height: auto; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 32px; } .about__visual { max-width: 420px; margin: 0 auto; order: -1; } }

/* ---------- Clientes ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.logo-card {
  display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; min-height: 130px; transition: transform .2s, box-shadow .2s; text-decoration: none !important;
}
.logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-card img { max-height: 80px; max-width: 82%; width: auto; height: auto; object-fit: contain; transition: transform .2s; }
.logo-card:hover img { transform: scale(1.04); }
.logo-card__text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); letter-spacing: .02em; text-align: center; }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(2, 1fr); gap: 12px; } .logo-card { min-height: 96px; padding: 18px 14px; } .logo-card__text { font-size: 1rem; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 60%, var(--navy) 100%); color: #fff;
  border-radius: 24px; padding: clamp(36px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { margin: 0; color: #d3dae3; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band__actions, .cta-band__actions .btn { width: 100%; } }

/* ---------- Página interior ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--blue-dark)); color: #fff; padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; }
.page-hero .kicker { color: var(--teal); }
.page-hero .lead { color: #d3dae3; max-width: 760px; }
.page-hero__bg { position: absolute; inset: 0; opacity: .3; pointer-events: none; }
.page-hero .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #aeb7c2; margin-bottom: 18px; }
.breadcrumb a { color: #d3dae3; }
.breadcrumb span::before { content: "/"; margin-right: 8px; color: #6d7987; }
.breadcrumb span:first-child::before { content: none; }

.detail { display: grid; grid-template-columns: 1fr; gap: 28px; }
.detail__item { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.detail__item .card__icon { width: 64px; height: 64px; }
.detail__item h3 { font-size: 1.25rem; margin-top: 4px; }
.detail__item p { color: var(--muted); }
.detail__item p:last-child { margin-bottom: 0; }
.checklist { display: grid; gap: 10px; margin: 6px 0 16px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 3px; }
@media (max-width: 640px) { .detail__item { grid-template-columns: 1fr; padding: 22px; } }

.subnav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.subnav a { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: .9rem; font-family: var(--font-head); font-weight: 500; text-decoration: none !important; }
.subnav a:hover { background: rgba(255,255,255,.12); }
.subnav a[aria-current="page"] { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card .card__icon { width: 48px; height: 48px; flex: none; }
.contact-card .card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { margin: 0 0 4px; font-size: 1rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-card a { font-weight: 600; word-break: break-word; }
.contact-card--wa .card__icon { background: #e6f9ee; color: #128c4b; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form h3 { margin-top: 0; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd6df; border-radius: 10px; font: inherit; color: var(--text); background: #fbfcfd;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(56,83,153,.15); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form__hint { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.form__error { display: none; color: #b3261e; font-size: .9rem; margin: 0 0 10px; }
.form.has-error .form__error { display: block; }
.map { margin-top: 48px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .form__row { grid-template-columns: 1fr; } .form__actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #b7c0ca; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase; }
.footer a { color: #d3dae3; }
.footer a:hover { color: #fff; }
.footer ul { display: grid; gap: 10px; font-size: .95rem; }
.footer__brand svg, .footer__brand img { height: 72px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-size: .95rem; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--teal); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #8b96a3; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--blue); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; padding: 12px 18px 12px 12px; border-radius: 999px; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; text-decoration: none !important; transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 34px rgba(37,211,102,.55); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 640px) { .wa-float { padding: 14px; right: 16px; bottom: 16px; } .wa-float span { display: none; } .wa-float svg { width: 30px; height: 30px; } }

/* ---------- Animaciones ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .1s; }
  .reveal[data-delay="2"] { transition-delay: .2s; }
  .reveal[data-delay="3"] { transition-delay: .3s; }
}

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.nf h1 { font-size: 5rem; color: var(--blue); margin-bottom: 8px; }
