/* ==========================================================================
   Dr. Aluminio — Landing page
   Sistema visual: Inter + Space Grotesk · tinta #0E1319 · cielo #F0F6F9
   acento #40C8E8 · profundo #08718B
   ========================================================================== */

/* ----------------------------------------------------------- Fuentes */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------- Variables */
:root {
  --ink: #0E1319;
  --ink-soft: #16222C;
  --sky: #F0F6F9;
  --paper: #FFFFFF;
  --cyan: #40C8E8;
  --cyan-bright: #63D9F2;
  --teal: #08718B;
  --muted: #4A5560;
  --muted-light: #C9D0D6;
  --line: #D5DBE0;
  --line-dark: rgba(255, 255, 255, .11);
  --danger: #A32D26;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 24px);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --focus-ring: #08718B;
}

/* ------------------------------------------------------------- Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open { overflow: hidden; }

img,
svg { display: block; }

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; }

button { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1.04;
}

h3 { font-size: 21px; line-height: 1.2; }

p { margin: 0; }

ul, ol, dl, dd, figure { margin: 0; padding: 0; }

::selection { background: var(--cyan); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }
#contenido:focus { outline: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------- Tipografía */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.45;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: .65;
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 104px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 46px);
}
.section-head__title {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-head__title .eyebrow { margin-bottom: 2px; }
.section-head__lead {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
}
.section-head--dark h2 { color: #fff; }
.section-head--dark .section-head__lead { color: var(--muted-light); }
.section-head--dark .eyebrow { color: var(--cyan); }

.text-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.text-link .icon { width: 17px; height: 17px; }
.text-link:hover { gap: 11px; color: var(--ink); }

/* ----------------------------------------------------------- Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease),
              box-shadow .35s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 14px 30px -18px rgba(8, 113, 139, .55);
}
.btn--primary:hover {
  background: var(--cyan-bright);
  box-shadow: 0 20px 36px -18px rgba(8, 113, 139, .45);
}
.btn--outline {
  border-color: rgba(14, 19, 25, .45);
  color: var(--ink);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.btn--ghost {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  background: transparent;
}
.btn--ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------ Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
  --focus-ring: var(--cyan);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, .13);
  box-shadow: 0 16px 40px -30px rgba(0, 0, 0, .9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1;
  white-space: nowrap;
}
.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
}
.brand__name { display: inline-block; }

.main-nav {
  display: none;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}
.main-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, .75);
  transition: color .3s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active { color: #fff; }
.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-cta { display: none; }

.menu-toggle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .3);
}
.menu-toggle .icon { width: 22px; height: 22px; }

/* ------------------------------------------------------- Menú móvil */
.menu-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  --focus-ring: var(--cyan);
}
.menu-dialog::backdrop {
  background: rgba(5, 9, 13, .68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.menu-dialog[open] { display: block; }
.menu-dialog[open]::backdrop { animation: backdropIn .4s var(--ease); }

.menu-dialog__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 480px;
  min-height: 100%;
  margin-left: auto;
  padding: 20px clamp(24px, 6vw, 40px) 32px;
  overflow-y: auto;
  background: var(--ink);
  border-left: 1px solid rgba(255, 255, 255, .1);
  animation: menuIn .5s var(--ease);
}
.menu-dialog__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.menu-dialog__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.menu-dialog__close:hover { background: var(--cyan); color: var(--ink); }

.menu-nav {
  display: flex;
  flex-direction: column;
}
.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  transition: color .25s var(--ease), padding-left .3s var(--ease);
}
.menu-nav a span {
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
}
.menu-nav a:hover { color: var(--cyan); padding-left: 6px; }

.menu-dialog__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 4px;
}
.menu-dialog__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
}
.menu-dialog__contact .icon { width: 19px; height: 19px; }
.menu-dialog__meta {
  color: rgba(201, 208, 214, .7);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* --------------------------------------------------------------- Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6.5vw, 72px) clamp(60px, 8vw, 92px);
  background: var(--sky);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 72% at 82% 32%, rgba(64, 200, 232, .18), transparent 62%),
    radial-gradient(ellipse 42% 55% at 4% 8%, rgba(8, 113, 139, .07), transparent 70%);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .8;
  background-image:
    linear-gradient(rgba(8, 113, 139, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 113, 139, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 68%);
  mask-image: linear-gradient(90deg, transparent 8%, #000 68%);
}
.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.4vw, 25px);
  max-width: 660px;
}
.hero__title {
  max-width: 660px;
  font-size: clamp(42px, 6.2vw, 58px);
  font-weight: 700;
  line-height: 1.005;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__mark {
  position: relative;
  display: inline-block;
  font-style: normal;
  white-space: nowrap;
}
.hero__mark::after {
  content: "";
  position: absolute;
  left: -.02em;
  right: -.02em;
  bottom: .015em;
  height: .085em;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), #8BE6F7);
  transform: skewX(-14deg) rotate(-.5deg);
  transform-origin: left center;
}
.hero__text {
  max-width: 545px;
  color: var(--muted);
  font-size: clamp(16.5px, 1.55vw, 18.5px);
  line-height: 1.68;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.hero__note .icon { width: 15px; height: 15px; color: var(--teal); }

.hero__media { display: flex; justify-content: center; }
.hero__photo {
  position: relative;
  isolation: isolate;
  width: min(100%, 460px);
  margin: 0;
}
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(8, 113, 139, .28);
  border-radius: 25px;
  transition: transform .7s var(--ease), border-color .5s var(--ease);
}
.hero__photo:hover::before {
  transform: translate(-4px, -4px);
  border-color: rgba(8, 113, 139, .45);
}
.hero__photo > img:first-child {
  width: 100%;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 20px;
  box-shadow: 0 34px 70px -34px rgba(14, 19, 25, .5);
}
.hero__badge {
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 92px;
  height: 92px;
  border: 4px solid var(--sky);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 16px 30px -16px rgba(14, 19, 25, .45);
}
.hero__caption {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(10, 16, 21, .62);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.3;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero__caption::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* -------------------------------------------------------------- Stats */
.stats {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  --focus-ring: var(--cyan);
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 140%, rgba(64, 200, 232, .16), transparent 48%);
}
.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: 6px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 24px 12px;
  border-left: 1px solid var(--line-dark);
  text-align: center;
}
.stat:nth-child(odd) { border-left: 0; }
.stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
.stat__value {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.stat__label {
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.4;
}

/* ----------------------------------------------------------- Productos */
.products {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 248px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sky);
  color: var(--ink);
  transition: transform .5s var(--ease), background .4s var(--ease),
              border-color .4s var(--ease), box-shadow .5s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(64, 200, 232, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 113, 139, .35);
  background: #fff;
  box-shadow: 0 28px 55px -38px rgba(14, 19, 25, .5);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.service-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .35s var(--ease), color .35s var(--ease),
              transform .5s var(--ease);
}
.service-card:hover .service-card__num {
  background: var(--ink);
  color: var(--cyan);
  transform: rotate(-7deg);
}
.service-card__arrow {
  width: 20px;
  height: 20px;
  color: rgba(14, 19, 25, .32);
  transition: color .3s var(--ease), transform .4s var(--ease);
}
.service-card:hover .service-card__arrow {
  color: var(--teal);
  transform: translate(2px, -2px);
}
.service-card h3 {
  margin-top: 9px;
  font-size: 22px;
  letter-spacing: -.025em;
}
.service-card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.service-card__link .icon {
  width: 15px;
  height: 15px;
  transition: transform .35s var(--ease);
}
.service-card:hover .service-card__link .icon { transform: translateX(4px); }

.service-card--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.service-card--dark p { color: var(--muted-light); }
.service-card--dark .service-card__arrow { color: rgba(255, 255, 255, .38); }
.service-card--dark .service-card__link { color: var(--cyan); }
.service-card--dark:hover {
  border-color: var(--ink-soft);
  background: var(--ink-soft);
}
.service-card--dark:hover .service-card__num {
  background: var(--cyan);
  color: var(--ink);
}

/* ----------------------------------------------------------- Proceso */
.process { background: var(--sky); }
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  list-style: none;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 20px;
  border-top: 3px solid var(--cyan);
}
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 5px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  transition: background .4s var(--ease), color .4s var(--ease),
              transform .45s var(--ease);
}
.process-step:hover .process-step__num {
  background: var(--ink);
  color: var(--cyan);
  transform: translateY(-3px);
}
.process-step h3 { font-size: 19px; letter-spacing: -.02em; }
.process-step p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------------------------------------------------------- Galería */
.gallery {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.gallery .section-head { margin-bottom: 18px; }
.gallery__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.gallery__hint .icon { width: 14px; height: 14px; color: var(--teal); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #DDE3E8;
  color: #fff;
  cursor: zoom-in;
  text-align: left;
  isolation: isolate;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .5s var(--ease);
}
.gallery-item__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 13, 17, 0) 38%, rgba(8, 13, 17, .9) 100%);
  opacity: .92;
  transition: opacity .4s var(--ease);
}
.gallery-item__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
  transition: transform .4s var(--ease);
}
.gallery-item__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-5px) scale(.95);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery-item__zoom .icon { width: 17px; height: 17px; }
.gallery-item:hover img { transform: scale(1.055); filter: saturate(1.04); }
.gallery-item:hover .gallery-item__zoom { opacity: 1; transform: none; }
.gallery-item:hover .gallery-item__caption { transform: translateY(-2px); }
.gallery-item:focus-visible { outline-offset: -3px; }
.gallery-item--extra.is-visible { animation: itemIn .55s var(--ease) both; }
.gallery__more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.gallery__more .btn .icon { transition: transform .35s var(--ease); }
.gallery__more .btn[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* ----------------------------------------------------------- Videos */
.videos {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  --focus-ring: var(--cyan);
}
.videos__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 84% 8%, rgba(64, 200, 232, .2), transparent 58%),
    radial-gradient(ellipse 45% 50% at 4% 100%, rgba(8, 113, 139, .18), transparent 62%);
}
.videos .container { position: relative; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.video-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: #141C23;
  color: #fff;
  cursor: pointer;
  transition: transform .5s var(--ease), border-color .4s var(--ease),
              box-shadow .5s var(--ease);
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) brightness(.9);
  transition: transform 1s var(--ease), filter .5s var(--ease);
}
.video-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 17, .1), transparent 38%, rgba(8, 13, 17, .87) 100%);
}
.video-card__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: auto;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 16px 34px -12px rgba(64, 200, 232, .55);
  transition: transform .4s var(--ease), background .3s var(--ease);
}
.video-card__play .icon {
  width: 23px;
  height: 23px;
  margin-left: 3px;
}
.video-card__time {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: rgba(8, 13, 17, .62);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.video-card__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}
.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(64, 200, 232, .5);
  box-shadow: 0 32px 62px -32px rgba(0, 0, 0, .8);
}
.video-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}
.video-card:hover .video-card__play {
  transform: scale(1.08);
  background: #fff;
}
.videos__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.videos__footer p {
  color: var(--muted-light);
  font-size: 14px;
}

/* -------------------------------------------------------------- FAQ */
.faq { background: var(--paper); }
.faq__grid {
  display: grid;
  gap: 38px;
}
.faq__intro h2 { margin: 16px 0 16px; }
.faq__lead {
  max-width: 360px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.faq__list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 21px 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  text-align: left;
  transition: color .25s var(--ease);
}
.faq-item__question:hover { color: var(--teal); }
.faq-item__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .35s var(--ease), border-color .35s var(--ease),
              color .35s var(--ease);
}
.faq-item__icon .icon {
  width: 16px;
  height: 16px;
  transition: transform .45s var(--ease);
}
.faq-item.is-open .faq-item__icon {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}
.faq-item.is-open .faq-item__icon .icon { transform: rotate(45deg); }
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.faq-item.is-open .faq-item__answer { grid-template-rows: 1fr; }
.faq-item__answer-inner { overflow: hidden; }
.faq-item__answer p {
  max-width: 640px;
  padding: 0 44px 22px 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------- Ubicación */
.location { background: var(--sky); }
.location__grid {
  display: grid;
  gap: 32px;
}
.location__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.location__info h2 { margin: 16px 0 14px; }
.location__lead {
  max-width: 420px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.location__list {
  display: grid;
  gap: 17px;
  width: 100%;
  max-width: 470px;
  margin-bottom: 28px;
  list-style: none;
}
.location__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.location__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
}
.location__icon .icon { width: 17px; height: 17px; }
.location__text { min-width: 0; }
.location__label {
  display: block;
  margin-bottom: 1px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.location__value {
  display: block;
  font-size: 15.5px;
  line-height: 1.5;
}
.location__value a { transition: color .25s var(--ease); }
.location__value a:hover { color: var(--teal); }
.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}
.location__map {
  position: relative;
  display: block;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #E3F1F6;
  box-shadow: 0 26px 65px -46px rgba(14, 19, 25, .45);
}
.location__map-canvas {
  position: absolute;
  inset: 0 0 46px 0;
  display: block;
  overflow: hidden;
  background: #E3F1F6;
  cursor: pointer;
}
.location__map-canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 1s var(--ease), filter .5s var(--ease);
}
.location__map-canvas:hover img { transform: scale(1.025); }
.location__map-canvas:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

.location__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
.location__pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(8, 113, 139, .25);
  border-radius: 50%;
  background: rgba(64, 200, 232, .22);
  animation: pinPulse 3.2s var(--ease-soft) infinite;
}
.location__pin-dot {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 8px 20px -8px rgba(14, 19, 25, .55);
}
.location__pin-dot::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid var(--cyan);
  transform: translateY(2px);
}
.location__pin-label {
  position: absolute;
  left: 50%;
  bottom: 66px;
  padding: 9px 14px;
  border: 1px solid rgba(213, 219, 224, .95);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px -14px rgba(14, 19, 25, .5);
  white-space: nowrap;
  text-align: left;
  transform: translateX(-50%);
}
.location__pin-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(213, 219, 224, .95);
  border-bottom: 1px solid rgba(213, 219, 224, .95);
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}
.location__pin-label strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.location__pin-label span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
}
.location__map-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding-inline: 15px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.location__map-credit {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  transition: color .25s var(--ease);
}
.location__map-credit:hover { color: var(--teal); }
.location__map-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: color .25s var(--ease);
}
.location__map-open .icon { width: 13px; height: 13px; }
.location__map-open:hover { color: var(--ink); }

/* ---------------------------------------------------------- Contacto */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  --focus-ring: var(--cyan);
}
.contact__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 70% at 82% 48%, rgba(64, 200, 232, .17), transparent 60%),
    radial-gradient(ellipse 40% 45% at 0% 100%, rgba(8, 113, 139, .14), transparent 65%);
}
.contact__grid {
  position: relative;
  display: grid;
  gap: 38px;
}
.contact__copy h2 { margin: 16px 0 16px; }
.contact__lead {
  max-width: 430px;
  margin-bottom: 26px;
  color: var(--muted-light);
  font-size: 17px;
  line-height: 1.65;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact__email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.5;
}
.contact__email .icon { width: 16px; height: 16px; color: var(--cyan); }
.contact__email a { transition: color .25s var(--ease); }
.contact__email a:hover { color: var(--cyan); }
.contact__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(201, 208, 214, .78);
  font-size: 13px;
  line-height: 1.5;
}
.contact__meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact__meta .icon { width: 15px; height: 15px; color: var(--cyan); }

.contact__form-wrap {
  width: 100%;
  max-width: 520px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 34px 90px -46px rgba(0, 0, 0, .7);
  --focus-ring: var(--teal);
}
.contact__form-wrap h3 {
  font-size: clamp(22px, 2.4vw, 26px);
  letter-spacing: -.025em;
}
.contact__form-sub {
  margin: 7px 0 21px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field-row {
  display: grid;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.field label span { color: var(--teal); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #BFC9D1;
  border-radius: 10px;
  background: #F9FBFC;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease);
}
.field textarea {
  min-height: 100px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.55;
}
.field input::placeholder,
.field textarea::placeholder { color: #6E7A83; }
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A5560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select:invalid { color: #6E7A83; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(8, 113, 139, .13);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #B33A32;
  background-color: #FFF9F8;
}
.field__error {
  margin: 0;
  color: var(--danger);
  font-size: 11.5px;
  line-height: 1.4;
}
.field__error:empty { display: none; }
.lead-form__submit { margin-top: 3px; min-height: 54px; }
.lead-form__privacy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}
.lead-form__privacy a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lead-form__status {
  display: none;
  padding: 11px 13px;
  border: 1px solid rgba(8, 113, 139, .22);
  border-radius: 9px;
  background: rgba(64, 200, 232, .1);
  color: #075A6E;
  font-size: 12.5px;
  line-height: 1.5;
}
.lead-form__status.is-visible { display: block; }
.lead-form__status a { font-weight: 600; text-decoration: underline; }
.lead-form__noscript {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

/* ------------------------------------------------------------ Footer */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: clamp(46px, 7vw, 70px) 40px;
}
.footer__brand .brand { color: var(--ink); }
.footer__brand p {
  max-width: 330px;
  margin: 15px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  transition: color .25s var(--ease);
}
.footer__social .icon { width: 18px; height: 18px; }
.footer__social:hover { color: var(--ink); }
.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.footer__col h2 {
  margin-bottom: 6px;
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.footer__col a,
.footer__col p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.footer__col a { transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__note { margin-top: 5px !important; font-size: 12.5px !important; }
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink) !important;
  font-weight: 600;
}
.footer__top .icon { width: 14px; height: 14px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.footer__bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__bottom a { transition: color .25s var(--ease); }
.footer__bottom a:hover { color: var(--ink); }

/* --------------------------------------------------- WhatsApp flotante */
.whatsapp-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
}
.whatsapp-float {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 16px 34px -12px rgba(8, 113, 139, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease),
              background .3s var(--ease);
}
.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.whatsapp-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
}
body.modal-open .whatsapp-float {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.whatsapp-float .icon { width: 26px; height: 26px; }
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(64, 200, 232, .55);
  border-radius: 50%;
  opacity: 0;
}
.whatsapp-float.is-visible::before { animation: floatPulse 3s var(--ease-soft) infinite; }
.whatsapp-float:hover { background: #fff; transform: translateY(-3px); }
.whatsapp-float__tip {
  position: absolute;
  right: calc(100% + 11px);
  top: 50%;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%) translateX(4px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.whatsapp-float:hover .whatsapp-float__tip {
  opacity: 1;
  transform: translateY(-50%);
}

/* --------------------------------------------------------- Lightboxes */
.lightbox,
.video-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
  --focus-ring: var(--cyan);
}
.lightbox::backdrop,
.video-modal::backdrop {
  background: rgba(5, 9, 13, .93);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
.lightbox[open],
.video-modal[open] { display: block; }
.lightbox[open]::backdrop,
.video-modal[open]::backdrop { animation: backdropIn .35s var(--ease); }

.lightbox__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: clamp(16px, 4vw, 44px);
}
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1120px, 92vw);
  max-height: 100%;
  min-height: 0;
}
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lightbox__stage img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  height: auto;
  border-radius: 10px;
  background: #0B1116;
  box-shadow: 0 36px 90px -20px rgba(0, 0, 0, .65);
  animation: lightboxIn .45s var(--ease);
  object-fit: contain;
}
.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  width: 100%;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  line-height: 1.4;
}
.lightbox__count {
  padding: 3px 9px;
  border-radius: 999px;
  background: #0B1116;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}
.lightbox__close,
.lightbox__nav,
.video-modal__close {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover,
.video-modal__close:hover {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}
.lightbox__close,
.video-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 48px;
  height: 48px;
}
.lightbox__close .icon,
.video-modal__close .icon { width: 22px; height: 22px; }
.lightbox__nav {
  width: 52px;
  height: 52px;
  flex: none;
}
.lightbox__nav .icon { width: 24px; height: 24px; }

.video-modal__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 62px 20px 24px;
}
.video-modal__frame {
  width: auto;
  height: min(76dvh, 760px);
  max-width: 92vw;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 36px 90px -20px rgba(0, 0, 0, .75);
}
.video-modal__frame video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
.video-modal__title {
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

/* ------------------------------------------------------- Animaciones */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .hero__copy > * { animation: heroIn .9s var(--ease) both; }
.js .hero__copy > :nth-child(1) { animation-delay: .05s; }
.js .hero__copy > :nth-child(2) { animation-delay: .13s; }
.js .hero__copy > :nth-child(3) { animation-delay: .22s; }
.js .hero__copy > :nth-child(4) { animation-delay: .3s; }
.js .hero__copy > :nth-child(5) { animation-delay: .38s; }
.js .hero__photo { animation: photoIn .9s var(--ease) both; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes photoIn {
  from { transform: translateY(16px) scale(.992); }
  to { transform: none; }
}
@keyframes itemIn {
  from { opacity: 0; transform: translateY(16px) scale(.99); }
  to { opacity: 1; transform: none; }
}
@keyframes menuIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes floatPulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes pinPulse {
  0% { transform: scale(.9); opacity: .7; }
  70% { transform: scale(1.38); opacity: 0; }
  100% { transform: scale(1.38); opacity: 0; }
}

/* ------------------------------------------------------- Responsive */

@media (min-width: 520px) {
  .header-cta { display: inline-flex; }
  .gallery-grid { gap: 14px; }
}

@media (min-width: 620px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .video-grid { gap: 16px; }
  .gallery-item__caption { left: 15px; right: 15px; bottom: 13px; font-size: 13.5px; }
}

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 30px; }
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }
  .section-head__lead {
    max-width: 390px;
    padding-bottom: 5px;
    text-align: right;
  }
}

@media (min-width: 760px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat {
    padding: 30px 20px;
    border-top: 0 !important;
  }
  .stat:first-child {
    border-left: 0;
    padding-left: 0;
    text-align: left;
  }
  .stat:last-child { padding-right: 0; text-align: right; }
  .footer__grid { grid-template-columns: 1.35fr .8fr 1fr .85fr; }
  .footer__brand { grid-column: auto; }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .82fr);
    gap: clamp(48px, 5vw, 72px);
  }
  .hero__media { justify-content: flex-end; }
  .hero__photo { width: min(100%, 440px); }
  .hero__title { font-size: clamp(44px, 5.05vw, 64px); }
  .location__grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(40px, 5vw, 64px);
    align-items: stretch;
  }
  .location__map { min-height: 480px; height: 100%; }
  .faq__grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(48px, 7vw, 90px);
    align-items: start;
  }
  .faq__intro { position: sticky; top: 110px; }
}

@media (min-width: 980px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: clamp(48px, 6vw, 80px);
    align-items: center;
  }
  .contact__form-wrap { justify-self: end; }
  .footer__grid { gap: 46px; }
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .video-card__play { width: 66px; height: 66px; }
}

@media (min-width: 1200px) {
  :root { --gutter: 24px; }
  .hero { padding-top: 78px; }
}

@media (max-width: 699px) {
  .video-modal__frame {
    width: 92vw;
    height: auto;
    max-height: calc(100dvh - 150px);
  }
  .lightbox__inner { padding: 64px 12px 82px; }
  .lightbox__nav {
    position: absolute;
    bottom: 22px;
    top: auto;
  }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
  .lightbox__stage img { max-height: calc(100dvh - 200px); }
  .lightbox__caption {
    justify-content: center;
    padding-inline: 8px;
    font-size: 12.5px;
    text-align: center;
  }
}

@media (max-width: 359px) {
  .hero__title { font-size: clamp(36px, 11.4vw, 42px); }
  .location__map-foot {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 8px;
    padding: 5px 10px;
  }
  .location__map-credit {
    width: 100%;
    font-size: 9px;
    text-align: center;
  }
  .location__map-open {
    width: 100%;
    justify-content: center;
    font-size: 11px;
  }
}

@media (max-width: 619px) {
  .service-grid { gap: 12px; }
  .service-card {
    min-height: 0;
    padding: 22px;
  }
  .service-card h3 { font-size: 20px; }
  .service-card p { font-size: 14.5px; }
  .service-card__link { padding-top: 10px; }
}

@media (max-width: 559px) {
  .header-cta { display: none; }
  .hero__actions .btn { width: 100%; }
  .hero__photo { width: min(100%, 390px); }
  .hero__badge { width: 78px; height: 78px; left: -12px; bottom: -12px; }
  .hero__photo::before { inset: 14px -14px -14px 14px; }
  .hero__caption { top: 12px; left: 12px; font-size: 10.5px; }
  .gallery-item { border-radius: 12px; }
  .gallery-item__caption {
    left: 10px;
    right: 10px;
    bottom: 9px;
    font-size: 11.5px;
    line-height: 1.3;
  }
  .gallery-item__zoom {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(14, 19, 25, .5);
    color: #fff;
    opacity: 1;
    transform: none;
  }
  .video-grid { gap: 10px; }
  .video-card { border-radius: 14px; }
  .video-card__play { width: 50px; height: 50px; }
  .video-card__play .icon { width: 19px; height: 19px; }
  .video-card__caption { left: 10px; right: 10px; bottom: 10px; font-size: 11.5px; }
  .video-card__time { top: 9px; right: 9px; font-size: 9.5px; padding: 4px 6px; }
  .stat { padding: 21px 10px; }
  .stat__value { font-size: 23px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-dock { right: 14px; bottom: 14px; }
  .whatsapp-float { width: 54px; height: 54px; }
  .whatsapp-float__tip { display: none; }
}

@media (hover: none) and (min-width: 560px) {
  .gallery-item__zoom {
    opacity: 1;
    transform: none;
    background: rgba(14, 19, 25, .48);
    color: #fff;
  }
}

/* ---------------------------------------------------- Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero__copy > *,
  .js .hero__photo { animation: none; }
}

/* ------------------------------------------------------ Página legal */
.brand--dark { color: var(--ink); }
.legal-page { background: var(--sky); }
.legal-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
@media (max-width: 379px) {
  .legal-header__inner {
    flex-wrap: wrap;
    gap: 8px 16px;
    min-height: 0;
    padding-block: 14px;
  }
  .legal-header .text-link {
    width: 100%;
    justify-content: flex-start;
  }
}
.legal-header .text-link { color: var(--muted); }
.legal-header .text-link:hover { color: var(--ink); }
.legal-main { padding-block: clamp(52px, 8vw, 88px); }
.legal-container { max-width: 820px; }
.legal-main h1 {
  margin: 16px 0 18px;
  font-size: clamp(38px, 5vw, 56px);
}
.legal-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
}
.legal-content {
  margin-top: 36px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.legal-content h2 {
  margin: 30px 0 10px;
  font-size: 22px;
  letter-spacing: -.02em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a {
  color: var(--teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-back { margin-top: 28px; }
.legal-page .site-footer { border-top: 1px solid var(--line); }

/* ----------------------------------------------------------- Impresión */
@media print {
  .site-header,
  .whatsapp-float,
  .hero__actions,
  .gallery,
  .videos,
  .contact__form-wrap,
  .footer__social { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
}
