/* =========================================================
   Tecnoaguas Argentina — hoja de estilos principal
   Sitio corporativo: tratamiento de agua y efluentes líquidos
   ========================================================= */

:root {
  /* Paleta de marca (basada en el azul del logo Tecnoaguas) */
  --brand:        #1b50b4;
  --brand-dark:   #0f3a8a;
  --brand-darker: #0a2a66;
  --brand-light:  #3b82f6;
  --sky:          #7db8e8;
  --cyan:         #2bc4e6;
  --accent:       #12b39a;   /* verde-agua: sustentabilidad */

  --ink:      #1f2733;
  --ink-soft: #55617a;
  --line:     #e4e9f2;
  --bg:       #ffffff;
  --bg-alt:   #f4f7fc;
  --bg-deep:  #0c1a3a;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(15, 58, 138, .08);
  --shadow-md: 0 12px 34px rgba(15, 58, 138, .14);
  --container: 1180px;

  --font-head: "Montserrat", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- Utilidades ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: #dbe4f5; }
.section--deep h2, .section--deep h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--brand-light);
  margin-bottom: .8rem;
}
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--brand-dark); }
.btn--dark { background: var(--brand-dark); color: #fff; }
.btn--dark:hover { background: var(--brand-darker); color: #fff; }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1eb857; color: #fff; }
.btn--wa svg { width: 20px; height: 20px; fill: #fff; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--brand-darker); color: #cdd9f0;
  font-size: .82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #cdd9f0; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 14px; }
@media (max-width: 760px) {
  .topbar { font-size: .78rem; }
  .topbar .container { justify-content: center; gap: 6px 18px; padding-top: 6px; padding-bottom: 6px; min-height: 0; }
  .topbar__contact { gap: 6px 18px; justify-content: center; }
  .topbar__contact span { display: none; }   /* dirección: ya está en el pie */
  .topbar__social { display: none; }          /* redes: ya están en el pie */
}

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; color: var(--brand-dark); font-size: 1.15rem; }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand span small { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .12em; color: var(--ink-soft); text-transform: uppercase; }
.nav__menu { display: flex; align-items: center; gap: 1px; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  font-family: var(--font-head); font-weight: 600; font-size: .86rem;
  color: var(--ink); padding: .55rem .58rem; border-radius: 8px; white-space: nowrap;
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--brand); background: var(--bg-alt); }
.nav__cta { margin-left: 8px; }
.nav__cta .btn { padding: .7rem 1.1rem; font-size: .85rem; }
.nav__menu .nav__cta a.btn, .nav__menu .nav__cta a.btn:hover { color: #fff; }
.nav__menu .nav__cta a.btn--primary { background: var(--brand); }
.nav__menu .nav__cta a.btn--primary:hover { background: var(--brand-dark); }
@media (min-width: 1025px) and (max-width: 1180px) {
  .nav__menu a { font-size: .8rem; padding: .5rem .4rem; }
  .brand span { font-size: 1rem; }
}
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--brand-dark); border-radius: 3px; margin: 5px 0; transition: .2s; }

@media (max-width: 1024px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 6px 20px 18px; box-shadow: var(--shadow-md);
    display: none;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li { display: block; }
  .nav__menu a {
    display: block; font-size: 1rem; line-height: 1.2;
    padding: .95rem .2rem !important;
    border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .nav__menu a:hover, .nav__menu a.is-active { background: transparent; }
  .nav__menu li:last-child a { border-bottom: 0; }
  .nav__menu li.nav__cta a { border-bottom: 0; }
  .nav__cta { margin: 14px 0 2px; }
  .nav__menu li.nav__cta a.btn {
    display: block; width: 100%; text-align: center;
    padding: .95rem 1rem !important; font-size: .95rem;
    color: #fff; border-radius: 10px;
  }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #eaf2ff;
  background:
    linear-gradient(115deg, rgba(10,42,102,.94) 0%, rgba(27,80,180,.86) 55%, rgba(43,196,230,.72) 100%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 40%);
  background-color: var(--brand-dark);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.5'%3E%3Cpath d='M0 300 Q150 240 300 300 T600 300 T900 300 T1200 300'/%3E%3Cpath d='M0 330 Q150 270 300 330 T600 330 T900 330 T1200 330'/%3E%3Cpath d='M0 360 Q150 300 300 360 T600 360 T900 360 T1200 360'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover; background-position: bottom; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: 96px 0 104px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p { font-size: 1.18rem; color: #d6e3fb; margin-bottom: 1.8rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__reassure { margin: 1rem 0 0; font-size: .9rem; color: #bcd4f5; }
.hero__link { margin: .6rem 0 0; font-size: .92rem; }
.hero__link a { color: #9fd8f0; border-bottom: 1px solid rgba(159,216,240,.4); }
.hero__link a:hover { color: #fff; }

/* ---------- Franja de métricas ---------- */
.stats { background: var(--brand); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 18px; padding-top: 46px; padding-bottom: 46px; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.05; }
.stat__label { font-size: .88rem; color: #cfe0ff; margin-top: .4rem; }
@media (max-width: 560px) { .stats .container { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Grillas de tarjetas ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }
.card__link { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }

/* ---------- Bloque imagen + texto ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split--reverse .split__media { order: 0; } }
.split__media {
  border-radius: var(--radius); overflow: hidden; min-height: 320px;
  background: linear-gradient(135deg, var(--brand-dark), var(--cyan));
  display: grid; place-items: center; color: rgba(255,255,255,.5);
  box-shadow: var(--shadow-md);
}
.split__media svg { width: 40%; height: auto; opacity: .85; }
/* Con foto real adentro: sin caja de degradé ni alto mínimo */
.split__media:has(img) { min-height: 0; background: none; box-shadow: none; }
.split__media:has(img) .media-img { box-shadow: var(--shadow-md); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: .7rem; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Sectores / industrias ---------- */
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .6rem 1.2rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: var(--brand-dark);
}

/* ---------- Videos ---------- */
.video-card { background: #0c1a3a; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.video-card__thumb {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; position: relative;
  width: 100%; margin: 0; padding: 0; border: 0; font: inherit; cursor: pointer;
}
.video-card__thumb > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.video-card__thumb::before {
  content: ""; width: 60px; height: 60px; border-radius: 50%; z-index: 1;
  background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.85);
  transition: transform .15s ease, background .15s ease;
}
.video-card__thumb::after {
  content: ""; position: absolute; border-style: solid; z-index: 1;
  border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff;
  transform: translateX(3px);
}
.video-card__thumb:hover::before { transform: scale(1.08); background: rgba(0,0,0,.5); }
.video-card__thumb.is-playing::before,
.video-card__thumb.is-playing::after { display: none; }
.video-card__thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2; background: #000;
}
/* Para videos verticales (celular) que se ven muy recortados con "cover" */
.video-card__thumb--portrait > img,
.video-card__thumb--portrait video { object-fit: contain; background: #05122b; }
.video-card__msg {
  position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(10,20,50,.85); color: #fff; font-family: var(--font-head);
  font-weight: 600; font-size: .8rem; padding: 7px 14px; border-radius: 999px;
  white-space: nowrap; pointer-events: none;
}
.video-card__body { padding: 18px 20px; }
.video-card__body h3 { color: #fff; font-size: 1.05rem; margin-bottom: .2em; }
.video-card__body p { color: #9fb2d6; font-size: .9rem; margin: 0; }

/* ---------- Blog ---------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.post-card__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--sky), var(--brand)); }
.post-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.post-card h3 { font-size: 1.12rem; }
.post-card p { color: var(--ink-soft); font-size: .95rem; }
.post-card .card__link { margin-top: auto; }

/* ---------- CTA banda ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--brand-dark), var(--brand) 60%, var(--cyan));
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe7ff; max-width: 620px; margin: 0 auto 1.6rem; }

/* ---------- Formularios ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: .35rem; color: var(--ink); }
input, select, textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-light); outline-offset: 1px; border-color: var(--brand-light); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--brand-darker), var(--brand-dark));
  color: #eaf2ff; padding: 66px 0;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #c6d5f3; max-width: 640px; margin: 0; }

/* Page hero con video / imagen de fondo */
.page-hero--media { position: relative; overflow: hidden; }
.page-hero--media > .container { position: relative; z-index: 3; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; background: transparent;
}
.page-hero__media .ph { position: absolute; inset: 0; border-radius: 0; z-index: 0; }
/* Sin video todavía: mostrar solo el degradé (nada de texto de ayuda que
   se transparente por debajo del overlay del encabezado). */
.page-hero__media .ph::before,
.page-hero__media .ph span { display: none; }
.page-hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(115deg, rgba(10,42,102,.65) 0%, rgba(15,58,138,.5) 60%, rgba(43,196,230,.32) 100%);
}
.breadcrumb { font-size: .82rem; color: #9fb2d6; margin-bottom: 1rem; }
.breadcrumb a { color: #9fb2d6; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Accordion (RRHH / FAQ) ---------- */
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.accordion__trigger {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 20px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion__trigger::after { content: "+"; font-size: 1.4rem; color: var(--brand); flex-shrink: 0; }
.accordion__item.is-open .accordion__trigger::after { content: "\2013"; }
.accordion__panel { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.accordion__item.is-open .accordion__panel { padding: 0 20px 20px; max-height: 480px; }
.accordion__panel p { color: var(--ink-soft); margin: 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding-left: 28px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li { position: relative; margin-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand); }
.timeline h3 { font-size: 1.05rem; margin-bottom: .1em; }
.timeline p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #a9b8d6; padding: 62px 0 26px; font-size: .93rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #a9b8d6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.footer-brand img { width: 44px; height: 44px; border-radius: 10px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .84rem; }
.footer-legal a { color: #a9b8d6; }
.footer-legal a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 22px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem; }
.footer-legal + .footer-bottom { border-top: 0; margin-top: 14px; padding-top: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Barra de acción fija en celular ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }               /* la reemplaza la barra de abajo */
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .mobile-cta a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 13px 10px; border-radius: 12px; font-family: var(--font-head);
    font-weight: 700; font-size: .92rem; line-height: 1; text-align: center;
  }
  .mobile-cta__wa { background: #25d366; color: #fff; flex: 0 0 42%; }
  .mobile-cta__wa svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
  .mobile-cta__form { background: var(--brand); color: #fff; }
  body.has-mobile-cta { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.has-mobile-cta .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- Animación de aparición ---------- */
/* Visible por defecto: si el JS no corre, el contenido igual se ve. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.pre { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Placeholders de imagen — REEMPLAZAR por fotos reales.
   Cada .ph marca dónde va una imagen; el texto indica cuál.
   Para reemplazar: cambiá <div class="ph ...">TEXTO</div>
   por <img src="assets/img/tu-foto.jpg" alt="...">
   ========================================================= */
.ph {
  position: relative;
  display: grid; place-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--cyan));
  color: rgba(255,255,255,.92);
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 20px; border-radius: var(--radius);
  overflow: hidden;
}
.ph::before {
  content: "IMAGEN";
  position: absolute; top: 10px; left: 12px;
  font-size: .62rem; letter-spacing: .16em;
  color: rgba(255,255,255,.6);
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px);
  pointer-events: none;
}
.ph span { position: relative; z-index: 1; max-width: 90%; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--4x3  { aspect-ratio: 4 / 3; }
.ph--1x1  { aspect-ratio: 1 / 1; }
.ph--3x2  { aspect-ratio: 3 / 2; }
.ph--wide { aspect-ratio: 21 / 9; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--hero { position: absolute; inset: 0; border-radius: 0; z-index: 0; }
.ph--hero::before, .ph--hero span { display: none; }
.ph--map  { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #16324f, #2b6ca3); }
.ph--map::before { content: "MAPA"; }
.ph--logo { aspect-ratio: 3 / 2; background: var(--bg-alt); color: var(--ink-soft); }

/* Hero con imagen / video de fondo */
.hero--img { position: relative; }
.hero--img .container { position: relative; z-index: 3; }
.hero--img::after { display: none; }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media .ph--hero { z-index: 0; }
.hero__video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  background: transparent; border: 0;
}
.hero--img .hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(115deg, rgba(10,42,102,.80) 0%, rgba(15,58,138,.64) 55%, rgba(43,196,230,.42) 100%);
}

/* Rotador del hero (Trayectoria / Compromiso / Calidad) */
.hero__rotator { position: relative; margin-bottom: 1.6rem; min-height: 3.2em; }
.hero__rot {
  display: none;
  color: #dbe7fb; font-size: 1.08rem; max-width: 620px;
}
.hero__rot.is-on { display: block; animation: heroRot .5s ease; }
.hero__rot strong { color: #fff; }
@keyframes heroRot { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .hero__rot.is-on { animation: none; } }
/* Sin JS: se ve solo el primero */
.no-js .hero__rot:first-child { display: block; }

/* Tarjeta de servicio con imagen arriba */
.svc-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; border: 0; box-shadow: 0 1px 3px rgba(15,58,138,.06), 0 10px 30px rgba(15,58,138,.07); }
.svc-card:hover { box-shadow: 0 4px 10px rgba(15,58,138,.10), 0 20px 44px rgba(15,58,138,.16); }
.svc-card .ph { border-radius: 0; }
.svc-card > a { display: block; overflow: hidden; }
.svc-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .35s ease; }
.svc-card > a:hover .svc-card__img { transform: scale(1.05); }
.svc-card__body h3 { font-size: 1.12rem; line-height: 1.25; }
.svc-card__tag {
  display: inline-block; align-self: flex-start; margin-bottom: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); background: rgba(43,196,230,.14);
  padding: 3px 9px; border-radius: 999px;
}
.svc-card--feature { position: relative; }
.svc-card--feature::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--cyan)); z-index: 2;
}
/* La grilla de servicios: que las filas queden parejas */
.svc-grid { align-items: stretch; }

/* Imagen dentro de un bloque split (reemplaza a .ph) */
.media-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.ph-link .media-img { border-radius: var(--radius); box-shadow: none; }

/* Video en el cuerpo de la página (16:9, con respaldo de color) */
.media-video {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  background: var(--bg-deep);
}
.media-video video, .media-video .ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 0;
}
.media-video .ph { z-index: 0; }
.media-video video { z-index: 1; background: transparent; }
.media-caption { margin-top: 12px; font-size: .9rem; color: var(--ink-soft); text-align: center; }
.section--deep .media-caption { color: #9fb2d6; }

/* Galería de fotos */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.gallery .ph, .gallery img { border-radius: var(--radius-sm); width: 100%; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Fila de puntos clave bajo el hero de una página */
.keypoints { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 1.2rem; padding: 0; list-style: none; }
.keypoints li { position: relative; padding-left: 24px; color: #c6d5f3; font-size: .95rem; }
.keypoints li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.svc-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-card__body h3 { margin-bottom: .35em; }
.svc-card__body p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 14px; }
.svc-card__body .card__link { margin-top: auto; }

/* Chips / tabs de filtro */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  background: #fff; border: 1px solid var(--line); color: var(--brand-dark);
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-btn:hover { border-color: var(--brand); }
.filter-btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.is-hidden { display: none !important; }

/* Caso de éxito */
.case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-card .ph { border-radius: 0; }
.case-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.case-card__cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-light); font-family: var(--font-head); font-weight: 700; margin-bottom: .5rem; }
.case-card__body h3 { font-size: 1.08rem; margin-bottom: .4em; }
.case-card__body p { color: var(--ink-soft); font-size: .94rem; margin-bottom: 14px; }
.case-card__body .card__link { margin-top: auto; }

/* Layout de blog con barra lateral */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-side { position: sticky; top: 96px; display: grid; gap: 26px; }
.blog-side .widget { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.blog-side h3 { font-family: var(--font-head); margin: 0 0 12px; font-size: 1rem; }
.blog-side ul { list-style: none; padding: 0; margin: 0; }
.blog-side li { margin-bottom: .5rem; }
.blog-side a { font-size: .95rem; }
.blog-search { display: flex; gap: 8px; }

.post-row { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 620px) { .post-row { grid-template-columns: 1fr; } }
.post-row .ph { border-radius: var(--radius-sm); }
.post-row__meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: .4rem; }
.post-row h2, .post-row h3 { font-size: 1.2rem; margin-bottom: .3em; }
.post-row p { color: var(--ink-soft); font-size: .96rem; margin-bottom: .6rem; }

/* Bloque de contacto */
.contact-block { display: grid; gap: 10px; }
.contact-block .row { display: flex; gap: 12px; align-items: flex-start; }
.contact-block .row svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand); margin-top: 3px; }

.map-box { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-box iframe { display: block; width: 100%; height: 300px; }
.map-box__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 12px 14px; background: var(--bg-alt); font-size: .9rem;
}
.map-box__actions .btn { padding: .5rem .95rem; font-size: .85rem; }
@media (max-width: 560px) {
  .map-box iframe { height: 230px; }
  .map-box__actions { justify-content: center; text-align: center; }
  .map-box__actions .btn { flex: 1 1 100%; }
}

/* Franja de valores/props bajo el hero (home) */
.trust-strip { background: var(--brand); color: #fff; }
.trust-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 32px 22px; }
@media (max-width: 760px) { .trust-strip .container { grid-template-columns: 1fr; } }
.trust-strip h2 { color: #fff; font-size: 1rem; margin: 0 0 .2em; }
.trust-strip p { color: #d3e2ff; font-size: .92rem; margin: 0; }

/* Imagen-enlace: el placeholder (o la foto) funciona como botón "Ver más" */
.ph-link { display: block; position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-md); }
.ph-link .ph, .ph-link img { border-radius: var(--radius); transition: transform .35s ease; display: block; width: 100%; }
.ph-link:hover .ph, .ph-link:hover img { transform: scale(1.04); }
.ph-link__cta {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  background: #fff; color: var(--brand-dark);
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  padding: .55rem 1.05rem; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background .15s ease, color .15s ease;
}
.ph-link:hover .ph-link__cta, .ph-link:focus-visible .ph-link__cta { background: var(--brand); color: #fff; }
/* Cuando el enlace ocupa el lugar de .split__media, anular el fondo/grilla */
.split__media.ph-link { min-height: 0; background: none; display: block; padding: 0; }

/* Foto principal que va rotando entre varias (ej.: equipos e insumos) */
.img-rotator { aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.img-rotator__img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.img-rotator__img.is-on { opacity: 1; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .img-rotator__img { transition: none; } }

/* Botón de texto "Ver más" dentro del bloque de servicio */
.svc-more { margin-top: 6px; }

/* Navegación entre servicios (en las páginas de detalle) */
.svc-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-nav a {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1.05rem; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  color: var(--brand-dark);
}
.svc-nav a:hover { border-color: var(--brand); color: var(--brand); }
.svc-nav a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Texto largo (páginas legales / informativas) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration: underline; }
.prose .updated { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.testi p { font-size: 1rem; color: var(--ink); margin-bottom: 1rem; }
.testi p::before { content: "\201C"; color: var(--brand-light); font-size: 1.6rem; font-family: Georgia, serif; margin-right: 2px; }
.testi__by { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--brand-dark); }
.testi__role { font-size: .82rem; color: var(--ink-soft); }
.section--deep .testi { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--deep .testi p { color: #dbe4f5; }
.section--deep .testi__by { color: #fff; }
.section--deep .testi__role { color: #9fb2d6; }

/* ---------- Franja de logos / homologaciones ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.logo-strip .ph--logo { width: 160px; }

/* ---------- Contador en vivo ---------- */
.live-counter {
  background: linear-gradient(115deg, var(--brand-darker), var(--brand) 70%, var(--cyan));
  color: #fff; text-align: center; padding: 54px 0;
}
.live-counter .eyebrow { color: #bfe0f5; }
.live-counter__num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 6.5vw, 4rem); line-height: 1.05;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  margin: .2em 0 .15em;
}
.live-counter__label { color: #dbe7ff; font-size: 1rem; max-width: 560px; margin: 0 auto; }
.live-counter__note { color: #a9c4e8; font-size: .8rem; margin-top: .8rem; }

/* ---------- Grilla de clientes / logos ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .clients-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 340px) { .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.client-logo {
  aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-align: center; min-width: 0; overflow: hidden;
}
.client-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.client-logo span {
  font-family: var(--font-head); font-weight: 600; font-size: .68rem;
  letter-spacing: .04em; color: var(--ink-soft);
}
.section--alt .client-logo { background: #fff; }

/* Tira de logos (home) */
.client-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
@media (max-width: 1000px) { .client-strip { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 620px) { .client-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Carrusel infinito de logos (con movimiento) ---------- */
.logo-marquee {
  position: relative; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-marquee + .logo-marquee { margin-top: 16px; }
.logo-marquee__track {
  display: flex; gap: 18px; width: max-content;
  animation: logo-marquee var(--marquee-dur, 55s) linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track { animation-play-state: paused; }
.logo-marquee--reverse .logo-marquee__track { animation-direction: reverse; }
.logo-marquee .client-logo {
  flex: 0 0 auto; width: 158px;
  transition: transform .2s ease, border-color .2s ease;
}
@media (max-width: 600px) { .logo-marquee .client-logo { width: 116px; } .logo-marquee__track { gap: 12px; } }
.logo-marquee .client-logo:hover { transform: translateY(-4px); border-color: var(--brand); }
.logo-marquee .client-logo img { opacity: .85; transition: opacity .25s ease; }
.logo-marquee .client-logo:hover img { opacity: 1; }
@keyframes logo-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; }
  .logo-marquee__track { animation: none; }
}

/* Grilla de clientes: un poco más viva */
.clients-grid .client-logo { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.clients-grid .client-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.clients-grid .client-logo img { filter: grayscale(1); opacity: .8; transition: filter .25s ease, opacity .25s ease; }
.clients-grid .client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Barra de confianza (bajo el hero de servicio) ---------- */
.trust-bar { background: var(--brand); color: #fff; }
.trust-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; padding: 18px 22px; }
.trust-bar__items { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.trust-bar__item { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .88rem; }
.trust-bar__item svg { width: 18px; height: 18px; flex-shrink: 0; }
.trust-bar .btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .trust-bar .container { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; padding: 16px 22px; }
  .trust-bar__items { flex-direction: column; align-items: center; gap: 9px; }
  .trust-bar__item { font-size: .84rem; }
  /* La barra fija de abajo ya ofrece "Pedí tu cotización": este botón queda
     redundante y se solapa con ella en mobile, así que se oculta acá. */
  .trust-bar .btn { display: none; }
}

/* ---------- "El problema" (tarjetas de dolor) ---------- */
.pain-card { border-left: 4px solid var(--accent); }
.pain-card h3 { display: flex; align-items: center; gap: 8px; }
.pain-card h3::before { content: "!"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; flex-shrink: 0; }

/* ---------- Ficha técnica ---------- */
.spec-list { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-list__row { display: grid; grid-template-columns: 240px 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.spec-list__row:last-child { border-bottom: 0; }
.spec-list__row:nth-child(odd) { background: var(--bg-alt); }
.spec-list dt { padding: 14px 20px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--brand-dark); }
.spec-list dd { padding: 14px 20px; margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 620px) { .spec-list__row { grid-template-columns: 1fr; } .spec-list dd { padding-top: 0; } }

/* ---------- Caso de referencia ---------- */
.case-ref { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: var(--radius); padding: 34px 36px; box-shadow: var(--shadow-md); }
@media (max-width: 700px) { .case-ref { grid-template-columns: 1fr; gap: 14px; text-align: center; } }
.case-ref__metric { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; }
.case-ref__unit { font-size: .9rem; color: #cfe0ff; margin-top: 4px; }
.case-ref h3 { color: #fff; margin-bottom: .3em; }
.case-ref p { color: #dbe7ff; margin: 0; }

/* ---------- Formulario de cotización en la página ---------- */
.lead-form { background: var(--bg-deep); color: #dbe4f5; }
.lead-form h2 { color: #fff; }
.lead-form .section-head p { color: #9fb2d6; }
.lead-form .card { max-width: 780px; margin: 0 auto; }

/* ---------- Página de error / gracias ---------- */
.state-page { text-align: center; padding: 90px 0; }
.state-page .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 10vw, 6rem); color: var(--brand); line-height: 1; }
.state-page h1 { margin-top: .3em; }
.state-page p { max-width: 520px; margin: 0 auto 1.6rem; color: var(--ink-soft); }

/* =========================================================
   Ajuste general para celular — más compacto y legible
   (la vista de escritorio no se toca: todo va dentro de media queries)
   ========================================================= */
@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 1rem; }
  .page-hero { padding: 40px 0; }
  .page-hero p { font-size: 1rem; }
  .hero__inner { padding: 60px 0 66px; }
  .hero p { font-size: 1.05rem; margin-bottom: 1.5rem; }
  .stats .container { padding-top: 34px; padding-bottom: 34px; gap: 20px 14px; }
  .cta-band p { font-size: 1rem; }
  h1 { font-size: clamp(1.8rem, 7.5vw, 2.2rem); }
  h2 { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .keypoints { gap: 10px 20px; }
  .timeline { padding-left: 24px; }
  .timeline li { margin-bottom: 20px; }
  /* No partir números de teléfono ni el WhatsApp a mitad de línea */
  .contact-block a[href^="tel"], .site-footer a[href^="tel"] { white-space: nowrap; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .hero__inner { padding: 40px 0 68px; }
  .hero .eyebrow { margin-bottom: .5rem; }
  .hero h1 { margin-bottom: .3em; }
  .hero__rotator { margin-bottom: 1.1rem; min-height: 2.8em; }
  .hero__rot { font-size: .98rem; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; text-align: center; }
  .btn { padding: .72rem 1.15rem; }
  .hero__reassure { margin-top: .8rem; font-size: .85rem; }
  .hero__link { margin-top: .4rem; }
  .split { gap: 26px; }
  .split__media { min-height: 220px; }
  .card:not(.svc-card):not(.case-card) { padding: 22px 20px 24px; }
}

/* ---------- Chat con IA (assets/js/chat.js) ---------- */
.tchat-launch {
  position: fixed; right: 20px; bottom: 92px; z-index: 65;
  display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px; cursor: pointer; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 10px 28px rgba(15,58,138,.38);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tchat-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15,58,138,.45); }
.tchat-launch svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; }
.tchat-launch svg circle { fill: #fff; stroke: none; }
.tchat-launch[hidden], .tchat-panel[hidden], .tchat-nudge[hidden] { display: none; }
.tchat-nudge {
  position: fixed; right: 20px; bottom: 154px; z-index: 65; max-width: 250px;
  background: #fff; color: var(--ink); border-radius: 14px 14px 4px 14px; padding: 12px 34px 12px 14px;
  font-size: .9rem; line-height: 1.35; box-shadow: var(--shadow-md); border: 1px solid var(--line); cursor: pointer;
  animation: tchatIn .35s ease;
}
.tchat-nudge button { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.2rem; color: var(--ink-soft); cursor: pointer; line-height: 1; }
.tchat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  width: 390px; height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(10,42,102,.32); animation: tchatIn .25s ease;
}
@keyframes tchatIn { from { opacity: 0; transform: translateY(12px); } }
.tchat-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; color: #fff; background: linear-gradient(120deg, var(--brand-darker), var(--brand)); }
.tchat-head img { border-radius: 9px; background: #fff; }
.tchat-head__t { flex: 1; min-width: 0; line-height: 1.25; }
.tchat-head__t strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.tchat-head__t span { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: #cfe0ff; }
.tchat-head__t i { width: 8px; height: 8px; border-radius: 50%; background: #3be28a; display: inline-block; }
.tchat-close { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.tchat-close:hover { background: rgba(255,255,255,.26); }
.tchat-msgs { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.tchat-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.45; word-wrap: break-word; animation: tchatIn .2s ease; }
.tchat-msg p { margin: 0 0 .5em; color: inherit; } .tchat-msg p:last-child { margin: 0; }
.tchat-msg ul { margin: .3em 0 .3em; padding-left: 1.1em; } .tchat-msg li { margin-bottom: .2em; color: inherit; }
.tchat-msg--bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.tchat-msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.tchat-typing { display: flex; gap: 5px; padding: 14px 16px; }
.tchat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9fb2d6; animation: tchatDot 1s infinite ease-in-out; }
.tchat-typing span:nth-child(2) { animation-delay: .15s; } .tchat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tchatDot { 0%, 80%, 100% { opacity: .35; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.tchat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 12px; background: var(--bg-alt); }
.tchat-quick[hidden], .tchat-actions[hidden], .tchat-lead[hidden] { display: none; }
.tchat-chip { border: 1px solid var(--brand); color: var(--brand-dark); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: .82rem; font-family: var(--font-head); font-weight: 600; cursor: pointer; }
.tchat-chip:hover { background: var(--brand); color: #fff; }
.tchat-actions { display: flex; gap: 8px; padding: 8px 14px; background: var(--bg-alt); border-top: 1px solid var(--line); }
.tchat-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; padding: 10px 12px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; cursor: pointer; color: #fff; text-decoration: none; }
.tchat-btn--lead { background: var(--brand); } .tchat-btn--lead:hover { background: var(--brand-dark); color: #fff; }
.tchat-btn--wa { background: #25d366; } .tchat-btn--wa:hover { background: #1fb858; color: #fff; }
.tchat-btn--wa svg { width: 18px; height: 18px; fill: #fff; }
.tchat-btn--ghost { background: var(--bg-alt); color: var(--ink-soft); } .tchat-btn--ghost:hover { background: var(--line); color: var(--ink); }
.tchat-btn:disabled { opacity: .6; cursor: default; }
.tchat-form { display: flex; gap: 8px; padding: 10px 12px 6px; background: #fff; border-top: 1px solid var(--line); }
.tchat-input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-size: 1rem; font-family: var(--font-body); }
.tchat-input:focus, .tchat-lead input:focus, .tchat-lead textarea:focus { outline: 2px solid var(--brand-light); outline-offset: 0; border-color: var(--brand-light); }
.tchat-send { flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%; background: var(--brand); cursor: pointer; display: grid; place-items: center; }
.tchat-send svg { width: 20px; height: 20px; fill: #fff; } .tchat-send:hover { background: var(--brand-dark); } .tchat-send:disabled { opacity: .55; cursor: default; }
.tchat-note { margin: 0; padding: 4px 14px 10px; font-size: .68rem; line-height: 1.3; color: #8a96ad; text-align: center; background: #fff; }
.tchat-note a { color: inherit; text-decoration: underline; }
.tchat-lead { position: absolute; inset: 64px 0 0 0; z-index: 3; background: #fff; padding: 18px 18px 14px; overflow-y: auto; }
.tchat-lead h3 { font-size: 1.15rem; margin: 0 0 4px; } .tchat-lead > p { font-size: .85rem; margin: 0 0 10px; }
.tchat-lead label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.tchat-lead input, .tchat-lead textarea { display: block; width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font: inherit; font-size: .95rem; background: #fff; }
.tchat-lead__err { color: #c0392b; font-size: .82rem; font-weight: 600; margin: 0 0 8px; }
.tchat-lead__row { display: flex; gap: 8px; margin-top: 4px; }
html.tchat-lock { overflow: hidden; }
@media (max-width: 760px) {
  .tchat-launch { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); height: 48px; padding: 0 16px 0 13px; }
  .tchat-launch__txt { display: none; }
  .tchat-launch { width: 52px; padding: 0; justify-content: center; }
  .tchat-nudge { display: none; }
  .tchat-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; height: 88dvh; border-radius: 18px 18px 0 0; }
  .tchat-note { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .tchat-panel, .tchat-msg, .tchat-nudge { animation: none; } .tchat-typing span { animation: none; opacity: .7; } }

/* =========================================================
   Capa de pulido y dinamismo (todas las páginas)
   Todo con transform/opacity (no repinta): liviano en el celular.
   ========================================================= */
html { scroll-padding-top: 92px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barra de progreso de lectura + header que se compacta */
.tprogress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 210; pointer-events: none;
  transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--cyan), var(--brand-light), var(--brand)); }
.site-header { transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(10,42,102,.14); }
/* (el header ya no cambia de tamaño al scrollear: eso movía todo el contenido y trababa) */

/* Burbujas de agua que suben despacio (cabeceras) */
.hero--img .hero__overlay { overflow: hidden; }
.page-hero { position: relative; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 2; }
.hero--img .hero__overlay::after, .page-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200%; pointer-events: none; will-change: transform;
  background-image:
    radial-gradient(circle at 8% 90%, rgba(255,255,255,.16) 0 7px, transparent 8px),
    radial-gradient(circle at 22% 62%, rgba(255,255,255,.11) 0 12px, transparent 13px),
    radial-gradient(circle at 37% 84%, rgba(255,255,255,.14) 0 5px, transparent 6px),
    radial-gradient(circle at 51% 56%, rgba(255,255,255,.10) 0 16px, transparent 17px),
    radial-gradient(circle at 66% 92%, rgba(255,255,255,.15) 0 8px, transparent 9px),
    radial-gradient(circle at 79% 66%, rgba(255,255,255,.12) 0 11px, transparent 12px),
    radial-gradient(circle at 92% 86%, rgba(255,255,255,.14) 0 6px, transparent 7px),
    radial-gradient(circle at 14% 30%, rgba(255,255,255,.10) 0 9px, transparent 10px),
    radial-gradient(circle at 58% 22%, rgba(255,255,255,.12) 0 6px, transparent 7px),
    radial-gradient(circle at 86% 36%, rgba(255,255,255,.10) 0 13px, transparent 14px);
  animation: tbubbles 46s linear infinite;
}
@keyframes tbubbles { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* Palabra rotativa en el título del inicio */
.rw { display: inline-grid; vertical-align: bottom; }
.rw__w { grid-area: 1 / 1; opacity: 0; transform: translateY(45%); transition: opacity .5s ease, transform .5s ease;
  background: linear-gradient(90deg, #9fe6f7, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rw__w.is-on { opacity: 1; transform: none; }

/* Títulos y botones con más vida */
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 3px; border-radius: 3px; margin-right: 10px; vertical-align: middle;
  background: linear-gradient(90deg, var(--brand), var(--cyan)); }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--brand), var(--cyan)); }
.btn--primary, .btn--wa { position: relative; overflow: hidden; }
.btn--primary::before, .btn--wa::before { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.btn--primary:hover::before, .btn--wa:hover::before { left: 130%; }
.btn--primary:hover, .btn--wa:hover { box-shadow: 0 10px 24px rgba(27,80,180,.32); }
.card__link { transition: letter-spacing .2s ease, color .2s ease; }
.card:hover .card__link { letter-spacing: .02em; }

/* Revelado escalonado y fotos que se "descorren" */
.reveal { transition-delay: var(--d, 0s); }
.split__media.reveal img, .split__media.reveal video { transition: clip-path 1s cubic-bezier(.22,.8,.3,1); clip-path: inset(-70px -70px -70px -70px); }
.split__media.reveal.pre img, .split__media.reveal.pre video { clip-path: inset(-70px 100% -70px -70px); }
.split__media.reveal.is-visible img, .split__media.reveal.is-visible video { clip-path: inset(-70px -70px -70px -70px); }
.timeline::before { background: linear-gradient(180deg, var(--brand), var(--cyan) 60%, var(--line)); opacity: .55; }

/* Parallax suave (solo navegadores que lo soportan, sin JavaScript) */
@supports (animation-timeline: view()) {
  .hero--img .hero__video { animation: tparallax linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  @keyframes tparallax { from { transform: translateY(0) scale(1.04); } to { transform: translateY(9%) scale(1.04); } }
}

/* Volver arriba */
.totop { position: fixed; left: 18px; bottom: 22px; z-index: 64; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--brand-dark); box-shadow: 0 8px 22px rgba(10,42,102,.3); display: grid; place-items: center;
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, background .2s ease; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--brand); }
.totop svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Ampliar fotos (galerías y fotos de las secciones) */
.tzoomable { cursor: zoom-in; }
.tlight { position: fixed; inset: 0; z-index: 300; background: rgba(6,20,52,.92); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .25s ease; cursor: zoom-out; }
.tlight.is-on { opacity: 1; }
.tlight img { max-width: min(96vw, 1200px); max-height: 88vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.5); transform: scale(.94); transition: transform .3s ease; }
.tlight.is-on img { transform: none; }
.tlight button { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* En celular: las listas largas se deslizan de costado (menos scroll vertical) */
@media (max-width: 760px) {
  .svc-grid, .testi-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 4px 16px 18px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .svc-grid::-webkit-scrollbar, .testi-grid::-webkit-scrollbar { display: none; }
  .svc-grid > *, .testi-grid > * { flex: 0 0 82%; scroll-snap-align: center; }
  .totop { left: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
  .section-head h2::after { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--img .hero__overlay::after, .page-hero::before, .hero--img .hero__video { animation: none; }
  .rw__w { transition: none; }
  .split__media.reveal.pre img, .split__media.reveal.pre video { clip-path: none; }
  .btn--primary::before, .btn--wa::before { display: none; }
}

/* Legibilidad del hero en celular (la foto fija es más clara que el video) */
.hero__rot, .hero__reassure, .hero__link { text-shadow: 0 1px 10px rgba(6,26,71,.55); }
@media (max-width: 760px) {
  .hero--img .hero__overlay { background: linear-gradient(180deg, rgba(10,42,102,.82) 0%, rgba(10,42,102,.7) 50%, rgba(10,42,102,.86) 100%); }
}
/* ---------- Marcas de proveedores ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.brand-tile {
  aspect-ratio: 5 / 3; display: flex; align-items: center; justify-content: center; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.brand-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; filter: grayscale(1); opacity: .85; transition: filter .25s ease, opacity .25s ease; }
.brand-tile:hover img { filter: grayscale(0); opacity: 1; }
.brand-tile__name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink-soft); text-align: center; letter-spacing: .01em; }
.brand-note { text-align: center; font-size: .78rem; color: var(--ink-soft); margin: 14px 0 0; }
.h3-like { font-size: 1.25rem; }

/* ---------- Toques de usabilidad ---------- */
.card__link { display: inline-flex; align-items: center; min-height: 44px; }
.card__link:focus-visible, .btn:focus-visible, .pill:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px;
}
.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; }

/* ---------- Asistente "Encontrá tu solución" ---------- */
.wiz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 34px 34px 30px; }
.wiz h3 { font-size: 1.45rem; margin: 0 0 18px; outline: none; }
.wiz__steps { display: flex; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.wiz__steps li { flex: 1; font-family: var(--font-head); font-weight: 600; font-size: .78rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 4px solid var(--line); transition: border-color .3s ease, color .3s ease; }
.wiz__steps li span { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-alt); display: inline-grid; place-items: center; font-size: .72rem; flex-shrink: 0; }
.wiz__steps li.is-now { color: var(--brand); border-color: var(--brand); }
.wiz__steps li.is-now span { background: var(--brand); color: #fff; }
.wiz__steps li.is-done { color: var(--ink); border-color: var(--cyan); }
.wiz__steps li.is-done span { background: var(--cyan); color: #fff; }
.wiz__crumb { color: var(--ink-soft); font-size: .92rem; margin: 0 0 6px; }
.wiz__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wiz__opt { text-align: left; font: inherit; font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink); background: var(--bg-alt); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; min-height: 64px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 4px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.wiz__opt:hover { transform: translateY(-2px); border-color: var(--brand); background: #fff; box-shadow: 0 8px 22px rgba(15,58,138,.12); }
.wiz__opt small { font-weight: 400; color: var(--ink-soft); }
.wiz__back { margin-top: 18px; background: none; border: 0; font: inherit; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--brand); cursor: pointer; padding: 10px 4px; min-height: 44px; }
.wiz__back:hover { text-decoration: underline; }
.wiz__done { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.wiz__done h3 { margin-bottom: 4px; }
.wiz__tick { width: 40px; height: 40px; border-radius: 50%; background: var(--cyan); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; animation: wiz-pop .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes wiz-pop { from { transform: scale(0); } to { transform: scale(1); } }
.wiz__alert { background: #fff6e0; border: 1px solid #f0d78c; color: #5a4400; border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; font-size: .95rem; }
.wiz__res { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.wiz__card { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 18px; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; overflow: hidden; }
.wiz__card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,58,138,.14); border-color: var(--brand); }
.wiz__card.is-top { border-color: var(--brand); background: linear-gradient(180deg, #f2f7ff, #fff); }
.wiz__card em { font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.wiz__card strong { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.25; }
.wiz__card span { color: var(--ink-soft); font-size: .9rem; }
.wiz__card b { margin-top: auto; padding-top: 8px; color: var(--brand); font-family: var(--font-head); font-size: .88rem; }
.wiz__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wiz__note { color: var(--ink-soft); font-size: .84rem; margin: 14px 0 0; }
@media (max-width: 700px) { .wiz { padding: 22px 18px; } .wiz__grid { grid-template-columns: 1fr; } .wiz__steps li { font-size: 0; gap: 0; justify-content: center; } .wiz__steps li span { font-size: .72rem; } .wiz__cta .btn { width: 100%; text-align: center; } }

/* ---------- Buscador de clientes ---------- */
.clients-search { max-width: 520px; margin: 0 auto 26px; text-align: center; }
.clients-search input { width: 100%; font: inherit; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm, 0 1px 3px rgba(15,58,138,.08)); }
.clients-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(27,80,180,.14); }
.clients-search__count { display: block; margin-top: 10px; font-size: .86rem; color: var(--ink-soft); min-height: 1.3em; }

/* ---------- Mini menú de las páginas de servicio ---------- */
.subnav { position: fixed; left: 0; right: 0; top: 70px; z-index: 55; background: rgba(255,255,255,.99); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15,58,138,.08); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease; }
.subnav.is-on { transform: none; opacity: 1; pointer-events: auto; }
.subnav__row { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px 0; }
.subnav__row::-webkit-scrollbar { display: none; }
.subnav a { flex: 0 0 auto; font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--ink-soft); padding: 9px 14px; border-radius: 999px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.subnav a:hover { background: var(--bg-alt); color: var(--brand); }
.subnav a.is-cur { background: #e8f0ff; color: var(--brand); }
.subnav .subnav__cta { margin-left: auto; background: var(--brand); color: #fff; }
.subnav .subnav__cta:hover { background: var(--brand-dark, #123c8c); color: #fff; }
@media (max-width: 900px) { .subnav { display: none; } }

/* ---------- Línea de tiempo activa ---------- */
.timeline li { transition: opacity .5s ease; }
.timeline li:not(.tl-in) { opacity: .55; }
.timeline li:not(.tl-in)::before { background: #fff; box-shadow: 0 0 0 2px var(--line); }
.timeline li.tl-in::before { animation: tl-pulse .9s ease-out 1; }
@keyframes tl-pulse { 0% { box-shadow: 0 0 0 2px var(--brand), 0 0 0 2px rgba(27,80,180,.5); } 100% { box-shadow: 0 0 0 2px var(--brand), 0 0 0 14px rgba(27,80,180,0); } }

/* ---------- Brillo que sigue al mouse ---------- */
@media (hover: hover) and (pointer: fine) {
  .card, .svc-card, .wiz__card { position: relative; }
  .card::after, .svc-card::after, .wiz__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(63,169,245,.13), transparent 70%); }
  .card:hover::after, .svc-card:hover::after, .wiz__card:hover::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .timeline li:not(.tl-in) { opacity: 1; } .wiz__tick { animation: none; } }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brand-dark); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 10px; font-family: var(--font-head); font-weight: 600; transition: top .2s ease; }
.skip-link:focus { top: 0; color: #fff; }
main:focus { outline: none; }

@media (max-width: 560px) { .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Zonas táctiles cómodas en enlaces sueltos */
a[href*="instagram.com"], a[href*="google.com/maps"], a[href*="openstreetmap.org"] { display: inline-flex; align-items: center; min-height: 40px; }

/* Pausar animaciones decorativas cuando no se ven (las maneja interact.js) */
.tpaused::before, .tpaused .hero__overlay::after, .tpaused.hero--img .hero__overlay::after { animation-play-state: paused !important; }
.tpaused-track { animation-play-state: paused !important; }

/* ---------- Mosaico de obras y fotos de la nave ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 14px; }
.mosaic figure, .tech-photos figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-alt); }
.mosaic__a { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.mosaic__f { grid-column: span 2; }
.mosaic img, .tech-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mosaic figure:hover img, .tech-photos figure:hover img { transform: scale(1.04); }
.mosaic figcaption, .tech-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 11px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .84rem; line-height: 1.25; background: linear-gradient(180deg, transparent, rgba(8,28,70,.82)); pointer-events: none; }
.tech-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.tech-photos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tech-photos figure { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .mosaic__a { grid-column: 1 / -1; grid-row: span 2; } .mosaic__f { grid-column: 1 / -1; } }
@media (max-width: 800px) { .tech-photos, .tech-photos--2 { grid-template-columns: 1fr; } .tech-photos figure { aspect-ratio: 16 / 10; } }

/* ---------- Foto en el encabezado de las páginas de servicio ----------
   Ocupa el costado derecho de punta a punta y se funde con el azul hacia la izquierda,
   así se ve completa (sin ampliarla de más) y el texto se lee sobre azul liso. */
.page-hero--img > .page-hero__fig { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; margin: 0; z-index: 0; }
.page-hero__fig img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%); }
.page-hero--img > .container { position: relative; z-index: 2; }
.page-hero--img h1, .page-hero--img .container > p, .page-hero--img .keypoints li, .page-hero--img .breadcrumb { text-shadow: 0 1px 14px rgba(4, 18, 56, .55); }
@media (min-width: 1001px) { .page-hero--img h1 { max-width: 700px; } .page-hero--img .container > p { max-width: 560px; } .page-hero--img .keypoints { max-width: 600px; } }
@media (max-width: 1000px) { .page-hero--img > .page-hero__fig { width: 78%; } }
@media (max-width: 760px) {
  .page-hero--img > .page-hero__fig { width: 100%; }
  .page-hero__fig img { -webkit-mask-image: none; mask-image: none; }
  .page-hero__fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,32,86,.90), rgba(10,42,102,.84)); }
}

/* Galería de 5 fotos: 3 arriba y 2 más anchas abajo */
.gallery--5 { grid-template-columns: repeat(6, 1fr); }
.gallery--5 > :nth-child(-n+3) { grid-column: span 2; }
.gallery--5 > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 800px) { .gallery--5 { grid-template-columns: repeat(2, 1fr); } .gallery--5 > :nth-child(n) { grid-column: auto; } .gallery--5 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .gallery--5 { grid-template-columns: 1fr; } }

/* Galería de 8 fotos: 3 + 3 + 2 */
.gallery--8 { grid-template-columns: repeat(12, 1fr); }
.gallery--8 > :nth-child(-n+6) { grid-column: span 4; }
.gallery--8 > :nth-child(n+7) { grid-column: span 6; }
@media (max-width: 800px) { .gallery--8 { grid-template-columns: repeat(2, 1fr); } .gallery--8 > :nth-child(n) { grid-column: auto; } }
@media (max-width: 480px) { .gallery--8 { grid-template-columns: 1fr; } }

/* ---------- Industrias: obras y sectores ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case-card__media-wrap { aspect-ratio: 4 / 3; background: var(--bg-deep); position: relative; overflow: hidden; }
.case-card__media { display: block; width: 100%; height: 100%; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-card .video-card__thumb { aspect-ratio: auto; position: absolute; inset: 0; width: 100%; height: 100%; }
.case-card__body { padding: 16px 20px 20px; }
.case-card__tag { display: block; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.case-card h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.case-card h3 a { color: var(--ink); }
.case-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.sector-list { border-top: 1px solid var(--line); }
.sector-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding: 38px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.sector-row__head { display: flex; gap: 18px; align-items: flex-start; }
.sector-row__num { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.sector-row__head .eyebrow { margin-bottom: 6px; }
.sector-row h2 { font-size: 1.45rem; line-height: 1.25; margin: 0; }
.sector-row__body p { margin: 0 0 12px; }
.sector-row__body p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .sector-row { grid-template-columns: 1fr; gap: 16px; padding: 30px 0; } }
@media (max-width: 560px) { .case-grid { grid-template-columns: 1fr; } }
.case-grid > :last-child:nth-child(3n+1) { grid-column: 2; }
@media (max-width: 960px) { .case-grid > :last-child:nth-child(3n+1) { grid-column: auto; } .case-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); } }
@media (max-width: 560px) { .case-grid > :last-child:nth-child(odd) { width: 100%; } }

#experiencias .grid--3 > .case-card:last-child:nth-child(3n+1) { grid-column: 2; }
@media (max-width: 960px) { #experiencias .grid--3 > .case-card:last-child:nth-child(3n+1) { grid-column: auto; } }

/* ---------- Blog: categorías que filtran ---------- */
.blog-cats a[aria-current="true"] { color: var(--brand); font-weight: 700; }
.post-row[hidden] { display: none; }

/* Galería con las fotos completas, cada una con su proporción */
.gallery--natural { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px; }
.gallery--natural img { width: auto; height: 380px; max-width: 100%; aspect-ratio: auto; object-fit: contain; background: transparent; box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .gallery--natural img { width: 100%; height: auto; } }
