/* =========================================================
   Tecnovigas Argentina — hoja de estilos principal
   Sitio corporativo: estructuras metálicas y galpones industriales
   ========================================================= */

:root {
  /* Paleta de marca (grafito + amarillo Tecnovigas) */
  --brand:        #343a40;
  --brand-dark:   #23272b;
  --brand-darker: #16191c;
  --brand-light:  #59636e;
  --sky:          #9aa4ae;
  --cyan:         #4b5560;
  --accent:       #f2c200;   /* amarillo Tecnovigas / seguridad */
  --accent-dark:  #c99f00;

  --ink:      #1f2733;
  --ink-soft: #55617a;
  --line:     #e4e9f2;
  --bg:       #ffffff;
  --bg-alt:   #f5f6f8;
  --bg-deep:  #16191c;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(20, 22, 25, .10);
  --shadow-md: 0 12px 34px rgba(20, 22, 25, .18);
  --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: #dcdfe3; }
.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(--accent); color: var(--brand-darker); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-dark); color: var(--brand-darker); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: var(--accent); color: var(--brand-darker); border-color: var(--accent); }
.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: #d0d4d9;
  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: #d0d4d9; }
.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(--accent); color: var(--brand-darker); }
.nav__menu .nav__cta a.btn--primary:hover { background: var(--accent-dark); color: var(--brand-darker); }
@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: var(--brand-darker); 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: #eceef0;
  background:
    linear-gradient(115deg, rgba(18,20,23,.94) 0%, rgba(52,58,64,.86) 55%, rgba(75,85,96,.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 320h1200M0 392h1200'/%3E%3Cpath d='M0 392 100 320 200 392 300 320 400 392 500 320 600 392 700 320 800 392 900 320 1000 392 1100 320 1200 392'/%3E%3Cpath d='M100 320v72M300 320v72M500 320v72M700 320v72M900 320v72M1100 320v72'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 1200px 400px; background-position: bottom center; background-repeat: repeat-x; 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: #d9dce0; margin-bottom: 1.8rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__reassure { margin: 1rem 0 0; font-size: .9rem; color: #c3c8ce; }
.hero__link { margin: .6rem 0 0; font-size: .92rem; }
.hero__link a { color: #f6d36b; border-bottom: 1px solid rgba(246,211,107,.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: #d0d4d9; 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(--accent), var(--accent-dark)); color: var(--brand-darker);
}
.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='%2316191c' 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: #16191c; 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: #0e1012; }
.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: #a4abb3; 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: #dcdfe3; 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: #eceef0; padding: 66px 0;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #cbd0d5; 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(18,20,23,.65) 0%, rgba(20,22,25,.5) 60%, rgba(75,85,96,.32) 100%);
}
.breadcrumb { font-size: .82rem; color: #a4abb3; margin-bottom: 1rem; }
.breadcrumb a { color: #a4abb3; }
.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: #aab1b9; 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: #aab1b9; }
.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: #aab1b9; }
.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(--accent); color: var(--brand-darker); }
  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, #23272b, #4b5560); }
.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(105deg, rgba(14,16,18,.92) 0%, rgba(18,20,23,.80) 48%, rgba(30,33,37,.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: #dcdfe3; 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(20,22,25,.06), 0 10px 30px rgba(20,22,25,.07); }
.svc-card:hover { box-shadow: 0 4px 10px rgba(20,22,25,.10), 0 20px 44px rgba(20,22,25,.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-darker); background: rgba(242,194,0,.30);
  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(--accent), var(--accent-dark)); 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: #a4abb3; }

/* 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: #cbd0d5; 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='%2316191c' 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: #d5d9dd; 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: #dcdfe3; }
.section--deep .testi__by { color: #fff; }
.section--deep .testi__role { color: #a4abb3; }

/* ---------- 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: #c3c8ce; }
.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: #dcdfe3; font-size: 1rem; max-width: 560px; margin: 0 auto; }
.live-counter__note { color: #b3b9c0; 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: var(--brand-darker); 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: #d0d4d9; margin-top: 4px; }
.case-ref h3 { color: #fff; margin-bottom: .3em; }
.case-ref p { color: #dcdfe3; margin: 0; }

/* ---------- Formulario de cotización en la página ---------- */
.lead-form { background: var(--bg-deep); color: #dcdfe3; }
.lead-form h2 { color: #fff; }
.lead-form .section-head p { color: #a4abb3; }
.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(20,22,25,.38);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tchat-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(20,22,25,.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(18,20,23,.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: #d0d4d9; }
.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: #a4abb3; 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(--accent-dark), var(--accent)); }
.site-header { transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(18,20,23,.14); }
/* (el header ya no cambia de tamaño al scrollear: eso movía todo el contenido y trababa) */

/* Trazado de reticulado (cabeceras): estático, sutil */
.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; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.2'%3E%3Cpath d='M0 8h240M0 72h240'/%3E%3Cpath d='M0 72 40 8 80 72 120 8 160 72 200 8 240 72'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 80px; background-position: bottom left; background-repeat: repeat-x;
}

/* 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, #ffe27a, var(--accent)); -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(--accent), var(--accent-dark)); }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark)); }
.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(201,159,0,.38); }
.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(--accent), var(--accent-dark) 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(18,20,23,.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(8,9,10,.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(0,0,0,.55); }
@media (max-width: 760px) {
  .hero--img .hero__overlay { background: linear-gradient(180deg, rgba(18,20,23,.82) 0%, rgba(18,20,23,.7) 50%, rgba(18,20,23,.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(--accent); 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(--accent); }
.wiz__steps li.is-done span { background: var(--accent); color: var(--brand-darker); }
.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(20,22,25,.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(--accent); color: var(--brand-darker); 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(20,22,25,.14); border-color: var(--brand); }
.wiz__card.is-top { border-color: var(--brand); background: linear-gradient(180deg, #fdf8e1, #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(20,22,25,.08)); }
.clients-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(52,58,64,.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(20,22,25,.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: #fdf3c4; color: var(--brand-darker); }
.subnav .subnav__cta { margin-left: auto; background: var(--accent); color: var(--brand-darker); }
.subnav .subnav__cta:hover { background: var(--accent-dark); color: var(--brand-darker); }
@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(52,58,64,.5); } 100% { box-shadow: 0 0 0 2px var(--brand), 0 0 0 14px rgba(52,58,64,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(242,194,0,.12), 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; grid-auto-flow: dense; }
.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(14,16,18,.90), rgba(18,20,23,.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; } }

/* ---------- Ajustes de marca Tecnovigas ---------- */
.stats .stat__num { color: var(--accent); }
.trust-strip h2 { color: #fff; }
.live-counter__num { color: var(--accent); }
.footer-brand img, .brand img { background: none; }

/* =========================================================
   Tecnovigas — componentes propios
   (titular tipográfico, fichas de obra, banner con foto,
   proceso "plano", barra de cifras)
   ========================================================= */

/* Titular grande en mayúsculas (hero del inicio) */
.hero--bold h1 { text-transform: uppercase; font-weight: 800; line-height: 1.04; letter-spacing: .005em; font-size: clamp(2.3rem, 6.2vw, 4.3rem); }
.hero--bold h1 .rw { min-width: 3ch; }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 1.1rem; padding: 0; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #f6d36b; }
.hero__kicker li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 18px; background: var(--accent); transform: rotate(45deg); vertical-align: middle; }

/* Barra de cifras: números grandes en amarillo */
.stats--bold .stat__num { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.stats--bold .stat { position: relative; }
.stats--bold .stat + .stat::before { content: ""; position: absolute; left: -9px; top: 12%; bottom: 12%; width: 1px; background: rgba(255,255,255,.16); }
@media (max-width: 560px) { .stats--bold .stat + .stat::before { display: none; } }

/* Fichas de obra */
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(20,22,25,.08), 0 10px 30px rgba(20,22,25,.08); transition: transform .2s ease, box-shadow .2s ease; }
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(20,22,25,.12), 0 22px 46px rgba(20,22,25,.18); }
.proj-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-deep); }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proj-card:hover .proj-card__media img { transform: scale(1.06); }
.proj-card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--accent); color: var(--brand-darker); font-family: var(--font-head); font-weight: 800; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.proj-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.proj-card h3 { font-size: 1.1rem; line-height: 1.25; margin-bottom: .35em; }
.proj-card p { color: var(--ink-soft); font-size: .94rem; margin-bottom: 0; }
.proj-card__specs { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-soft); }
.proj-card__specs li { display: flex; flex-direction: column; line-height: 1.25; }
.proj-card__specs b { font-family: var(--font-head); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-light); font-weight: 700; }
.proj-card__specs span { color: var(--ink); font-weight: 600; }

/* Banner con foto de fondo y pregunta directa */
.cta-photo { position: relative; color: #fff; text-align: center; overflow: hidden; background: var(--brand-darker) center / cover no-repeat; }
.cta-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,16,18,.82), rgba(14,16,18,.62) 55%, rgba(14,16,18,.86)); }
.cta-photo .container { position: relative; z-index: 1; }
.cta-photo h2 { color: #fff; text-transform: uppercase; font-weight: 800; font-size: clamp(1.8rem, 4.6vw, 3.1rem); line-height: 1.08; max-width: 860px; margin-left: auto; margin-right: auto; }
.cta-photo p { color: #dcdfe3; max-width: 640px; margin: 0 auto 1.7rem; font-size: 1.08rem; }
.cta-photo .eyebrow { color: #f6d36b; }

/* Proceso en estilo "plano" */
.section--blueprint { position: relative; background-color: var(--brand-darker); color: #cbd0d5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px; }
.section--blueprint h2, .section--blueprint h3 { color: #fff; }
.section--blueprint .section-head p { color: #aab1b9; }
.section--blueprint .eyebrow { color: #f6d36b; }
.section--blueprint .timeline p { color: #cbd0d5; }
.section--blueprint .timeline li::before { border-color: var(--brand-darker); background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.section--blueprint .timeline::before { opacity: .8; }
.steps5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps5 li { position: relative; padding: 22px 18px 20px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.04); counter-increment: s; }
.steps5 li::before { content: "0" counter(s); display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--accent); margin-bottom: 10px; }
.steps5 h3 { font-size: 1.02rem; margin-bottom: .35em; }
.steps5 p { font-size: .9rem; margin: 0; color: #cbd0d5; }
@media (max-width: 1000px) { .steps5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps5 { grid-template-columns: 1fr; } }

/* Especificaciones en línea (chips de datos) */
.spec-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.spec-chips li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: .86rem; font-weight: 600; }
.page-hero .spec-chips li b { color: #f6d36b; font-weight: 700; margin-right: 4px; }

/* Entradas de blog (nota larga) */
.post-hero { padding: 56px 0 40px; }
.post-body { max-width: 760px; margin: 0 auto; }
.post-body h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.post-body p, .post-body li { color: var(--ink-soft); font-size: 1.04rem; }
.post-body ul, .post-body ol { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.post-body li { margin-bottom: .45rem; }
.post-body figure { margin: 1.6rem 0; }
.post-body figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.post-body figcaption { font-size: .86rem; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.post-meta { color: #cbd0d5; font-size: .9rem; margin-top: .8rem; }
.callout { background: #fdf8e1; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 1.6rem 0; color: #4a3f10; }
.callout strong { color: var(--brand-darker); }
.hero--bold h1 { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero--bold .rw__w { background: linear-gradient(90deg, #ffe27a, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }

/* ---------- Inicio: hero con fotos que se suceden ---------- */
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; animation: hslide 24s linear infinite; will-change: opacity, transform; }
.hero__slide:nth-child(1) { animation-delay: -2s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 14s; }
@keyframes hslide { 0% { opacity: 0; transform: scale(1.02); } 5% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; transform: scale(1.10); } 100% { opacity: 0; transform: scale(1.10); } }
.tpaused .hero__slide { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero__slide { animation: none; } .hero__slide:first-child { opacity: 1; } }

/* ---------- Tipos de galpones ---------- */
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 900px) { .type-grid { grid-template-columns: 1fr; } }
.type-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(20,22,25,.08), 0 10px 30px rgba(20,22,25,.08); transition: transform .2s ease, box-shadow .2s ease; }
.type-card:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(20,22,25,.12), 0 22px 46px rgba(20,22,25,.18); }
.type-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-deep); }
.type-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.type-card:hover .type-card__media img { transform: scale(1.05); }
.type-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14,16,18,.65)); pointer-events: none; }
.type-card__num { position: absolute; left: 18px; bottom: 8px; z-index: 2; font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--accent); text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.type-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.type-card h3 { font-size: 1.32rem; margin-bottom: .45em; }
.type-card p { color: var(--ink-soft); font-size: .97rem; }
.type-card .card__link { margin-top: auto; }

/* ---------- Íconos de línea (sitio anterior) sobre amarillo ---------- */
.card__icon--img { width: 66px; height: 66px; padding: 11px; }
.card__icon--img img { width: 100%; height: 100%; object-fit: contain; }
.why-card { text-align: center; }
.why-card .card__icon { margin-left: auto; margin-right: auto; }

/* ---------- Clientes ---------- */
.client-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .client-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .client-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
.client-row .client-logo { aspect-ratio: 1 / 1; padding: 10px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.client-row .client-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.client-row .client-logo img { filter: grayscale(1); opacity: .8; transition: filter .25s ease, opacity .25s ease; }
.client-row .client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Grupo empresarial ---------- */
.group-strip { background: var(--brand-darker); color: #cbd0d5; padding: 56px 0; }
.group-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.group-strip__inner > div { max-width: 780px; }
.group-strip h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.group-strip .eyebrow { color: #f6d36b; }
.group-strip p { margin: 0; color: #cbd0d5; }
.group-strip strong { color: #fff; }

/* ---------- Características (pestañas) ---------- */
.spec-tabs { display: grid; grid-template-columns: 250px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.spec-tabs__list { display: flex; flex-direction: column; gap: 4px; background: var(--bg-alt); border-right: 1px solid var(--line); padding: 14px; }
.spec-tabs__list button { text-align: left; font: inherit; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-soft); background: none; border: 0; border-left: 4px solid transparent; border-radius: 8px; padding: 13px 16px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.spec-tabs__list button:hover { background: #fff; color: var(--ink); }
.spec-tabs__list button[aria-selected="true"] { background: #fff; color: var(--brand-darker); border-left-color: var(--accent); box-shadow: var(--shadow-sm); }
.spec-tabs__panels { padding: 30px; }
.spec-tabs__panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; animation: tabIn .35s ease; }
.spec-tabs__panel[hidden] { display: none; }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } }
.spec-tabs__text h3 { font-size: 1.55rem; margin-bottom: .5em; }
.spec-tabs__text p { color: var(--ink-soft); }
.spec-tabs__fig { margin: 0; }
.spec-tabs__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
@media (max-width: 900px) {
  .spec-tabs { grid-template-columns: 1fr; }
  .spec-tabs__list { flex-direction: row; overflow-x: auto; gap: 0; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .spec-tabs__list::-webkit-scrollbar { display: none; }
  .spec-tabs__list button { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 14px 16px; }
  .spec-tabs__list button[aria-selected="true"] { border-bottom-color: var(--accent); box-shadow: none; }
  .spec-tabs__panels { padding: 22px; }
  .spec-tabs__panel { grid-template-columns: 1fr; }
}

/* ---------- Galería en columnas (fotos de distinta proporción) ---------- */
.gallery--natural { display: block; column-count: 3; column-gap: 16px; }
.gallery--natural img { width: 100%; height: auto; aspect-ratio: auto; margin: 0 0 16px; break-inside: avoid; border-radius: var(--radius-sm); }
@media (max-width: 800px) { .gallery--natural { column-count: 2; } }
@media (max-width: 480px) { .gallery--natural { column-count: 1; } }

/* Titular del inicio: más ancho y un poco más compacto */
.hero--bold .hero__inner { max-width: 920px; }
.hero--bold h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); }

/* =========================================================
   v4 — cotizador, servicios, cartel de foto faltante
   ========================================================= */

.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.opt { font-weight: 500; color: var(--ink-soft); font-size: .8rem; }

/* ---------- Cartel "foto próximamente" ---------- */
.empty-photo {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 220px; padding: 26px; text-align: center; color: #a4abb3;
  border-radius: var(--radius-sm); border: 2px dashed rgba(255,255,255,.28);
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, #2b3036, #16191c);
}
.empty-photo svg { width: 64px; height: 64px; color: var(--accent); opacity: .9; }
.empty-photo b { font-family: var(--font-head); font-size: .95rem; color: #e8eaed; }
.empty-photo span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.empty-photo--tile { aspect-ratio: 4 / 3; min-height: 0; }
.empty-photo--split { aspect-ratio: 4 / 3; min-height: 0; box-shadow: var(--shadow-md); border-radius: var(--radius); }
.proj-card__media--empty { background: none; }
.proj-card__media--empty .empty-photo { height: 100%; border-radius: 0; border-width: 0; }

/* ---------- Galería con 1, 2 o 3 fotos ---------- */
.gallery--n1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
.gallery--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .gallery--n1, .gallery--n2 { grid-template-columns: 1fr; } }

/* ---------- Tarjeta de cotizar (cuando el servicio todavía no tiene foto) ---------- */
.quote-card {
  align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 34px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-darker)); color: #cbd0d5; border-radius: var(--radius); box-shadow: var(--shadow-md);
  border-top: 5px solid var(--accent);
}
.quote-card h3 { color: #fff; font-size: 1.5rem; }
.quote-card .eyebrow { color: #f6d36b; }
.quote-card p { color: #cbd0d5; }
.quote-card .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Cotizador rápido (debajo del hero) ---------- */
.quick-quote { position: relative; z-index: 5; margin-top: -54px; padding-bottom: 6px; }
.quick-quote__form {
  display: grid; grid-template-columns: 170px minmax(200px, 2.2fr) repeat(3, minmax(90px, 1fr)) auto; gap: 14px; align-items: end;
  background: #fff; border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 24px 60px rgba(20,22,25,.28); border-top: 5px solid var(--accent);
}
.quick-quote__title { align-self: center; }
.quick-quote__title .eyebrow { margin-bottom: 2px; display: block; }
.quick-quote__title strong { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.2; display: block; color: var(--ink); }
.qq-field span { display: block; font-family: var(--font-head); font-weight: 600; font-size: .78rem; color: var(--ink-soft); margin-bottom: 4px; }
.qq-field input, .qq-field select { padding: .7rem .8rem; }
.quick-quote .btn { height: 46px; padding-top: 0; padding-bottom: 0; }
@media (max-width: 1060px) {
  .quick-quote__form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-quote__title { grid-column: 1 / -1; }
  .qq-field--wide { grid-column: 1 / -1; }
  .quick-quote .btn { grid-column: 1 / -1; width: 100%; height: 50px; }
}
@media (max-width: 560px) { .quick-quote { margin-top: -34px; } .quick-quote__form { padding: 16px; gap: 10px; } }

/* ---------- Servicios en tarjetas con foto ---------- */
.svc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 980px) { .svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .svc-tiles { grid-template-columns: 1fr; } }
.svc-tile { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(20,22,25,.08), 0 10px 30px rgba(20,22,25,.08); transition: transform .2s ease, box-shadow .2s ease; }
.svc-tile:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(20,22,25,.12), 0 22px 46px rgba(20,22,25,.18); }
.svc-tile__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-deep); }
.svc-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.svc-tile:hover .svc-tile__media img { transform: scale(1.06); }
.svc-tile__media .empty-photo { height: 100%; border-radius: 0; border-width: 0; }
.svc-tile__num { position: absolute; left: 14px; top: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.svc-tile__tag { position: absolute; right: 12px; top: 12px; background: var(--accent); color: var(--brand-darker); font-family: var(--font-head); font-weight: 700; font-size: .72rem; padding: 4px 10px; border-radius: 999px; }
.svc-tile__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-tile__body h3 { font-size: 1.2rem; margin-bottom: .3em; }
.svc-tile__body p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 14px; }
.svc-tile__links { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc-tile__quote { font-family: var(--font-head); font-weight: 700; font-size: .82rem; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--brand-darker); }
.svc-tile__quote:hover { background: var(--accent-dark); color: var(--brand-darker); }

/* ---------- Banner de una frase ---------- */
.tagline-band { position: relative; overflow: hidden; background: var(--brand-darker); padding: 64px 0; text-align: center; border-top: 4px solid var(--accent); border-bottom: 4px solid var(--accent); }
.tagline-band::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 34px 34px;
}
.tagline-band .container { position: relative; }
.tagline-band__words { margin: 0 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: 1.05; font-size: clamp(1.7rem, 4.6vw, 3.1rem); color: #fff; letter-spacing: .01em; }
.tagline-band__words span:nth-child(2) { color: var(--accent); }
.tagline-band__sub { margin: 0; color: #cbd0d5; font-size: 1.05rem; }

/* ---------- Capacidades ---------- */
.caps-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .caps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .caps-grid { grid-template-columns: 1fr; } }
.cap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; border-top: 4px solid var(--accent); }
.cap__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-dark); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.cap__ic svg { width: 24px; height: 24px; }
.cap h3 { font-size: 1.02rem; margin-bottom: .35em; }
.cap p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Cómo sigue (3 pasos) ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps3 li { position: relative; padding: 24px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); counter-increment: s; }
.steps3 li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--brand-darker); font-family: var(--font-head); font-weight: 800; margin-bottom: 12px; }
.steps3 h3 { font-size: 1.05rem; margin-bottom: .3em; }
.steps3 p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }

/* =========================================================
   Cotizador (cotizar.html)
   ========================================================= */
.page-hero--quote { padding-bottom: 54px; }
.cotizar { background: var(--bg-alt); padding-top: 54px; }
.cotizar__grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 30px; align-items: start; }
@media (max-width: 1060px) { .cotizar__grid { grid-template-columns: 1fr; } }
.cotizar__steps { display: grid; gap: 22px; }
.qf-step { margin: 0; padding: 26px 28px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.qf-step[hidden] { display: none; }
.qf-step legend { float: left; width: 100%; padding: 0; margin: 0 0 18px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.qf-step legend + * { clear: both; }
.qf-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--brand-darker); font-weight: 800; font-size: .98rem; flex-shrink: 0; }
.qf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.qf-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qf-row:empty { display: none; }
@media (max-width: 620px) { .qf-row, .qf-row--3 { grid-template-columns: 1fr; } .qf-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .qf-step { padding: 22px 18px; } }
.qf-field { margin-bottom: 14px; min-width: 0; }
.qf-field[hidden] { display: none; }
.qf-row > .qf-field { margin-bottom: 0; }
.qf-field small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .78rem; }
.qf-help { margin: -4px 0 16px; font-size: .85rem; color: var(--ink-soft); }
.qf-label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: .5rem; }
.qf-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .qf-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .qf-types { grid-template-columns: 1fr; } }
.qf-type { margin: 0; cursor: pointer; display: block; }
.qf-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-type__box { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.qf-type__box b { font-family: var(--font-head); font-size: .95rem; line-height: 1.2; color: var(--ink); }
.qf-type__box small { color: var(--ink-soft); font-size: .78rem; line-height: 1.35; font-weight: 400; }
.qf-type__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-alt); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; transition: background .15s ease, color .15s ease; }
.qf-type__ic svg { width: 22px; height: 22px; }
.qf-type:hover .qf-type__box { border-color: var(--brand-light); transform: translateY(-2px); }
.qf-type input:checked + .qf-type__box { border-color: var(--accent); background: #fffbe8; box-shadow: 0 0 0 3px rgba(242,194,0,.25); }
.qf-type input:checked + .qf-type__box .qf-type__ic { background: var(--accent); color: var(--brand-darker); }
.qf-type input:focus-visible + .qf-type__box { outline: 3px solid var(--brand-light); outline-offset: 2px; }
.qf-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.qf-checks--solo { margin-top: 6px; }
.qf-checks label { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-family: var(--font-body); font-weight: 500; font-size: .93rem; cursor: pointer; }
.qf-checks input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent-dark); flex-shrink: 0; }
.qf-link { font: inherit; font-size: .83rem; font-weight: 600; color: var(--brand-light); background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; max-width: 190px; }
.stepper button { width: 46px; border: 0; background: var(--bg-alt); font-size: 1.3rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.stepper button:hover { background: var(--accent); }
.stepper input { border: 0; border-radius: 0; text-align: center; font-weight: 700; padding: .65rem 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qf-submit { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.qf-submit .form-note { flex-basis: 100%; margin: 4px 0 0; }
.qf-error { flex-basis: 100%; margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: #fdecea; color: #8a1c13; font-weight: 600; }
.qf-error[hidden] { display: none; }

/* Panel lateral con esquema y resumen */
.cotizar__side { position: sticky; top: 96px; align-self: start; }
@media (max-width: 1060px) { .cotizar__side { position: static; } }
.qside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; border-top: 5px solid var(--accent); }
.qside__head { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px 8px; }
.qside__head b { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.2; }
.qside__fig { margin: 0 12px; border-radius: var(--radius-sm); background: linear-gradient(180deg, #f7f8fa, #eceff2); }
.qside__fig svg { display: block; width: 100%; height: auto; }
.qside__legend { margin: 8px 22px 12px; font-size: .78rem; color: var(--ink-soft); text-align: center; }
.qside__list { margin: 0; padding: 0 22px; }
.qside__list > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.qside__list dt { color: var(--ink-soft); flex-shrink: 0; }
.qside__list dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }
.qside__inc { padding: 14px 22px 4px; border-top: 1px solid var(--line); }
.qside__inc h3 { font-size: 1rem; margin-bottom: .6rem; }
.qside__inc .check-list li { font-size: .88rem; margin-bottom: .45rem; padding-left: 28px; }
.qside__price { margin-top: 10px; padding: 16px 22px 20px; background: var(--brand-dark); color: #cbd0d5; font-size: .85rem; }
.qside__price b { display: block; color: var(--accent); font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 2px; }

/* Colores del esquema */
.g-ground { fill: #e3e7ec; stroke: #c4cad2; stroke-width: 1; }
.g-wall { fill: rgba(52,58,64,.14); stroke: none; }
.g-roof { fill: rgba(242,194,0,.30); stroke: rgba(201,159,0,.55); stroke-width: .8; }
.g-roof--ghost { fill: rgba(120,130,140,.12); stroke: rgba(120,130,140,.5); stroke-dasharray: 4 4; }
.g-slab { fill: rgba(242,194,0,.40); stroke: #c99f00; stroke-width: 1.2; }
.g-frame { stroke: #23272b; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.g-truss { stroke: #4b5560; stroke-width: 1; }
.g-purlin { stroke: #59636e; stroke-width: .9; }
.g-ground-line { stroke: #8a949f; stroke-width: 1; }
.g-dash { stroke: #7b8691; stroke-width: 1.3; stroke-dasharray: 5 4; fill: none; }
.g-gate { fill: #343a40; stroke: #16191c; stroke-width: .8; }
.g-door { fill: #f2c200; stroke: #c99f00; stroke-width: .8; }
.g-skylight { fill: rgba(120,190,230,.55); stroke: #4b8fb5; stroke-width: .8; }
.g-dim { fill: #3b4450; font: 700 12.5px var(--font-head); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.g-tag { fill: #59636e; font: 600 11.5px var(--font-body); font-style: italic; paint-order: stroke; stroke: #f2f4f6; stroke-width: 3px; }

/* En el cotizador no hace falta la barra fija del celular */
.page-cotizar .wa-float { bottom: 22px; }

[data-show][hidden] { display: none !important; }

/* =========================================================
   v6 — cotizador por pasos, ayudas, render y llamadas
   ========================================================= */
[hidden] { display: none !important; }

/* Barra de llamada */
.callbar { background: var(--brand-dark); border-bottom: 4px solid var(--accent); }
.callbar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.callbar__txt { color: #cbd0d5; font-size: .98rem; }
.callbar__txt b { color: #fff; }
.callbar__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.callbar .btn { padding: .65rem 1.1rem; font-size: .92rem; }
.callbar .btn svg { width: 18px; height: 18px; margin-right: 4px; vertical-align: -3px; }

/* Etiqueta con ayuda */
.qf-lab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: .35rem; }
.qf-lab label, .qf-lab .qf-label { margin: 0; }
.help-btn { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--brand-light); background: #fff; color: var(--brand); font: 700 .78rem/1 var(--font-head); cursor: pointer; display: inline-grid; place-items: center; transition: background .15s ease, color .15s ease; padding: 0; }
.help-btn:hover, .help-btn[aria-expanded="true"] { background: var(--accent); border-color: var(--accent-dark); color: var(--brand-darker); }
.help { margin-top: 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fffbe8; border: 1px solid #f0dd8c; font-size: .86rem; color: #4a4120; }
.help p { margin: 0 0 .5rem; }
.help ul { margin: 0 0 .5rem; padding-left: 1.1rem; }
.help__call { margin: .5rem 0 0 !important; padding-top: .5rem; border-top: 1px dashed #e0cd75; font-size: .82rem; }
.help a { font-weight: 600; text-decoration: underline; }

/* Pasos */
.qf-why { margin: -6px 0 18px; padding: 10px 14px; background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: 4px; font-size: .88rem; color: var(--ink-soft); }
.qf-why b { color: var(--ink); }
.qf-stepcall { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.qf-stepcall a { font-weight: 600; text-decoration: underline; }
.qf-block { margin-top: 6px; }
.qf-block[hidden] { display: none; }
.qf-sub { font-size: 1.02rem; margin: 18px 0 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.qf-field--wide { grid-column: 1 / -1; }
.qf-guide { margin-top: 16px; font-size: .9rem; }
.qf-guide summary { cursor: pointer; font-weight: 600; color: var(--brand-light); }
.qf-guide ul { margin: 10px 0 6px; padding-left: 1.1rem; color: var(--ink-soft); }
.qf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-pills label { margin: 0; cursor: pointer; }
.qf-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-pills span { display: inline-block; padding: .5rem 1rem; border: 2px solid var(--line); border-radius: 999px; font: 600 .86rem var(--font-body); background: #fff; transition: all .15s ease; }
.qf-pills input:checked + span { border-color: var(--accent); background: #fffbe8; box-shadow: 0 0 0 3px rgba(242,194,0,.25); }
.qf-pills input:focus-visible + span { outline: 3px solid var(--brand-light); outline-offset: 2px; }
.qf-call { display: grid; gap: 14px; padding: 18px; margin: 8px 0 16px; background: #fffbe8; border: 1px solid #f0dd8c; border-radius: var(--radius-sm); }
.qf-call__txt { display: flex; flex-direction: column; }
.qf-call__txt b { font-family: var(--font-head); }
.qf-call__txt span { font-size: .85rem; color: var(--ink-soft); }
.qf-field input[type="file"] { padding: .6rem; background: var(--bg-alt); }

/* Modo por pasos (solo con JS) */
.is-wizard .qf-step:not(.is-current) { display: none; }
.qnav { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 0 6px; scrollbar-width: thin; position: sticky; top: 72px; z-index: 20; background: var(--bg-alt); }
.qnav button { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font: 600 .82rem var(--font-head); color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer; transition: all .15s ease; }
.qnav .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-alt); color: var(--ink); font-size: .75rem; }
.qnav button:hover { border-color: var(--brand-light); color: var(--ink); }
.qnav button.is-cur { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.qnav button.is-cur .n { background: var(--accent); color: var(--brand-darker); }
.qnav button.is-done .n { background: #2e9b57; color: #fff; }
@media (max-width: 700px) { .qnav { top: 62px; } .qnav .t { display: none; } .qnav button.is-cur .t { display: inline; } }
.qf-actions { display: flex; justify-content: space-between; gap: 12px; }
.qf-actions .btn { min-width: 130px; justify-content: center; }
.qf-actions[hidden] { display: none; }

/* Panel lateral: vistas, medidor, avisos */
.qview { display: flex; align-items: center; gap: 6px; padding: 4px 18px 10px; flex-wrap: wrap; }
.qview button { font: 700 .78rem var(--font-head); padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; }
.qview button[aria-selected="true"] { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.qview__x { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem var(--font-body); color: var(--ink-soft); cursor: pointer; }
.qview__x input { width: 16px; height: 16px; accent-color: var(--accent-dark); }
.qmeter { padding: 10px 22px 8px; }
.qmeter__top { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; }
.qmeter__top b { font-family: var(--font-head); font-size: .92rem; }
.qmeter__top span { font-size: .78rem; color: var(--ink-soft); }
.qmeter__bar { height: 8px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.qmeter__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #2e9b57); transition: width .4s ease; }
.qtips { margin: 8px 22px; padding: 12px 14px; background: #fff4e5; border: 1px solid #f6cf99; border-radius: var(--radius-sm); }
.qtips h3 { font-size: .88rem; margin: 0 0 6px; color: #7a4a00; }
.qtips ul { margin: 0; padding-left: 1rem; font-size: .8rem; color: #5b3d10; }
.qtips li { margin-bottom: .3rem; }
.qside__pend { margin: 8px 22px; padding: 12px 14px; background: #eef6ff; border: 1px solid #bcd8f5; border-radius: var(--radius-sm); }
.qside__pend h3 { font-size: .88rem; margin: 0 0 4px; color: #124b82; }
.qside__pend p { font-size: .78rem; margin: 0 0 6px; color: #244e75; }
.qside__pend ul { margin: 0; padding-left: 1rem; font-size: .8rem; color: #244e75; }
.qside__call { padding: 16px 22px 20px; background: var(--bg-alt); text-align: center; }
.qside__call b { display: block; font-family: var(--font-head); margin-bottom: 8px; }
.qside__call .btn svg { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.qside__call2 { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 600; text-decoration: underline; }
.qside__fig { margin: 0 12px; border-radius: var(--radius-sm); overflow: hidden; }

/* Texto e interiores del render */
.tvr { display: block; width: 100%; height: auto; }
.tvr .tvr-dim .main { stroke: #2b3138; stroke-width: 1; }
.tvr .tvr-dim .tick { stroke: #2b3138; stroke-width: 1.4; }
.tvr .tvr-dim .ext { stroke: #8a949f; stroke-width: .8; stroke-dasharray: 2 2; }
.tvr .tvr-dim .lbl { fill: #1f2733; font: 700 13px var(--font-head); paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }
.tvr .tvr-tag { fill: #3b4450; font: 600 12px var(--font-body); font-style: italic; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.tvr .tvr-area { fill: #2b3138; font: 800 18px var(--font-head); paint-order: stroke; stroke: rgba(255,255,255,.8); stroke-width: 4px; }
.tvr .tvr-ok text { fill: #1f7a42; font: 700 12px var(--font-head); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.tvr .tvr-ok line { stroke: #1f7a42; }
.tvr .tvr-warn text { fill: #b3261e; font: 700 12px var(--font-head); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.tvr .tvr-warn line { stroke: #b3261e; }
@media (max-width: 1060px) { .qnav { position: static; } }

/* =========================================================
   v8 — diseño premium: portada con video, pruebas de confianza,
   videos con reproductor, proceso con fotos, calidad y garantía
   ========================================================= */
:root { --ink-strong: #12161a; --radius-lg: 20px; --shadow-lg: 0 24px 60px rgba(14, 18, 22, .22); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -.012em; }
.section { padding: 96px 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } }
.section-head { margin-bottom: 58px; }
.section-head h2 { position: relative; }
.eyebrow { font-weight: 800; letter-spacing: .16em; }

/* Encabezado más sobrio */
.topbar { font-size: .8rem; letter-spacing: .01em; }
.topbar__promise { color: #f6d36b; font-weight: 600; }
.site-header { box-shadow: 0 1px 0 rgba(20,22,25,.06), 0 8px 24px rgba(20,22,25,.06); }
.nav__menu a { font-weight: 600; position: relative; }
.nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav__menu a:not(.btn):hover::after, .nav__menu a.is-active::after { transform: scaleX(1); }
.nav__menu a:hover, .nav__menu a.is-active { background: transparent; }

/* Botones */
.btn { letter-spacing: .01em; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.04rem; }
.btn--primary { box-shadow: 0 8px 22px rgba(242,194,0,.32); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(242,194,0,.42); }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--glass:hover { background: #fff; color: var(--brand-darker); border-color: #fff; }
.btn svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }

/* ---------- Portada con video ---------- */
.hero-v { position: relative; color: #fff; min-height: clamp(600px, 90vh, 860px); display: flex; align-items: center; overflow: hidden; background: var(--brand-darker); }
.hero-v__media, .hero-v__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-v__media video { object-fit: cover; }
.hero-v__media.is-static video { display: none; }
.hero-v__media.is-static { background: url("../img/vp-columnas-taller.jpg") center / cover no-repeat; }
.hero-v__overlay { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(10,13,16,.86) 0%, rgba(14,17,20,.58) 46%, rgba(14,17,20,.18) 100%), linear-gradient(0deg, rgba(10,13,16,.6), transparent 38%); }
.hero-v .container { position: relative; z-index: 2; }
.hero-v__inner { max-width: 780px; padding: 120px 0 150px; }
.hero-v__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 1.2rem; font: 800 .78rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #f6d36b; }
.hero-v__kicker::before { content: ""; width: 34px; height: 3px; background: var(--accent); }
.hero-v h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.04; font-weight: 800; margin: 0 0 .45em; text-wrap: balance; }
.hero-v h1 em { font-style: normal; color: var(--accent); }
.hero-v__lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: #dfe3e7; max-width: 640px; margin-bottom: 2rem; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-v__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-v__call { margin: 1.2rem 0 0; font-size: .96rem; color: #c8cdd3; }
.hero-v__call a { color: #fff; font-weight: 700; border-bottom: 2px solid var(--accent); }
.hchips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 2rem 0 0; list-style: none; }
.hchips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); font-size: .86rem; font-weight: 600; color: #f1f3f5; }
.hchips svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.hero-v__scroll { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; display: none; }
.hero-v__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 1001px) { .hero-v__scroll { display: block; } }
@media (max-width: 700px) { .hero-v { min-height: 640px; } .hero-v__inner { padding: 70px 0 120px; } .hero-v__overlay { background: linear-gradient(180deg, rgba(10,13,16,.7), rgba(10,13,16,.85)); } .hchips li { font-size: .8rem; padding: 6px 11px; } }
.quick-quote { margin-top: -78px; }

/* ---------- Prueba de confianza (cifras + clientes) ---------- */
.proof { background: #fff; padding: 92px 0 40px; }
.proof__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 52px; }
.proof__stat { text-align: center; padding: 8px 18px; position: relative; }
.proof__stat + .proof__stat::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: var(--line); }
.proof__num { font: 800 clamp(2.2rem, 4.4vw, 3.4rem)/1 var(--font-head); color: var(--brand-dark); }
.proof__num b { color: var(--accent-dark); }
.proof__lbl { margin-top: .5rem; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 760px) { .proof__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; } .proof__stat:nth-child(3)::before { display: none; } }
.proof__logos-title { text-align: center; font: 700 .78rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }

/* ---------- Sección con videos ---------- */
.vsec { background: radial-gradient(circle at 15% 0%, #2c3238, transparent 55%), var(--brand-darker); color: #cfd4d9; position: relative; overflow: hidden; }
.vsec::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 38px 38px, linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 38px 38px; }
.vsec .container { position: relative; }
.vsec h2, .vsec h3 { color: #fff; }
.vsec .eyebrow { color: #f6d36b; }
.vsec .section-head p { color: #aab1b8; }
.vgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.vgrid--rows { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vgrid .vcard--feature { grid-column: 1 / -1; } .vgrid--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vgrid { gap: 12px; } }
.vcard { position: relative; display: block; padding: 0; margin: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: #0d1013; cursor: pointer; text-align: left; font: inherit; color: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.35); transition: transform .25s ease, box-shadow .25s ease; isolation: isolate; }
.vcard:hover { transform: translateY(-5px); box-shadow: 0 26px 56px rgba(0,0,0,.5); }
.vcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.vcard--v { aspect-ratio: 9 / 14; }
.vcard--h { aspect-ratio: 16 / 9; }
.vcard--feature { aspect-ratio: auto; min-height: 100%; }
.vcard img, .vcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vcard:hover img { transform: scale(1.05); }
.vcard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(5,7,9,.85) 100%); pointer-events: none; }
.vcard__play { position: absolute; z-index: 2; left: 50%; top: 46%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--accent); color: var(--brand-darker); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(242,194,0,.55); animation: pulsePlay 2.4s ease-out infinite; transition: transform .2s ease; }
.vcard:hover .vcard__play { transform: scale(1.12); }
.vcard__play svg { width: 26px; height: 26px; margin-left: 3px; }
@keyframes pulsePlay { 0% { box-shadow: 0 0 0 0 rgba(242,194,0,.5); } 70% { box-shadow: 0 0 0 18px rgba(242,194,0,0); } 100% { box-shadow: 0 0 0 0 rgba(242,194,0,0); } }
.vcard__cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; }
.vcard__cap b { font: 700 1rem/1.25 var(--font-head); }
.vcard__cap small { font-size: .78rem; color: #cfd4d9; letter-spacing: .04em; }
.vcard__tag { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); font: 700 .68rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.vsec__cta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .vcard__play { animation: none; } }

/* Reproductor emergente */
.vmodal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(6,8,10,.92); backdrop-filter: blur(6px); }
.vmodal.is-open { display: flex; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.vmodal__box { position: relative; width: min(100%, 980px); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vmodal video { width: 100%; max-height: 74vh; border-radius: 14px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.vmodal.is-v video { width: auto; max-width: 100%; height: 74vh; }
.vmodal__bar { width: 100%; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; color: #e5e8eb; }
.vmodal__bar b { font: 700 1.05rem var(--font-head); color: #fff; }
.vmodal__bar .btn { padding: .7rem 1.3rem; font-size: .92rem; }
.vmodal__close { position: absolute; top: -8px; right: -8px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--brand-darker); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.vmodal__close:hover { background: var(--accent); }
@media (max-width: 700px) { .vmodal { padding: 12px; } .vmodal__close { top: -4px; right: 0; } .vmodal.is-v video { height: 66vh; } }

/* ---------- Proceso con fotos reales ---------- */
.proc { display: grid; gap: 34px; counter-reset: p; }
.proc__step { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; counter-increment: p; }
.proc__step:nth-child(even) .proc__media { order: 2; }
.proc__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--bg-deep); }
.proc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.proc__step:hover .proc__media img { transform: scale(1.04); }
.proc__media::after { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 100%; background: var(--accent); }
.proc__num { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 10px; font: 800 .8rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
.proc__num::before { content: counter(p, decimal-leading-zero); font-size: 2.6rem; letter-spacing: 0; line-height: 1; color: var(--brand-dark); }
.proc__body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .4em; }
.proc__body p { color: var(--ink-soft); font-size: 1.04rem; }
.proc__body ul { margin: .8rem 0 0; padding: 0; list-style: none; }
.proc__body li { position: relative; padding-left: 26px; margin-bottom: .45rem; color: var(--ink); font-size: .96rem; }
.proc__body li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 3px; background: var(--accent); }
@media (max-width: 860px) { .proc__step { grid-template-columns: 1fr; gap: 20px; } .proc__step:nth-child(even) .proc__media { order: 0; } }

/* ---------- Calidad y garantía ---------- */
.qual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .qual { grid-template-columns: 1fr; } }
.qual__card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 3px rgba(20,22,25,.08), 0 18px 44px rgba(20,22,25,.10); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.qual__card:hover { transform: translateY(-6px); box-shadow: 0 4px 10px rgba(20,22,25,.12), 0 28px 56px rgba(20,22,25,.18); }
.qual__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.qual__body { padding: 24px 26px 28px; }
.qual__body h3 { font-size: 1.2rem; margin-bottom: .4em; }
.qual__body p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.qual__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-dark); color: var(--accent); display: grid; place-items: center; margin: -47px 0 14px; position: relative; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.qual__ic svg { width: 24px; height: 24px; }
.guarantee { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-top: 30px; padding: 30px 36px; border-radius: var(--radius-lg); color: #e6e9ec; background: linear-gradient(120deg, var(--brand-darker), #2b3238); border-left: 8px solid var(--accent); box-shadow: var(--shadow-lg); }
.guarantee__ic { width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: var(--brand-darker); display: grid; place-items: center; }
.guarantee__ic svg { width: 38px; height: 38px; }
.guarantee h3 { color: #fff; font-size: 1.4rem; margin-bottom: .25em; }
.guarantee p { margin: 0; color: #cfd4d9; }
@media (max-width: 800px) { .guarantee { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 22px; border-left: 0; border-top: 8px solid var(--accent); } }

/* ---------- Qué incluye tu presupuesto ---------- */
.inc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 52px; align-items: center; }
@media (max-width: 900px) { .inc { grid-template-columns: 1fr; gap: 30px; } }
.inc__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.inc__list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.inc__list svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--accent); color: var(--brand-darker); }
.inc__list b { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); }
.inc__list span { font-size: .93rem; color: var(--ink-soft); }
.inc__fig { margin: 0; position: relative; }
.inc__fig img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #fff; }
.inc__fig figcaption { margin-top: 10px; font-size: .84rem; color: var(--ink-soft); text-align: center; }
.inc__badge { position: absolute; right: -10px; top: -14px; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--brand-darker); font: 800 .78rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 24px rgba(0,0,0,.25); transform: rotate(3deg); }

/* ---------- Llamada final a cotizar ---------- */
.ctaq { position: relative; overflow: hidden; color: #e6e9ec; padding: 96px 0; background: var(--brand-darker); }
.ctaq__bg { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .38; }
.ctaq::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(10,13,16,.95), rgba(14,17,20,.8) 60%, rgba(14,17,20,.6)); }
.ctaq .container { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 52px; align-items: center; }
@media (max-width: 900px) { .ctaq .container { grid-template-columns: 1fr; gap: 34px; } }
.ctaq h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.1; }
.ctaq h2 em { font-style: normal; color: var(--accent); }
.ctaq p { color: #cdd2d7; font-size: 1.08rem; }
.ctaq__tel { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.ctaq__tel .btn { padding: .8rem 1.3rem; font-size: .95rem; }
.ctaq__form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 30px 30px 26px; box-shadow: var(--shadow-lg); border-top: 6px solid var(--accent); }
.ctaq__form h3 { font-size: 1.25rem; margin-bottom: .2em; }
.ctaq__form > p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1rem; }
.ctaq__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.ctaq__form label { font-size: .78rem; color: var(--ink-soft); margin-bottom: 3px; }
.ctaq__form .btn { margin-top: 16px; width: 100%; justify-content: center; }
.ctaq__note { margin: 12px 0 0; font-size: .8rem; color: var(--ink-soft); text-align: center; }

/* Escaneo de cumbre en tarjetas de obras: más aire */
.proj-grid { gap: 28px; }
.svc-tiles { gap: 28px; }
.proj-card, .svc-tile { border-radius: 18px; }

/* Pie con garantía de confianza */
.footer-trust { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 26px 0; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-trust span { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: #dfe3e7; font-weight: 600; }
.footer-trust svg { width: 18px; height: 18px; color: var(--accent); }

/* Página de planta */
.plant-hero { position: relative; min-height: 440px; display: flex; align-items: center; overflow: hidden; background: var(--brand-darker); color: #fff; }
.plant-hero .hero-v__media { opacity: 1; }
.plant-hero__in { position: relative; z-index: 2; padding: 90px 0 80px; max-width: 760px; }
.plant-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.plant-hero p { color: #d6dade; font-size: 1.15rem; }
.cap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 800px) { .cap-list { grid-template-columns: 1fr; } }
.cap-row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 3px rgba(20,22,25,.08), 0 14px 36px rgba(20,22,25,.09); }
.cap-row img, .cap-row .vcard { width: 100%; height: 100%; min-height: 150px; object-fit: cover; border-radius: 0; }
.cap-row .vcard { aspect-ratio: auto; box-shadow: none; }
.cap-row__body { padding: 18px 22px 18px 0; }
.cap-row__body h3 { font-size: 1.08rem; margin-bottom: .25em; }
.cap-row__body p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 520px) { .cap-row { grid-template-columns: 120px 1fr; gap: 14px; } }

/* Video destacado + fila de verticales */
.vstack { display: grid; gap: 22px; }
.vcard--wide { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .vcard--wide { aspect-ratio: 16 / 10; } }
.vsec__cta .btn { min-width: 220px; justify-content: center; }
.proof__num [data-count] { display: inline; }
.hero-v h1 { max-width: 15em; }

/* Los videos verticales vienen en cuadro apaisado con barras negras: se recortan al centro 9:16 */
.vcard--v { aspect-ratio: 9 / 16; }
.vmodal.is-v video { aspect-ratio: 9 / 16; width: auto; height: 74vh; object-fit: cover; }
@media (max-width: 700px) { .vmodal.is-v video { height: 70vh; } }
.vcard--v { aspect-ratio: 9 / 15; }
.cap-row .vcard { aspect-ratio: auto !important; min-height: 170px; }
.cap-row .vcard__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.cap-row .vcard__play svg { width: 20px; height: 20px; }
.cap-row .vcard__cap { display: none; }

/* Video con barras negras arriba y abajo (animación del modelo 3D): se recorta */
.vmodal.is-crop video { aspect-ratio: 1088 / 528; object-fit: cover; }

/* ===== Fotos y videos nuevos: obra paso a paso, ingeniería 3D, mosaico de planta ===== */
.seq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.seq__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--brand-dark); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.seq__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.seq__item:hover img { transform: scale(1.04); }
.seq__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 16px; color: #fff; font: 700 1rem/1.25 var(--font-head); background: linear-gradient(0deg, rgba(10,13,16,.88), transparent); }
.seq__n { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--brand-darker); font: 800 .95rem var(--font-head); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
@media (max-width: 900px) { .seq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .seq { grid-template-columns: 1fr; } }

.eng { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.eng__video .vcard { width: 100%; }
.eng__text h3 { font: 800 1.45rem/1.2 var(--font-head); margin: 0 0 16px; }
.eng__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.eng__list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.eng__list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent-dark); }
.eng__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.eng__fig { margin: 0; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.eng__fig img { width: 100%; aspect-ratio: 16 / 11; object-fit: contain; background: #f1f2f3; display: block; }
.eng__fig figcaption { padding: 10px 14px 12px; font: 600 .85rem/1.3 var(--font-head); color: var(--brand); }
@media (max-width: 900px) { .eng { grid-template-columns: 1fr; } .eng__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 14px; grid-auto-flow: dense; }
.mos__item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-dark); }
.mos__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.mos__item:hover img { transform: scale(1.05); }
.mos__item--big { grid-column: span 2; grid-row: span 2; }
.mos__item--tall { grid-row: span 2; }
@media (max-width: 900px) { .mos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; } }
.gal-group { margin-top: 44px; }
.gal-group:first-of-type { margin-top: 10px; }
.gal-group h3 { font: 800 1.2rem var(--font-head); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.gal-group h3::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--accent); }

/* ===== Soldadura en planta: 3 videos verticales + tira de fotos ===== */
.wf3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1040px; margin: 0 auto; }
.wf3 .vcard { width: 100%; }
.wfph { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.wfph__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--brand-dark); aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm); }
.wfph__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.wfph__item:hover img { transform: scale(1.05); }
.wfph__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font: 700 .88rem/1.25 var(--font-head); background: linear-gradient(0deg, rgba(10,13,16,.85), transparent); }
@media (max-width: 900px) { .wfph { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .wf3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .wf3 .vcard { scroll-snap-align: center; }
}
