/* ============================================================
   styles.css — DR. 

 VETERINARIA
   v20260609
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg:        #0A0F14;
  --teal:      #00C4CC;
  --cyan:      #0FC8E3;
  --sage:      #8FAF9A;
  --white:     #FAFAFA;
  --muted:     rgba(250,250,250,0.55);
  --border:    rgba(0,196,204,0.18);
  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;
  --ease:      cubic-bezier(.16,1,.3,1);
  --radius:    4px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 360px; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── CSS DEFENSIVO — reveals nunca dejan texto invisible ── */
.reveal[data-split] { opacity: 1 !important; transform: none !important; }
.reveal { opacity: 1; transform: none; }

/* ── AURORA GLOBAL ── */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0,196,204,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(61,226,255,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(143,175,154,0.04) 0%, transparent 70%);
  animation: aurora-drift 20s ease-in-out infinite alternate;
}
@aurora-drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(20px,-15px) scale(1.02); }
  100% { transform: translate(-10px,20px) scale(0.98); }
}

/* Grano */
.aurora::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

/* ── SPLASH ── */
#splash {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: -2rem;
  animation: splash-hide 0.5s ease 4s forwards;
}

.splash-logo {
  font-family: 'Arial Rounded MT Bold', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 5rem);
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--teal);
  display: flex; gap: 0.02em; flex-wrap: wrap; justify-content: center;
}
.splash-logo span {
  opacity: 0;
  transform: translateY(30px);
  display: inline-block;
  animation: splash-char 0.5s var(--ease) forwards;
}
.splash-logo .splash-d-paw {
  display: inline-block;
  width: 0.78em;
  height: 1em;
  vertical-align: bottom;
}
.splash-logo .splash-d-paw img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.splash-logo .splash-d-paw img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.splash-logo-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
}
.splash-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.splash-dog {
  opacity: 0;
  width: clamp(70px, 14vw, 160px);
  flex-shrink: 0;
  margin-bottom: -5.5rem;
  animation: splash-fade 0.6s ease 1.8s forwards;
transform: translateX(-50px);
}
.splash-sub {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: splash-fade 0.6s ease 1.4s forwards;
  margin-top: -5rem;
  transform: translateX(-80px);
}
.splash-sub-img {
  width: clamp(160px, 24vw, 320px);
  height: auto;
  display: block;
}
.splash-bar {
  width: 200px; height: 1px;
  background: var(--border);
  position: relative; overflow: hidden;
}
.splash-bar::after {
  content: '';
  position: absolute; left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--teal);
  animation: splash-progress 2.2s ease 0.3s forwards;
}
@keyframes splash-char {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splash-fade {
  to { opacity: 1; }
}
@keyframes splash-progress {
  to { left: 0; }
}
/* CSS safety: hide splash after 4.5s (regla unificada arriba) */
@keyframes splash-hide {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}
@media (max-width: 600px) {
  .splash-logo img {
    width: clamp(160px, 65vw, 250px);
    height: auto;
  }
  .splash-dog {
    transform: none;
    margin-bottom: -3.6rem;
    width: clamp(100px, 36vw, 120px);
   transform: translate(-32px, 7px); /* X: izquierda(-), Y: abajo(+) */
  }
  .splash-sub {
     transform: translate(-39px, -40px); /* primer valor: izquierda(-)/derecha(+), segundo: arriba(-)/abajo(+) */
    margin-top: -1rem;

  }
  .splash-sub-img {
    width: clamp(130px, 70vw, 220px);
  }
  .splash-logo-wrap {
    gap: 0.3rem;
 transform: translateX(3.3vw);
  }
  #splash {
    gap: -1rem;
    justify-content: center;
    padding-top: 4rem;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  /* ← acá empieza el bloque nuevo, para tablets (601px a 1024px) */
  .splash-logo img {
    width: clamp(180px, 30vw, 280px);
  }
  .splash-dog {
    transform: translate(-30px, 10px);
    width: clamp(110px, 14vw, 140px);
    margin-bottom: -3.6rem;
  }
  .splash-sub {
    transform: translate(-53px, -45px);
    margin-top: -1rem;
  }
  .splash-sub-img {
    width: clamp(150px, 28vw, 240px);
  }
  .splash-logo-wrap {
    gap: 0.3rem;
    transform: translateX(1.3vw);
  }
  #splash {
    justify-content: center;
    padding-top: 3rem;
  }
}

/* ── CURSOR PERSONALIZADO ── */
#cursor {
  position: fixed; z-index: 9999; pointer-events: none;
 width: 40px; height: 40px;
  border: none;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='%2300C4CC'%3E%3Cellipse cx='40' cy='52' rx='18' ry='20'/%3E%3Cellipse cx='20' cy='28' rx='9' ry='11'/%3E%3Cellipse cx='60' cy='28' rx='9' ry='11'/%3E%3Cellipse cx='10' cy='48' rx='7' ry='9'/%3E%3Cellipse cx='70' cy='48' rx='7' ry='9'/%3E%3C/svg%3E") center/contain no-repeat;
  mix-blend-mode: normal;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s;
  mix-blend-mode: difference;
}
#cursor-label {
  position: fixed; z-index: 9999; pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  transform: translate(14px, -50%);
  opacity: 0;
  transition: opacity .2s;
  white-space: nowrap;
}
body:has([data-cursor]:hover) #cursor { width: 56px; height: 56px; border-color: var(--cyan); }
body:has([data-cursor]:hover) #cursor-label { opacity: 1; }
@media (hover: none) { #cursor, #cursor-label { display: none; } }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(10,15,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
#nav.scrolled { padding: .9rem 2.5rem; }
.nav-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-links a:hover { color: var(--white); }
.nav-num {
  color: var(--teal);
  font-size: 0.55rem;
}
.nav-cta {
  background: var(--teal);
  color: var(--bg) !important;
  padding: .5rem 1.25rem;
  border-radius: 2px;
  font-weight: 700;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: var(--cyan) !important; transform: translateY(-1px); }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px; padding: .5rem;
  cursor: pointer; z-index: 950;
}
.burger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 800;
  background: rgba(10,15,20,0.97);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--white);
  transition: color .2s;
}
.nav-drawer a:hover { color: var(--teal); }
.nav-drawer .nav-cta {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.8rem;
  background: var(--teal);
  color: var(--bg) !important;
  padding: .75rem 2rem;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

/* ── MARCA LATERAL FIJA ── */
.side-mark {
  position: fixed; right: 1.5rem; top: 50%; z-index: 800;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.side-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(1.5); }
}
@media (max-width: 1024px) { .side-mark { display: none; } }

/* ── HERO ── */
#hero {
  position: relative; height: 100vh; min-height: 600px; z-index: 2;
  display: flex; align-items: flex-end;
  padding: 5rem 2.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('assets/img/hero.jpg') center/cover no-repeat;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,15,20,0.55) 0%,
    rgba(10,15,20,0.35) 40%,
    rgba(10,15,20,0.75) 100%
  );
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-kicker {
  font-family: var(--font-mono);
  font-size: clamp(.55rem,.9vw,.7rem);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  line-height: 2;
}
.hero-kicker span.offset {
  display: block;
  padding-left: clamp(1rem, 4vw, 4rem);
}
.hero-h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero-h1 em { color: var(--teal); font-style: italic; }
.hero-tagline {
  font-size: clamp(.9rem,1.5vw,1.1rem);
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--teal);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--cyan); transform: translateY(-2px); }
.btn-primary svg { transition: transform .2s; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-secondary {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--white); }

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--teal);
  overflow: hidden;
  padding: .75rem 0;
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; gap: 0;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bg);
  white-space: nowrap;
  padding: 0 2.5rem;
}
.marquee-track span.sep { color: rgba(10,15,20,0.4); padding: 0; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECCIÓN BASE ── */
.section {
  position: relative; z-index: 1;
  padding: 7rem 2.5rem;
}
.section-num {
  font-family: var(--font-mono);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  color: rgba(0,196,204,0.06);
  position: absolute;
  top: 2rem; left: 1.5rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}
.section-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 2rem;
}

/* ── SECCIÓN 01 — EL LOCAL ── */
#s01 { overflow: hidden; }
.s01-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.s01-collage {
  position: relative; height: 520px;
}
.s01-collage img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.s01-collage img:nth-child(1) {
  width: 65%; height: 60%;
  top: 0; left: 0;
  transform: rotate(-1.5deg);
  z-index: 3;
}
.s01-collage img:nth-child(2) {
  width: 55%; height: 55%;
  top: 20%; right: 0;
  transform: rotate(1.8deg);
  z-index: 2;
}
.s01-collage img:nth-child(3) {
  width: 50%; height: 45%;
  bottom: 0; left: 15%;
  transform: rotate(-0.8deg);
  z-index: 1;
}
.s01-badge {
  position: absolute; bottom: 1.5rem; right: 0;
  background: var(--teal);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  z-index: 10;
  font-weight: 700;
}
.s01-body { padding-top: 2rem; }
.s01-aside {
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
  border-left: 1px solid var(--teal);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.s01-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--white);
}
.s01-lead {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.s01-defs {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.s01-defs li {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 1rem; align-items: baseline;
}
.s01-defs dt {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
}
.s01-defs dd {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .s01-grid { grid-template-columns: 1fr; }
  .s01-collage { height: 340px; }
}

/* ── SECCIÓN 02 — SERVICIOS SCROLL HORIZONTAL ── */
#s02 {
  padding: 0;
  position: relative;
}
.s02-header {
  padding: 5rem 2.5rem 2rem;
  position: relative; z-index: 2;
}
.s02-progress-bar {
  position: absolute; bottom: 0; left: 2.5rem; right: 2.5rem;
  height: 1px; background: var(--border);
}
.s02-progress-fill {
  height: 100%; background: var(--teal);
  width: 0%; transition: width .1s;
}
 {
  position: absolute; right: 0; top: -1.2rem;
  font-family: var(--font-mono);
  font-size: .6rem; letter-spacing: .15em;
  color: var(--muted);
}
.s02-pin-container {
  position: relative;
}
.s02-track-wrap {
  overflow: hidden;
}
.s02-track {
  display: flex;
  will-change: transform;
}
.service-card {
  min-width: 100vw;
  height: 100vh;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 5rem 2.5rem 5rem 5rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, transparent 60%);
}
.service-svg-wrap {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.service-svg-wrap svg {
  width: clamp(180px, 25vw, 320px);
  height: auto;
  filter: drop-shadow(0 0 30px currentColor);
}

.service-info { position: relative; z-index: 2; padding-left: 2rem; }
.service-series {
  font-family: var(--font-mono);
  font-size: .55rem; letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.service-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: .4rem;
}
.service-sub {
  font-family: var(--font-mono);
  font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: .7;
}
.service-benefits {
  list-style: none;
  display: flex; flex-direction: column; gap: .4rem;
  margin-bottom: 1.5rem;
}
.service-benefits li {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  display: flex; align-items: center; gap: .5rem;
}
.service-benefits li::before {
  content: '→';
  color: var(--teal);
}
.service-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 360px;
}
/* Mobile: swipe */
@media (max-width: 1024px) {
  .service-card {
    grid-template-columns: 1fr;
    padding: 5rem 1.5rem 3rem;
    height: auto; min-height: 100vh;
  }
  .service-info { padding-left: 0; padding-top: 2rem; }
  .s02-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .s02-track::-webkit-scrollbar { display: none; }
  .service-card { scroll-snap-align: start; }
}
/* Marquee inferior servicios */
.s02-marquee-bottom {
  background: rgba(0,196,204,0.08);
  border-top: 1px solid var(--border);
  overflow: hidden;
  padding: .6rem 0;
}
.s02-marquee-track {
  display: flex; width: max-content;
  animation: marquee-scroll-rev 20s linear infinite;
}
.s02-marquee-track span {
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 0 2rem;
  white-space: nowrap;
}
@keyframes marquee-scroll-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ── SECCIÓN 03 — OPERACIONES ── */
#s03 { max-width: 1200px; margin: 0 auto; }
.s03-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.ops-list {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.op-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
  position: relative;
  cursor: default;
}
.op-row::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.op-row:hover::after { transform: scaleX(1); }
.op-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.op-row:hover .op-icon { transform: scale(1.12) rotate(5deg); }
.op-icon svg { width: 24px; height: 24px; }
.op-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}
.op-desc {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: .3rem;
  text-transform: uppercase;
}
.op-arrow {
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform .3s, color .3s;
}
.op-row:hover .op-arrow { transform: translateX(6px); }
@media (max-width: 600px) {
  .op-row { grid-template-columns: 56px 1fr; }
  .op-arrow { display: none; }
}

/* ── SECCIÓN 06 — GALERÍA MARQUEE ── */
#s06 {
  padding: 5rem 0;
  overflow: hidden;
}
.s04-header { padding: 0 2.5rem 3rem; }
.gallery-rails { display: flex; flex-direction: column; gap: 1rem; }
.gallery-rail { overflow: hidden; }
.gallery-track {
  display: flex; gap: 1rem;
  width: max-content;
}
.gallery-track img {
  width: 300px; height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.rail-fast .gallery-track  { animation: marquee-scroll 18s linear infinite; }
.rail-slow .gallery-track  { animation: marquee-scroll 35s linear infinite; }
.rail-rev  .gallery-track  { animation: marquee-scroll-rev 25s linear infinite; }
@media (max-width: 600px) {
  .gallery-track img { width: 220px; height: 150px; }
}

/* ── SECCIÓN 04 — AGENDA TU CITA ── */
#s04 {
  padding: 5rem 2.5rem;
}
.cita-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  transition: transform .4s var(--ease);
  transform-style: preserve-3d;
}
.cita-bg {
  position: absolute; inset: 0;
  background: url('assets/img/cita-bg.jpg') center/cover no-repeat;
}
.cita-veil {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,15,20,0.92) 45%, rgba(10,15,20,0.5) 100%);
}
.cita-content {
  position: relative; z-index: 2;
  padding: 3.5rem;
}
.cita-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 2.5rem;
}
.cita-ventajas {
  list-style: none;
  display: flex; flex-direction: column; gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.cita-ventajas li {
  display: flex; align-items: flex-start; gap: 1rem;
}
.ventaja-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0,196,204,0.15);
  border: 1px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.ventaja-icon svg { width: 16px; height: 16px; color: var(--teal); }
.ventaja-text strong {
  display: block;
  font-size: .9rem;
  margin-bottom: .15rem;
}
.ventaja-text span {
  font-size: .8rem;
  color: var(--muted);
}
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: .75rem;
  background: #25D366;
  color: #fff;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .9rem 2rem;
  border-radius: var(--radius);
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }
.cita-image-half {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
@media (max-width: 1024px) {
  .cita-card { grid-template-columns: 1fr; }
  .cita-image-half { display: none; }
  .cita-content { padding: 2rem; }
}

/* ── SECCIÓN 05 — RESERVA ── */
#s05 { padding: 7rem 2.5rem; }
.s06-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.form-field {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  transition: border-color .2s;
}
.form-field:focus-within { border-color: var(--teal); }
.field-num {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .15em;
  color: var(--teal);
  padding-top: .8rem;
}
.field-inner { display: flex; flex-direction: column; gap: .4rem; }
.field-inner label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-inner input,
.field-inner textarea {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .3rem 0;
  width: 100%;
  resize: none;
}
.field-inner input::placeholder,
.field-inner textarea::placeholder { color: rgba(250,250,250,0.2); }
.form-submit {
  margin-top: 2rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.form-alt {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .2s;
}
.form-alt:hover { color: var(--teal); }
.s06-panel {
  border-left: 1px solid var(--border);
  padding-left: 2.5rem;
  padding-top: .5rem;
}
.panel-item {
  margin-bottom: 2rem;
}
.panel-item dt {
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .4rem;
}
.panel-item dd {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .s06-grid { grid-template-columns: 1fr; }
  .s06-panel { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 2rem; }
}

/* ── FOOTER ── */
#footer {
  border-top: 1px solid var(--border);
  padding: 5rem 2.5rem 2rem;
  position: relative; z-index: 1;
}
.footer-display {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  color: rgba(250,250,250,0.06);
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 4rem;
  letter-spacing: -0.01em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.footer-col p,
.footer-col a {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.8;
  display: block;
  transition: color .2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-map iframe {
  width: 100%; height: 200px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  filter: grayscale(1) invert(0.85);
}
.footer-legal {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.3);
}
.footer-legal a { color: var(--muted); transition: color .2s; }
.footer-legal a:hover { color: var(--teal); }
.back-top {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--muted) !important;
  transition: color .2s, transform .2s;
}
.back-top:hover { color: var(--teal) !important; transform: translateY(-2px); }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── UTILS ── */
.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;
}
.text-teal  { color: var(--teal); }
.text-cyan  { color: var(--cyan); }
.text-sage  { color: var(--sage); }
.text-muted { color: var(--muted); }

@media (max-width: 1024px) {
  #s02 .s02-track {
    flex-direction: column !important;
    transform: none !important;
    width: 100% !important;
  }
  #s02 .service-card {
    min-width: 100% !important;
    width: 100% !important;
  }
  #hero {
    padding: 5rem 1.5rem 2rem;
    align-items: flex-start;
    height: 100vh;
  }
  .hero-kicker {
    font-size: .43rem;
    margin-bottom: .75rem;
    letter-spacing: .15em;
  }
  .hero-kicker span.offset {
    padding-left: 0;
  }
  .hero-h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 1rem;
  }
  .hero-tagline {
    font-size: .8rem;
    margin-bottom: 1.5rem;
  }
  .hero-bg {
    background-position: 82%  bottom;
    background-size: 298%;
  }
  .hero-veil {
    background: linear-gradient(
      180deg,
      rgba(10,15,20,0.75) 0%,
      rgba(10,15,20,0.4) 50%,
      rgba(10,15,20,0.7) 100%
    )
;
  }
  .hero-content {
    text-align: center;
    width: 100%;
  }
  .hero-ctas {
    justify-content: center;
  }
  .s02-nav {
    display: none !important;
  }
}

/* ── AJUSTES POR DISPOSITIVO ── */

/* iPhone SE 375x667 */
@media (max-width: 375px) {
  .hero-ctas { margin-top: 0rem; }
}

/* iPhone 14 / 390px */
@media (min-width: 376px) and (max-width: 393px) {
  .hero-ctas { margin-top: 20rem; }
}

/* iPhone 14 Pro Max / Pixel 7 / 430px */
@media (min-width: 394px) and (max-width: 430px) {
  .hero-ctas { margin-top: 4rem; }
}

/* Samsung S20 Ultra 412px alto */
@media (min-width: 400px) and (max-width: 420px) and (min-height: 900px) {
  .hero-ctas { margin-top: 6rem; }
}

/* Samsung S8 360px */
@media (min-width: 355px) and (max-width: 365px) {
  .hero-ctas { margin-top: 20rem; }
}

/* Tablets pequeñas 600-768px */
@media (min-width: 600px) and (max-width: 768px) {
  .hero-ctas { margin-top: 8rem; }
}

/* Tablets medianas 769-1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-ctas { margin-top: 12rem; }
}