/* ==========================================================================
   TU IMAGEN LAB — Laboratorio Dental Digital
   Hoja de estilos principal
   Paleta: negro #231F20 · amarillo #E8D756 · blanco cálido #F7F4E9
   Tipografías: Montserrat (títulos) · Quicksand (texto)
   ========================================================================== */

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

/* ============ FUENTES (locales, variables) ============ */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/quicksand.woff2') format('woff2');
}

/* ============ TOKENS ============ */
:root {
  --ink: #231F20;          /* negro corporativo */
  --ink-deep: #1A1617;     /* fondo hero / contacto */
  --ink-card: #2B2627;     /* tarjetas sobre oscuro */
  --line-dark: rgba(255, 255, 255, .09);
  --yellow: #E8D756;       /* amarillo corporativo */
  --yellow-deep: #D8C53F;
  --paper: #F7F4E9;        /* blanco cálido, sesgo amarillo */
  --paper-card: #FFFFFF;
  --line-paper: rgba(35, 31, 32, .14);
  --tx-dark: #F4F1EA;      /* texto sobre oscuro */
  --mut-dark: #B3AB9F;     /* secundario sobre oscuro */
  --tx-paper: #231F20;
  --mut-paper: #67604F;
  --disp: 'Montserrat', system-ui, sans-serif;
  --body: 'Quicksand', system-ui, sans-serif;
  --rad: 16px;
  color-scheme: dark;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--body); font-weight: 500; background: var(--ink); color: var(--tx-dark);
  line-height: 1.75; font-size: 16.5px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 91%); margin-inline: auto; }
section { scroll-margin-top: 86px; }
.band { padding: clamp(76px, 9vw, 128px) 0; }

/* ============ TIPOGRAFÍA ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-weight: 700;
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--yellow);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); flex: none; }
.paper .eyebrow { color: #9C8A14; }
.paper .eyebrow .dot { background: #C7B32C; }
h1, h2 { font-family: var(--disp); text-transform: uppercase; text-wrap: balance; line-height: 1.08; letter-spacing: .005em; }
h1 { font-weight: 800; font-size: clamp(2.35rem, 5.6vw, 4.05rem); margin: 22px 0 24px; }
h2 { font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 18px 0 18px; }
h3 { font-family: var(--disp); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; }
.lead { font-size: 1.08rem; max-width: 60ch; color: var(--mut-dark); }
.paper .lead { color: var(--mut-paper); }
.accent { color: var(--yellow); }

/* sonrisa del logo como divisor */
.smile { display: block; margin: 6px 0 0; }
.smile path { stroke: var(--yellow); stroke-width: 7; fill: none; stroke-linecap: round; }
.smile circle { fill: var(--tx-dark); }
.paper .smile circle { fill: var(--ink); }

/* chip "provisorio" — eliminar cuando llegue el contenido real */
.prov {
  display: inline-block; vertical-align: middle; font-size: .6rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--yellow); border: 1px solid rgba(232, 215, 86, .45);
  border-radius: 999px; padding: .18em .6em; margin-left: 8px; white-space: nowrap;
}
.paper .prov { color: #8a7a10; border-color: rgba(138, 122, 16, .4); }

/* ============ HEADER ============ */
header {
  position: fixed; inset: 0 0 auto; z-index: 60; transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
header.scrolled { background: rgba(26, 22, 23, .9); backdrop-filter: blur(14px); border-color: var(--line-dark); }
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav .logo img { height: 42px; width: auto; }
.nav ul { display: flex; gap: 30px; list-style: none; }
.nav ul a { font-weight: 600; font-size: .9rem; color: var(--tx-dark); opacity: .85; position: relative; padding: 4px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--yellow); transition: width .25s; }
.nav ul a:hover { opacity: 1; }
.nav ul a:hover::after { width: 100%; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 9px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: .88rem; padding: 11px 22px; border-radius: 999px; transition: transform .2s, background .2s;
}
.btn-wa:hover { background: var(--yellow-deep); transform: translateY(-1px); }
.btn-wa svg { width: 17px; height: 17px; fill: currentColor; }
.burger { display: none; background: none; border: 1px solid var(--line-dark); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--tx-dark); }
.burger svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.mobile-menu { display: none; }
@media (max-width: 920px) {
  .nav ul, .nav .btn-wa { display: none; }
  .burger { display: grid; place-items: center; }
  .mobile-menu.open {
    display: flex; flex-direction: column; gap: 4px; background: rgba(26, 22, 23, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark); padding: 10px 5% 22px;
  }
  .mobile-menu a { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line-dark); }
  .mobile-menu a:last-child { border: none; }
  .mobile-menu .btn-wa { display: inline-flex; margin-top: 12px; justify-content: center; }
}

/* ============ HERO (carrusel de fondo) ============ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--ink-deep);
  padding: 130px 0 110px; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-on img { animation: hero-zoom 8s ease-out forwards; }
  @keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
}
/* velo oscuro para que el texto se lea sobre cualquier foto */
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 22, 23, .93) 0%, rgba(26, 22, 23, .72) 42%, rgba(26, 22, 23, .38) 100%),
    linear-gradient(0deg, rgba(26, 22, 23, .88) 0%, transparent 34%);
}
.hero-arc { position: absolute; left: -4%; top: 16%; width: 115%; opacity: .12; pointer-events: none; }
.hero-arc path { stroke: var(--yellow); stroke-width: 24; fill: none; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .hero-arc path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .2s cubic-bezier(.6, 0, .3, 1) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
.hero-grid { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.hero-copy .badge > span:last-child, .hero-copy h1, .hero-copy .lead { transition: opacity .45s ease, transform .45s ease; }
.hero-copy.swap .badge > span:last-child, .hero-copy.swap h1, .hero-copy.swap .lead { opacity: 0; transform: translateY(14px); }
/* controles del carrusel (puntos, flechas) */
.hero-ui { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; }
.hero-ui .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.hero-ctrl { display: flex; align-items: center; gap: 18px; }
.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dot {
  width: 9px; height: 9px; border-radius: 999px; border: none; padding: 0; cursor: pointer;
  background: rgba(244, 241, 234, .35); transition: width .35s, background .35s;
}
.hero-dot.is-on { width: 30px; background: var(--yellow); }
.badge {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07); backdrop-filter: blur(6px); border-radius: 999px; padding: 8px 18px;
  font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(244, 241, 234, .92);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .badge .dot { animation: none; } }
.hero .lead { margin-bottom: 38px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: .95rem; padding: 15px 30px; border-radius: 999px; transition: transform .2s, background .2s;
}
.btn-primary:hover { background: var(--yellow-deep); transform: translateY(-2px); }
.btn-primary svg { width: 18px; height: 18px; fill: currentColor; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid rgba(255, 255, 255, .4); color: var(--tx-dark);
  font-weight: 600; font-size: .95rem; padding: 15px 30px; border-radius: 999px; transition: background .2s, border-color .2s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .65); }
.hero-note { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 241, 234, .42); }

/* ============ MARCO DE FOTO ============ */
.ph { position: relative; border-radius: var(--rad); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.ph:hover img { transform: scale(1.045); }

/* ============ CIFRAS ============ */
.stats { background: var(--ink); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 26px; text-align: center; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: none; }
.stat .v { font-family: var(--disp); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--tx-dark); font-variant-numeric: tabular-nums; }
.stat .v em { font-style: normal; color: var(--yellow); }
.stat .l { font-size: .8rem; color: var(--mut-dark); margin-top: 6px; line-height: 1.45; }

/* ============ BANDAS ============ */
.paper-band { background: var(--paper); color: var(--tx-paper); }
.cols-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 76px); align-items: start; }
.paper p { color: #4A4437; }
.paper strong { color: var(--tx-paper); }
.chip-pin {
  display: flex; align-items: center; gap: 14px; background: var(--paper-card); border: 1px solid var(--line-paper);
  border-radius: 14px; padding: 16px 20px; margin-top: 28px;
}
.chip-pin .ic { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--ink); display: grid; place-items: center; }
.chip-pin .ic svg { width: 19px; height: 19px; stroke: var(--yellow); stroke-width: 1.8; fill: none; }
.chip-pin small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mut-paper); }
.chip-pin b { font-size: .92rem; font-weight: 700; }
/* ============ QUIÉNES SOMOS: collage + hitos ============ */
.somos-collage { position: relative; padding-bottom: 52px; }
.sc-main { margin: 0; border-radius: 26px 26px 26px 150px; overflow: hidden; box-shadow: 0 24px 60px rgba(35, 31, 32, .16); }
.sc-main img { width: 100%; aspect-ratio: 4/4.1; object-fit: cover; display: block; transition: transform .7s ease; }
.somos-collage:hover .sc-main img { transform: scale(1.04); }
.sc-small {
  position: absolute; margin: 0; right: -5%; bottom: 0; width: 52%; transform: rotate(3deg);
  border: 7px solid var(--paper); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 44px rgba(35, 31, 32, .22);
}
.sc-small img { width: 100%; aspect-ratio: 16/9.5; object-fit: cover; display: block; }
.sc-badge {
  position: absolute; top: 22px; left: -14px; transform: rotate(-2deg);
  display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--yellow);
  border-radius: 999px; padding: 11px 20px; font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; box-shadow: 0 12px 30px rgba(35, 31, 32, .3);
}
.sc-badge svg { width: 30px; height: 12px; flex: none; }
.sc-badge svg path { stroke: var(--yellow); stroke-width: 9; fill: none; stroke-linecap: round; }
.sc-badge svg circle { fill: var(--yellow); }
.hitos { list-style: none; margin-top: clamp(56px, 7vw, 84px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 4vw, 48px); }
.hitos li { position: relative; padding-top: 26px; }
.hitos li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 3px; border-radius: 2px; background: rgba(35, 31, 32, .12); }
.hitos li::after { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 11px; border-radius: 7px; background: var(--yellow); }
.hitos .y { font-family: var(--disp); font-weight: 800; font-size: 1.3rem; display: block; margin-bottom: 8px; }
.hitos p { font-size: .95rem; color: var(--mut-paper); max-width: 36ch; }

/* ============ SERVICIOS ============ */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: clamp(38px, 5vw, 58px); }
.card {
  background: var(--ink-card); border: 1px solid var(--line-dark); border-radius: 20px;
  padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(232, 215, 86, .4); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; border: 1px solid rgba(232, 215, 86, .4); display: grid; place-items: center; }
.card .ic svg { width: 26px; height: 26px; stroke: var(--yellow); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card ul { list-style: none; display: grid; gap: 9px; }
.card li { position: relative; padding-left: 22px; font-size: .94rem; color: var(--mut-dark); }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 11px; height: 3px; border-radius: 2px; background: var(--yellow); }
.card li b { color: var(--tx-dark); font-weight: 600; }
.card .go {
  margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .86rem; color: var(--yellow);
  display: inline-flex; align-items: center; gap: 8px;
}
.card .go::after { content: "→"; transition: transform .2s; }
.card .go:hover::after { transform: translateX(4px); }
.serv-note {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center;
  font-size: .85rem; color: var(--mut-dark);
}
.serv-note b { color: var(--tx-dark); font-weight: 600; }

/* ============ MODALIDADES (banda amarilla) ============ */
.yellow-band { background: var(--yellow); color: var(--ink); }
.yellow-band .eyebrow { color: var(--ink); }
.yellow-band .eyebrow .dot { background: var(--ink); }
.yellow-band .lead { color: rgba(35, 31, 32, .72); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(36px, 5vw, 54px); }
.mode {
  border: 2px solid var(--ink); border-radius: 18px; background: rgba(255, 255, 255, .34);
  padding: 30px 28px; box-shadow: 6px 6px 0 var(--ink); transition: transform .2s, box-shadow .2s;
}
.mode:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.mode .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; margin-bottom: 18px; }
.mode .ic svg { width: 24px; height: 24px; stroke: var(--yellow); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mode h3 { margin-bottom: 8px; }
.mode p { font-size: .94rem; color: rgba(35, 31, 32, .78); font-weight: 600; }
.modes-foot {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--tx-dark);
  border-radius: 999px; padding: 12px 24px; font-size: .85rem; font-weight: 600;
}
.modes-foot svg { width: 16px; height: 16px; stroke: var(--yellow); stroke-width: 1.8; fill: none; flex: none; }

/* ============ PROCESO ============ */
.steps { counter-reset: paso; display: grid; margin-top: 10px; }
.step {
  counter-increment: paso; display: grid; grid-template-columns: 64px 1fr; gap: 22px; position: relative;
  padding: 26px 0 30px;
}
.step::before {
  content: counter(paso, decimal-leading-zero); font-family: var(--disp); font-weight: 800; font-size: 1.05rem;
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(35, 31, 32, .35); display: grid; place-items: center;
  background: var(--paper); position: relative; z-index: 2; font-variant-numeric: tabular-nums;
}
.step::after {
  content: ""; position: absolute; left: 26px; top: 78px; bottom: -6px; width: 1.5px;
  background: rgba(35, 31, 32, .18);
}
.step:last-child::after { display: none; }
.step.key::before { background: var(--yellow); border-color: var(--ink); }
.step h3 { margin-bottom: 5px; }
.step p { font-size: .95rem; max-width: 52ch; }
.step .flag {
  display: inline-block; background: var(--ink); color: var(--yellow); font-size: .66rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; border-radius: 6px; padding: .3em .7em; margin-bottom: 8px;
}
.times {
  background: var(--ink); color: var(--tx-dark); border-radius: 22px; padding: clamp(28px, 3.6vw, 44px);
  position: sticky; top: 110px; display: grid; gap: 20px;
}
.times h3 { color: var(--yellow); }
.time-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line-dark); padding-bottom: 16px; }
.time-row + .time-row { padding-top: 16px; }
.time-row:last-of-type { border: none; padding-bottom: 0; }
.time-row .t { font-size: .92rem; color: var(--mut-dark); }
.time-row .v { font-family: var(--disp); font-weight: 800; font-size: 1.15rem; white-space: nowrap; color: var(--tx-dark); }
.times small { font-size: .78rem; color: var(--mut-dark); line-height: 1.6; }
.times .warr {
  display: flex; gap: 12px; align-items: flex-start; background: rgba(232, 215, 86, .08); border: 1px solid rgba(232, 215, 86, .3);
  border-radius: 14px; padding: 14px 16px; font-size: .84rem; color: var(--tx-dark);
}
.times .warr svg { width: 18px; height: 18px; flex: none; stroke: var(--yellow); stroke-width: 1.8; fill: none; margin-top: 2px; }
/* la tarjeta es oscura dentro de una banda clara: anula el color de .paper strong */
.paper .times strong { color: var(--tx-dark); }

/* ============ TRABAJOS (carrusel) ============ */
.works-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.works-nav { display: flex; gap: 10px; padding-bottom: 10px; flex: none; }
.works-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: var(--ink-card);
  color: var(--tx-dark); cursor: pointer; display: grid; place-items: center;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.works-btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: scale(1.08); }
.works-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.works {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: clamp(30px, 4vw, 46px) calc(50% - min(330px, 76vw) / 2) 18px;
  scrollbar-width: none;
}
.works::-webkit-scrollbar { display: none; }
.work {
  flex: 0 0 auto; width: min(330px, 76vw); margin: 0; scroll-snap-align: center;
  background: var(--ink-card); border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden;
  will-change: transform, opacity; transition: border-color .35s;
}
/* la escala y opacidad de cada tarjeta las fija JS según su distancia al centro (efecto coverflow) */
.work:hover { border-color: rgba(232, 215, 86, .45); }
.work { cursor: zoom-in; }
.work img { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; display: block; }
.work figcaption { padding: 14px 18px 17px; font-size: .86rem; font-weight: 600; color: var(--mut-dark); }

/* lightbox de trabajos */
.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(20, 17, 18, .93); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 26px); padding: 4vh 4vw;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; min-width: 0; }
/* escenario de tamaño fijo: la foto cambia, la caja no — nada se mueve entre foto y foto */
.lightbox img {
  width: min(860px, 78vw); height: 76vh; object-fit: contain; background: #0B0909;
  border-radius: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  transform: scale(.95); transition: transform .3s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox figcaption { color: var(--tx-dark); font-size: .95rem; font-weight: 600; text-align: center; max-width: 60ch; }
.lb-close { position: absolute; top: 20px; right: 20px; }
/* flechas ancladas a los bordes de la pantalla, siempre en el mismo punto */
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: max(20px, 3vw); }
.lightbox .lb-next { right: max(20px, 3vw); }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* ============ DIFERENCIADORES ============ */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: clamp(36px, 5vw, 54px); }
.feat {
  border: 1px solid var(--line-dark); border-radius: 18px; padding: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .025), transparent 55%);
  transition: transform .25s, border-color .25s;
}
.feat:hover { transform: translateY(-4px); border-color: rgba(232, 215, 86, .4); }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(232, 215, 86, .12); display: grid; place-items: center; margin-bottom: 16px; }
.feat .ic svg { width: 22px; height: 22px; stroke: var(--yellow); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin-bottom: 7px; }
.feat p { font-size: .92rem; color: var(--mut-dark); }
.mats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.mats span {
  border: 1px solid rgba(232, 215, 86, .4); color: var(--tx-dark); border-radius: 999px;
  padding: 8px 18px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.tech-ph { margin-top: 44px; aspect-ratio: 16/5.5; }

/* ============ CONTACTO ============ */
.contact { background: var(--ink-deep); }
.contact-grid { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(36px, 5vw, 76px); align-items: start; }
.c-item { display: flex; gap: 16px; align-items: flex-start; padding: 17px 0; border-bottom: 1px solid var(--line-dark); }
.c-item:last-of-type { border: none; }
.c-item .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(232, 215, 86, .1); display: grid; place-items: center; }
.c-item .ic svg { width: 20px; height: 20px; stroke: var(--yellow); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.c-item small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mut-dark); margin-bottom: 2px; }
.c-item a.big, .c-item b { font-size: 1.02rem; font-weight: 700; color: var(--tx-dark); }
.c-item a.big:hover { color: var(--yellow); }
.c-item p { font-size: .86rem; color: var(--mut-dark); margin-top: 2px; }
.c-map { margin-top: 20px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-dark); }
.c-map iframe { display: block; width: 100%; height: 230px; border: 0; filter: grayscale(25%); }
.c-map a {
  display: block; padding: 11px 18px; background: var(--ink-card); color: var(--yellow);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; border-top: 1px solid var(--line-dark);
}
.c-map a:hover { background: rgba(232, 215, 86, .1); }
.cover { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.cover div { border: 1px solid var(--line-dark); border-radius: 14px; padding: 16px 18px; }
.cover b { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }
.cover p { font-size: .83rem; color: var(--mut-dark); }
.form-card { background: var(--paper); color: var(--tx-paper); border-radius: 24px; padding: clamp(28px, 3.6vw, 46px); }
.form-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.form-card > p { font-size: .88rem; color: var(--mut-paper); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut-paper); }
.field input, .field textarea {
  font-family: var(--body); font-size: .95rem; font-weight: 500; color: var(--tx-paper);
  background: var(--paper-card); border: 1px solid var(--line-paper); border-radius: 11px;
  padding: 12px 15px; width: 100%; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: #B5A32A; }
.field textarea { resize: vertical; min-height: 110px; }
.form-card button {
  font-family: var(--body); width: 100%; margin-top: 18px; display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  background: var(--ink); color: var(--yellow); font-weight: 700; font-size: .98rem; border: none; border-radius: 999px;
  padding: 16px; cursor: pointer; transition: transform .2s, opacity .2s;
}
.form-card button:hover { transform: translateY(-2px); }
.form-card button svg { width: 18px; height: 18px; fill: currentColor; }
.form-foot { font-size: .76rem; color: var(--mut-paper); text-align: center; margin-top: 14px; }
.form-foot a { font-weight: 700; text-decoration: underline; }

/* ============ FOOTER ============ */
.footer { background: #171314; border-top: 1px solid var(--line-dark); padding: 64px 0 0; }
.f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.f-grid .logo img { height: 52px; width: auto; margin-bottom: 18px; }
.f-grid p { font-size: .87rem; color: var(--mut-dark); max-width: 34ch; }
.f-cta-row { margin: 24px 0 0; }
.f-grid h4 { font-family: var(--disp); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.f-grid ul { list-style: none; display: grid; gap: 10px; }
.f-grid ul a { font-size: .9rem; color: var(--mut-dark); }
.f-grid ul a:hover { color: var(--tx-dark); }
.f-bottom { border-top: 1px solid var(--line-dark); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: .76rem; color: rgba(179, 171, 159, .6); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 58px; height: 58px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center; box-shadow: 0 10px 34px rgba(232, 215, 86, .35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: var(--ink); }

/* aparición al hacer scroll */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ============ IMPRESIÓN ============ */
@media print {
  .rv { opacity: 1; transform: none; transition: none; }
  .step, .feat, .card, .mode, .times, .warr { break-inside: avoid; }
  .times { position: static; }
  .wa-float, .burger { display: none; }
  header { position: static; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line-dark); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line-dark); }
  .cols-2, .cards, .feats, .contact-grid { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .times { position: static; }
  .f-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .hitos { grid-template-columns: 1fr; gap: 28px; }
  .sc-small { right: 0; }
  .sc-badge { left: 0; }
}
