/* ==========================================================================
   Pascual Vidal · Tu inversión en Dubái
   Paleta: azul marino profundo + marfil/arena (cúpula) + ámbar muy sutil.
   WhatsApp siempre en verde.
   ========================================================================== */

:root {
  --navy-950: #070d18;
  --navy-900: #0b1424;
  --navy-800: #12203a;
  --navy-700: #1b2c4b;
  --ivory: #f4efe6;
  --ivory-2: #ebe3d5;
  --sand: #d9c7a7;
  --sand-2: #bfa985;
  --ink: #0b1424;
  --mute: #9aa6b8;
  --mute-dark: #5a6474;
  --line: rgba(244, 239, 230, 0.12);
  --line-dark: rgba(11, 20, 36, 0.12);
  --amber: #f7931e;          /* naranja de marca (Instagram) */
  --amber-2: #ffa326;
  --amber-ink: #c76a00;      /* naranja legible sobre fondo claro */
  --wa: #25d366;
  --wa-dark: #1da851;

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --radius: 18px;
  --container: 1240px;
  --pad: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--sand); color: var(--navy-950); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section-light { background: var(--ivory); color: var(--ink); }
.section-deep { background: var(--navy-900); }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand); margin: 0 0 22px;
}
.section-light .eyebrow { color: var(--mute-dark); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(247, 147, 30, .2); }
.h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.01em;
  margin: 0 0 24px; max-width: 18ch;
}
.h2 em, h1 em { font-style: italic; color: var(--amber); }
.section-light .h2 em { color: var(--amber); }
.body-lg { font-size: clamp(17px, 1.4vw, 19px); color: var(--mute); max-width: 54ch; }
.section-light .body-lg { color: var(--mute-dark); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-sub { color: var(--mute); max-width: 56ch; font-size: 18px; margin: 0; }
.section-light .section-sub { color: var(--mute-dark); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease-out), background .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--amber); color: var(--navy-950); }
.btn-primary:hover { background: var(--amber-2); box-shadow: 0 14px 40px -12px rgba(247, 147, 30, .6); }
.section-light .btn-primary { background: var(--amber); color: var(--navy-950); }
.section-light .btn-primary:hover { background: var(--amber-2); box-shadow: 0 14px 40px -14px rgba(247, 147, 30, .6); }
.btn-dark { background: var(--navy-900); color: var(--ivory); }
.btn-dark:hover { background: var(--navy-700); }
.btn-light { background: var(--ivory); color: var(--navy-950); }
.btn-light:hover { background: var(--sand); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); box-shadow: 0 14px 34px -12px rgba(37, 211, 102, .55); }
.btn-wa svg { width: 20px; height: 20px; }
.btn-wa:hover svg { transform: none; }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Splash (doble red de seguridad) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200; background: var(--navy-950);
  display: grid; place-items: center;
  transition: opacity .7s var(--ease-out), visibility .7s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-arch {
  width: 84px; height: 110px; border: 1px solid var(--sand); border-radius: 42px 42px 6px 6px;
  display: grid; place-items: center; font-family: var(--f-display); font-size: 30px; color: var(--sand);
  animation: archIn 1.1s var(--ease-out) both;
}
@keyframes archIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 13, 24, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 12px; padding-bottom: 12px; border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 48px; border: 1px solid var(--sand); border-radius: 20px 20px 4px 4px;
  display: grid; place-items: center; font-family: var(--f-display); font-size: 18px; color: var(--sand);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: .01em; }
.brand-text small { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; color: rgba(244, 239, 230, .78); transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--sand);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn-wa { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s, background .3s, box-shadow .3s; }
.nav.is-scrolled .nav-actions .btn-wa { opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.92); pointer-events: none; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ivory); transition: transform .4s var(--ease-out), top .4s; }
.nav-burger span:first-child { top: 17px; }
.nav-burger span:last-child { top: 25px; }
.nav.is-open .nav-burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav-burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 130px var(--pad) 90px;
}
.hero-glow {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(217, 199, 167, .16), transparent 60%),
    radial-gradient(700px circle at calc(var(--mx, 70%) - 30%) calc(var(--my, 40%) + 30%), rgba(27, 44, 75, .9), transparent 65%),
    radial-gradient(380px circle at 88% 12%, rgba(201, 138, 75, .07), transparent 70%);
  transition: background .2s linear;
}
.hero-grid {
  position: relative; z-index: 1; width: 100%; max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 80px); align-items: center;
}
.hero-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(54px, 8.6vw, 128px); line-height: .92; letter-spacing: -.02em;
  margin: 0 0 18px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.2s var(--ease-out) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes lineUp { to { transform: none; } }
.hero-sign { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 34px); font-style: italic; color: var(--mute); margin: 0 0 26px; }
.hero-sign strong { color: var(--ivory); font-weight: 600; font-style: normal; }
.hero-lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--mute); max-width: 50ch; margin: 0 0 34px; }
.hero-lead strong { color: var(--ivory); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 50px; }
.hero-facts { list-style: none; padding: 26px 0 0; margin: 0; display: flex; gap: clamp(20px, 4vw, 54px); border-top: 1px solid var(--line); }
.hero-facts li { display: flex; flex-direction: column; gap: 4px; max-width: 190px; min-width: 0; }
.hero-facts b { font-family: var(--f-display); font-size: 40px; font-weight: 500; line-height: 1; color: var(--amber); }
.hero-facts span { font-size: 13px; color: var(--mute); line-height: 1.4; }

.hero-visual { margin: 0; position: relative; justify-self: end; width: min(100%, 460px); }
.arch {
  position: relative; overflow: hidden; border-radius: 999px 999px 18px 18px;
  aspect-ratio: 3 / 4; background: var(--navy-800);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.arch img { width: 100%; height: 108%; object-fit: cover; object-position: center 20%; transform: translate3d(0, var(--py, 0), 0) scale(1.02); transition: transform .1s linear; }
.arch::after { content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 1px solid rgba(244, 239, 230, .28); pointer-events: none; }
.hero-badge {
  position: absolute; left: -36px; bottom: 50px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 16px;
  background: rgba(11, 20, 36, .78); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; animation: float 6s ease-in-out infinite;
}
.hero-badge b { display: block; }
.hero-badge small { color: var(--mute); font-size: 12px; }
.badge-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 1; width: 24px; height: 40px; border: 1px solid var(--line); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--sand); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--navy-900); padding: 22px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 42s linear infinite; align-items: center; }
.marquee span { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 30px); font-style: italic; color: var(--ivory); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--amber); font-size: 14px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-visual { margin: 0; position: relative; }
.about-stamp {
  position: absolute; right: -24px; top: 18%;
  width: 124px; height: 124px; border-radius: 50%;
  background: var(--amber); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
  animation: float 7s ease-in-out infinite;
}
.about-stamp b { font-family: var(--f-display); font-size: 54px; font-weight: 600; line-height: 1; }
.about-stamp span { font-size: 12px; font-weight: 600; line-height: 1.25; text-transform: uppercase; letter-spacing: .08em; }
.problem { display: grid; gap: 16px; margin: 34px 0; }
.problem-item {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(27, 44, 75, .5), rgba(11, 20, 36, .2));
  transition: border-color .4s, transform .4s var(--ease-out);
}
.problem-item:hover { border-color: rgba(217, 199, 167, .4); transform: translateX(6px); }
.problem-item .num { font-family: var(--f-display); font-size: 28px; color: var(--amber); line-height: 1; }
.problem-item p { margin: 0; color: var(--mute); }
.problem-item b { color: var(--ivory); display: block; margin-bottom: 4px; font-size: 17px; }
.about-turn { font-family: var(--f-display); font-style: italic; font-size: clamp(32px, 3.6vw, 48px); color: var(--amber); margin: 0 0 14px; line-height: 1.1; }
.about-copy .link-arrow { margin-top: 18px; color: var(--sand); }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  position: relative; padding: 30px 26px 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-dark);
  transition: transform .5s var(--ease-out), box-shadow .5s, background .4s, color .4s;
  transform-style: preserve-3d; min-height: 270px;
}
.service:hover { background: var(--navy-900); color: var(--ivory); box-shadow: 0 30px 60px -30px rgba(11, 20, 36, .55); }
.service:hover p { color: var(--mute); }
.service:hover .service-ico { color: var(--amber); }
.service-num { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 600; color: var(--mute-dark); letter-spacing: .1em; }
.service-ico { width: 40px; height: 40px; color: var(--amber); margin-bottom: 30px; stroke-width: 1.6; transition: color .4s; }
.service h3 { font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1.1; margin: 0 0 12px; }
.service p { margin: 0; font-size: 15px; color: var(--mute-dark); transition: color .4s; }
.services-cta {
  margin-top: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 26px 30px; border-radius: var(--radius); background: var(--ivory-2);
}
.services-cta p { margin: 0 auto 0 0; font-family: var(--f-display); font-size: 24px; font-style: italic; }

/* ---------- Proyectos (slider) ---------- */
.projects { overflow: hidden; padding-bottom: clamp(56px, 7vw, 90px); }
.projects-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 32px; }
.projects-head { flex-wrap: wrap; }
.projects-head > div:first-child { min-width: 0; }
.projects-head .h2 { margin-bottom: 0; max-width: none; }
@media (min-width: 761px) { .projects-head .h2 { white-space: nowrap; font-size: clamp(30px, 3.9vw, 60px); } }
.slider-controls { display: flex; align-items: center; gap: 12px; }
.slider-count { font-size: 14px; color: var(--mute); margin-right: 10px; font-variant-numeric: tabular-nums; }
.slider-count b { color: var(--ivory); font-weight: 600; }
.slider-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s, transform .3s;
}
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover { background: var(--amber); color: var(--navy-950); border-color: var(--amber); }
.slider-btn:disabled { opacity: .35; pointer-events: none; }

.slider { position: relative; }
.slider-track {
  display: flex; gap: clamp(16px, 2.4vw, 30px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad))) 30px;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
  cursor: grab; -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.slider-track.is-dragging .project { pointer-events: none; }
.project {
  flex: 0 0 clamp(290px, 38vw, 500px);
  scroll-snap-align: start;
  position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 4 / 4.7; background: var(--navy-800);
  transform: scale(var(--s, .94)); opacity: var(--o, .6);
  transition: transform .6s var(--ease-out), opacity .6s, box-shadow .6s;
  user-select: none;
}
.project.is-active { --s: 1; --o: 1; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9); }
.project-media { position: absolute; inset: 0; overflow: hidden; }
.project-media img {
  position: absolute; top: 0; left: -12%; width: 124%; max-width: none; height: 100%; object-fit: cover;
  transform: translate3d(var(--px, 0), 0, 0) scale(1.05);
  transition: transform .25s linear, filter .6s;
  filter: saturate(.85);
}
.project:hover .project-media img { filter: saturate(1.05); }
.project::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 13, 24, .96) 0%, rgba(7, 13, 24, .55) 38%, rgba(7, 13, 24, 0) 65%);
}
.project-tag {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  background: rgba(7, 13, 24, .55); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.project-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; }
.project-zone { margin: 0 0 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.project h3 { font-family: var(--f-display); font-size: clamp(30px, 3vw, 42px); font-weight: 500; line-height: 1; margin: 0 0 16px; }
.project-specs { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.project-specs li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: rgba(244, 239, 230, .85); }
.project-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 18px; border-top: 1px solid var(--line);
  max-height: 120px; opacity: 1;
  transition: opacity .5s, transform .5s var(--ease-out);
}
.project:not(.is-active) .project-foot { opacity: .0; transform: translateY(10px); }
.project-price { font-size: 13px; color: var(--mute); line-height: 1.35; }
.project-price b { color: var(--ivory); font-weight: 600; }
.slider-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.slider-progress span { display: block; height: 100%; width: 25%; background: var(--amber); transform-origin: left; transition: width .3s var(--ease-out); }
.slider-hint { margin: 14px 0 0; font-size: 13px; color: var(--mute); }

/* En pantallas grandes los 4 proyectos se ven a la vez, sin deslizar */
@media (min-width: 1100px) {
  .slider-track { overflow: visible; cursor: default; scroll-snap-type: none; gap: 20px; padding-bottom: 10px; }
  .slider-track > div[aria-hidden="true"] { display: none; }
  .project { flex: 1 1 0; min-width: 0; aspect-ratio: auto; min-height: 580px; --s: 1; --o: 1; transition: transform .5s var(--ease-out), box-shadow .5s; }
  .project:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -35px rgba(0, 0, 0, .9); }
  .project:not(.is-active) .project-foot { opacity: 1; transform: none; }
  .project-media img { transform: scale(1.05); }
  .project-body { padding: 22px; }
  .project h3 { font-size: clamp(26px, 2.1vw, 32px); }
  .project-specs li { font-size: 12px; padding: 5px 10px; }
  .project-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .slider-controls, .slider-progress, .slider-hint { display: none; }
}

/* ---------- Vídeos ---------- */
.videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.video {
  position: relative; display: block; width: 100%; text-align: left;
  border-radius: var(--radius); overflow: hidden; background: var(--navy-800);
  aspect-ratio: 16 / 9; isolation: isolate;
}
.video-main { grid-column: span 2; }
.video-thumb { position: absolute; inset: 0; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1s var(--ease-out); }
.video:hover .video-thumb img { transform: scale(1.05); }
.video.has-yt-thumb .video-thumb img, .video-yt .video-thumb img { object-position: center; }
.video-yt .video-meta b { color: var(--amber); }
.video-yt::after { background: linear-gradient(to top, rgba(7, 13, 24, .88), rgba(7, 13, 24, 0) 42%); }
.video.has-yt-thumb::after { background: linear-gradient(to top, rgba(7, 13, 24, .85), rgba(7, 13, 24, 0) 45%); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 13, 24, .92), rgba(7, 13, 24, .1) 60%); z-index: 0; }
.video-play {
  position: absolute; top: 50%; left: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(244, 239, 230, .92); color: var(--navy-950);
  transition: transform .5s var(--ease-out), background .3s;
}
.video:not(.video-main) .video-play { width: 56px; height: 56px; }
.video-play svg { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 3px; }
.video:hover .video-play { transform: translate(-50%, -50%) scale(1.1); background: var(--amber); }
.video-play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(244, 239, 230, .4); animation: ring 2.6s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.video-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.video-meta small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.video-meta b { font-family: var(--f-display); font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.1; }
.video-main .video-meta b { font-size: clamp(28px, 3vw, 40px); max-width: 18ch; }
.videos-cta { margin-top: 36px; }
.videos-cta .link-arrow { color: var(--sand); }

/* ---------- Reseñas ---------- */
.reviews { overflow: hidden; }
.reviews-rail { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews-track { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; padding: 10px 0; }
.reviews-rail:hover .reviews-track { animation-play-state: paused; }
.review {
  margin: 0; width: clamp(290px, 30vw, 400px); flex: none;
  padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.review:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(11, 20, 36, .45); }
.stars { color: var(--amber); letter-spacing: 3px; font-size: 15px; }
.review blockquote { margin: 0; font-family: var(--f-display); font-size: 21px; line-height: 1.35; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.review figcaption b { display: block; }
.review figcaption small { color: var(--mute-dark); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); color: var(--sand); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--navy-900); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 56px); align-items: start; }
.faq-col { display: flex; flex-direction: column; min-width: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0; font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; line-height: 1.25;
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--amber); }
.faq-item summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 4px; }
.faq-item summary svg { width: 22px; height: 22px; flex: none; color: var(--amber); transition: transform .4s var(--ease-out); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { margin: 0 0 24px; color: var(--mute); font-size: 16px; max-width: 60ch; animation: faqIn .45s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
.faq-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.faq-cta p { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 24px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Boletín ---------- */
.news-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; max-width: 520px; }
.inline-form input {
  flex: 1 1 240px; min-width: 0; padding: 16px 22px; border-radius: 999px;
  background: rgba(244, 239, 230, .06); border: 1px solid var(--line); color: var(--ivory);
  font: inherit; font-size: 15px; outline: none; transition: border-color .3s, background .3s;
}
.inline-form input::placeholder { color: var(--mute); }
.inline-form input:focus { border-color: var(--sand); background: rgba(244, 239, 230, .1); }
.form-note { width: 100%; margin: 4px 0 0 6px; font-size: 13px; color: var(--mute); }
.form-msg { width: 100%; margin: 6px 0 0; font-size: 14px; font-weight: 600; min-height: 1em; }
.form-msg.ok { color: var(--wa); }
.form-msg.err { color: #e8907a; }
.sources { margin-top: 44px; }
.sources small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.sources ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sources li { font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: rgba(244, 239, 230, .82); }
.news-preview {
  padding: 30px; border-radius: 24px; background: var(--ivory); color: var(--ink);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8);
  transform-style: preserve-3d; transition: transform .5s var(--ease-out);
}
.np-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line-dark); }
.np-head b { font-family: var(--f-display); font-size: 24px; display: block; line-height: 1.1; }
.np-head small { color: var(--mute-dark); font-size: 13px; }
.np-logo { width: 46px; height: 54px; border-radius: 23px 23px 4px 4px; background: var(--navy-900); color: var(--sand); display: grid; place-items: center; font-family: var(--f-display); font-size: 20px; }
.np-list { list-style: none; margin: 0; padding: 0; counter-reset: np; }
.np-list li { padding: 18px 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 6px; }
.np-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.np-list p { margin: 0; font-size: 15px; }
.np-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); font-weight: 700; }
.np-list li:last-child .np-tag { color: var(--navy-700); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.checks { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9c7a7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.contact-alt { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.contact-alt .link-arrow { color: var(--navy-900); }
.lead-card {
  padding: clamp(26px, 3.5vw, 42px); border-radius: 24px; background: var(--navy-900); color: var(--ivory);
  box-shadow: 0 50px 90px -40px rgba(11, 20, 36, .7);
}
.lead-card h3, .modal-card h3 { font-family: var(--f-display); font-size: 34px; font-weight: 500; margin: 0 0 22px; line-height: 1.1; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 14px; }
.field label { font-size: 13px; color: var(--mute); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(244, 239, 230, .05); border: 1px solid var(--line); color: var(--ivory);
  font: inherit; font-size: 15px; outline: none; transition: border-color .3s, background .3s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sand); background: rgba(244, 239, 230, .09); }
.field .is-invalid, .inline-form .is-invalid { border-color: #e8907a !important; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mute); margin: 6px 0 20px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--amber); }
.consent a { text-decoration: underline; }
.consent.is-invalid { color: #e8907a; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-note { color: var(--mute); max-width: 36ch; font-size: 14px; margin-top: 18px; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(244, 239, 230, .78); }
.footer-links a:hover, .footer-social a:hover { color: var(--sand); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; padding-top: 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.footer-legal .disclaimer { width: 100%; opacity: .7; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  width: 60px; height: 60px; padding: 0; justify-content: center; border-radius: 50%;
  background: var(--wa); color: #fff; font-weight: 600;
  box-shadow: 0 16px 34px -10px rgba(37, 211, 102, .6);
  transition: transform .4s var(--ease-out), background .3s;
  transform: translateY(120px);
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: var(--wa-dark); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: pulse 2.4s infinite; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 8, 15, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .4s both; }
.modal-card {
  position: relative; width: min(100%, 480px); max-height: calc(100svh - 40px); overflow: auto;
  background: var(--navy-900); border: 1px solid var(--line); border-radius: 24px;
  padding: 36px; animation: modalIn .6s var(--ease-out) both;
}
.modal-card > p { color: var(--mute); margin: -8px 0 24px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  font-size: 24px; line-height: 1; display: grid; place-items: center;
  background: rgba(244, 239, 230, .08); transition: background .3s, transform .3s;
}
.modal-close:hover { background: rgba(244, 239, 230, .18); transform: rotate(90deg); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.guide-card { width: min(100%, 820px); padding: 0; display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; }
.guide-cover {
  background: radial-gradient(circle at 30% 20%, var(--navy-700), var(--navy-950));
  display: grid; place-items: center; padding: 40px 24px; position: relative;
}
.book {
  width: 190px; aspect-ratio: 3 / 4.2; border-radius: 4px 12px 12px 4px;
  background: linear-gradient(135deg, var(--ivory), var(--ivory-2)); color: var(--ink);
  padding: 22px 18px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: -8px 0 0 -2px var(--sand-2) inset, 30px 30px 60px -20px rgba(0, 0, 0, .8);
  transform: perspective(800px) rotateY(-14deg) rotateX(4deg);
  animation: float 6s ease-in-out infinite;
}
.book small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute-dark); }
.book b { font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1.05; }
.book b em { color: var(--navy-700); }
.book span { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--line-dark); padding-top: 10px; }
.guide-body { padding: 44px 40px 36px; }
.guide-body h3 { font-family: var(--f-display); font-size: clamp(28px, 3vw, 36px); font-weight: 500; line-height: 1.08; margin: 0 0 14px; }
.guide-body > p:not(.eyebrow):not(.form-note) { color: var(--mute); margin: 0; }
.guide-body .inline-form { margin-top: 24px; }
.guide-body .inline-form .btn { flex: 1 1 auto; }
.video-frame { position: relative; width: min(100%, 1100px); aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; animation: modalIn .6s var(--ease-out) both; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 300; transform: translate(-50%, 40px);
  padding: 14px 22px; border-radius: 999px; background: var(--ivory); color: var(--ink);
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease-out); max-width: calc(100vw - 40px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 20px; }
}
@media (max-width: 960px) {
  /* Menú móvil: panel compacto que se despliega justo debajo de la barra con el logo */
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; z-index: -1; flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 0; padding: 88px var(--pad) 22px; background: var(--navy-950);
    font-family: var(--f-body); font-size: 17px; font-weight: 500;
    max-height: 100svh; overflow-y: auto;
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s, visibility .35s, transform .35s var(--ease-out);
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { color: var(--ivory); padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta-mobile { display: inline-block; align-self: flex-start; border-bottom: 0 !important; font-family: var(--f-body); font-size: 15px; margin-top: 16px; padding: 12px 22px !important; border-radius: 999px; background: var(--amber); color: var(--navy-950) !important; font-weight: 600; }
  .nav-cta-mobile::after { display: none; }
  .nav-burger { display: block; }
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; width: min(78%, 380px); order: -1; }
  .hero-badge { left: -14px; bottom: 26px; }
  .about-grid, .news-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { width: min(80%, 400px); margin: 0 auto; }
  .guide-card { grid-template-columns: 1fr; }
  .guide-cover { padding: 30px 20px 20px; }
  .book { width: 130px; }
  .book b { font-size: 19px; }
}
@media (max-width: 640px) {
  .nav-actions .btn-wa span { display: none; }
  .nav-actions .btn-wa { padding: 11px; width: 44px; height: 44px; }
  .brand-text small { display: none; }
  .hero-ctas .btn { width: 100%; }
  .hero-facts { gap: 16px; }
  .hero-facts b { font-size: 32px; }
  .hero-facts span { font-size: 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .services-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .services-cta p { margin: 0 0 6px; }
  .projects-head { flex-direction: column; align-items: flex-start; }
  .project { flex-basis: 84vw; }
  .project-body { padding: 22px; }
  .project-foot { flex-direction: column; align-items: flex-start; }
  .videos-grid { grid-template-columns: 1fr; }
  .video-main { grid-column: auto; }
  .field-row { flex-direction: column; gap: 0; }
  .video-play, .video:not(.video-main) .video-play { top: 38%; width: 52px; height: 52px; }
  .video-play svg { width: 20px; height: 20px; }
  .video-meta { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { padding: 0; width: 58px; height: 58px; justify-content: center; right: 16px; bottom: 16px; }
  .wa-float-label { display: none; }
  .about-stamp { width: 100px; height: 100px; right: -10px; }
  .about-stamp b { font-size: 42px; }
  .guide-body { padding: 26px 22px 24px; }
  .modal-card:not(.guide-card) { padding: 30px 22px; }
}

/* Solo efectos intrusivos (bucles infinitos) se desactivan con reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .reviews-track { animation-duration: 120s; }
  .badge-pulse, .wa-float::before, .video-play::before { animation: none; }
}

/* ===== Tema claro: fondo blanco (elegido por el cliente) ===== */
:root { --sand-bg: #ffffff; --sand-bg-2: #f6f1e8; }
body, .splash { background: var(--sand-bg); }
.nav, .hero, .about, .projects, .newsletter, .marquee, .footer, .section-deep, .faq {
  --ivory: #0b1424; --mute: #4a5262; --line: rgba(11, 20, 36, .16); --sand: #1b2c4b;
  color: var(--ivory);
}
.hero, .about, .projects, .newsletter { background: var(--sand-bg); }
.section-deep, .marquee, .footer { background: var(--sand-bg-2); }
.faq { background: var(--sand-bg); }
.faq .h2 em { color: var(--amber); }
/* Elementos oscuros que conservan su paleta original */
.project, .video, .news-preview, .hero-badge, .nav-cta-mobile {
  --ivory: #f4efe6; --mute: #9aa6b8; --line: rgba(244, 239, 230, .12); --sand: #d9c7a7;
}
.news-preview { --ivory: #f4efe6; background: var(--ivory); }
/* Acentos naranjas legibles sobre arena */
.hero h1 em, .about .h2 em, .projects .h2 em, .newsletter .h2 em, .section-deep .h2 em,
.hero-facts b, .problem-item .num, .about-turn { color: var(--amber); }
.eyebrow .dot { background: var(--amber); }
.brand-text small { color: var(--amber); }
.hero-glow {
  background:
    radial-gradient(560px circle at var(--mx, 70%) var(--my, 40%), rgba(217, 182, 120, .55), transparent 62%),
    radial-gradient(420px circle at 88% 12%, rgba(217, 199, 167, .35), transparent 70%);
}
.nav-links a { color: rgba(11, 20, 36, .8); }
.nav-links a:hover { color: #0b1424; }
.nav.is-scrolled { background: rgba(255, 255, 255, .94); }
.problem-item { background: #faf7f1; }
.problem-item:hover { border-color: rgba(11, 20, 36, .35); }
.inline-form input { background: #f6f1e8; }
.inline-form input:focus { background: rgba(255, 255, 255, .55); }
.hero-sign strong, .hero-lead strong { color: #0b1424; }
@media (max-width: 960px) { .nav-links { background: var(--sand-bg); } }
.project, .video, .news-preview, .hero-badge { color: var(--ivory); }
.news-preview { color: #0b1424; }
.project:not(.is-active) { --o: .85; }
.sources li { color: rgba(11, 20, 36, .8); }
.footer-links, .footer-social { color: rgba(11, 20, 36, .8); }
.footer-links a:hover, .footer-social a:hover { color: var(--amber); }
.slider-progress span { background: var(--amber); }
