:root {
  --ink: #10263f;
  --muted: #4d647c;
  --blue: #1a78c2;
  --blue-deep: #0d5a96;
  --sky: #7ec8f0;
  --paper: #f3f8fc;
  --line: #d7e5f2;
  --white: #ffffff;
  --wa: #1f8f4e;
  --danger: #8d2b2b;
  --ok: #1d6b45;
  --shadow: 0 18px 48px rgba(16, 38, 63, 0.18);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
body.is-gated {
  overflow: hidden;
  height: 100vh;
}

.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.enter-gate.is-gone {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.enter-gate__bg {
  position: absolute;
  inset: 0;
  background:
    url("../img/portada.jpg") center / cover no-repeat;
  transform: scale(1.06);
  animation: gateKen 18s ease-in-out infinite alternate;
}
.enter-gate__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(8, 28, 48, 0.78) 0%, rgba(13, 90, 150, 0.55) 48%, rgba(8, 28, 48, 0.82) 100%);
}
.enter-gate__btn {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  width: min(92vw, 520px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: center;
  font: inherit;
}
.enter-gate__brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.enter-gate__line {
  max-width: 18em;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.enter-gate__cta {
  margin-top: 1.35rem;
  min-width: 168px;
  padding: 0.95rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  animation: gatePulse 1.8s ease-in-out infinite;
}
.enter-gate__btn:focus-visible .enter-gate__cta,
.enter-gate__btn:hover .enter-gate__cta {
  background: #fff;
  color: var(--blue-deep);
  border-color: #fff;
}
@keyframes gateKen {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes gatePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.35rem, 5.4vw, 4.1rem);
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.55rem;
}
h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }

.wrap { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  z-index: 60;
}
.skip:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(16, 38, 63, 0.1);
  backdrop-filter: blur(10px);
}
.header-bar {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.site-header.is-solid .brand { color: var(--ink); }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sky), var(--blue-deep));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}
.brand strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand small {
  display: block;
  opacity: 0.8;
  font-size: 0.72rem;
  max-width: 16em;
  line-height: 1.25;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}
.site-header.is-solid .nav a { color: var(--ink); }
.nav a:hover { color: var(--blue); }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 8px 12px;
}
.site-header.is-solid .nav-toggle {
  border-color: var(--line);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-light { background: #fff; color: var(--ink); }
.btn-line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}
.btn-ghost {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--blue);
}

.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  display: grid;
  align-items: end;
  padding: 140px 0 72px;
  overflow: hidden;
  background: #0b2a45;
}
.hero-video, .hero-shade { position: absolute; inset: 0; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 28, 48, 0.45) 0%, rgba(8, 28, 48, 0.72) 55%, rgba(8, 28, 48, 0.88) 100%),
    radial-gradient(circle at 80% 20%, rgba(126, 200, 240, 0.28), transparent 42%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.kicker {
  color: var(--sky);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  max-width: 38em;
  color: rgba(255, 255, 255, 0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.4rem;
}
body.is-gated .music-chip,
body.is-gated .wa-float {
  visibility: hidden;
}
.music-chip {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: #1a78c2;
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(26, 120, 194, 0.4);
}
.music-chip.is-on {
  background: #0d5a96;
}
.music-chip.is-pulse {
  animation: musicPulse 1.2s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 28px rgba(26, 120, 194, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 16px 34px rgba(26, 120, 194, 0.55); }
}

.section { padding: 88px 0; }
.section.paper { background: var(--paper); }
.section-head { max-width: 40em; margin-bottom: 2rem; }
.lead { color: var(--muted); font-size: 1.05rem; }

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}
.intro-photo {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intro-photo img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
}
.ticks {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding: 14px 16px 14px 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 1.15em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
.ticks strong { display: block; color: var(--ink); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(16, 38, 63, 0.06);
}
.step span {
  display: inline-block;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.rail {
  overflow: hidden;
  background: #0d5a96;
  padding: 18px 0;
}
.rail-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.rail-track span { white-space: nowrap; opacity: 0.92; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(13, 90, 150, 0.94), rgba(26, 120, 194, 0.9)),
    url("../img/portada.jpg") center/cover;
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band .lead { color: rgba(255, 255, 255, 0.9); margin-inline: auto; max-width: 36em; }
.cta-band .hero-actions { justify-content: center; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}
form {
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.aside {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 28px;
}
.aside a { color: #fff; }
.aside p { color: rgba(255, 255, 255, 0.88); }
.form-ok {
  background: #e8f7ef;
  color: var(--ok);
  border-radius: 14px;
  padding: 12px 14px;
}
.form-error {
  background: #fdeeee;
  color: var(--danger);
  border-radius: 14px;
  padding: 12px 14px;
}
.note { color: var(--muted); font-size: 0.88rem; margin: 0; }

.site-footer {
  background: #0b2a45;
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.site-footer a { color: #fff; text-decoration: none; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 0.88rem;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(31, 143, 78, 0.35);
}
.wa-float svg { width: 28px; height: 28px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease var(--d, 0ms), transform .7s ease var(--d, 0ms);
}
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .intro-grid, .steps, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 78px;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { color: var(--ink) !important; padding: 10px 8px; }
  .music-chip { left: 14px; bottom: 86px; font-size: 0.9rem; min-height: 48px; }
  .hero { align-items: center; padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .rail-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
