/* ============================================================
   MERGE MADRID 2026 — Landing de reservas
   CSS propio (sin Tailwind CDN) para buen rendimiento móvil.
   ============================================================ */

:root {
  /* Superficies claras (contenido / tarjeta de reserva) */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --surface-3: #e9edf2;
  --text: #131a29;
  --muted: #5a6472;
  --border: rgba(10, 16, 30, 0.10);

  /* Marca — Merge Madrid (navy) + BlockTravel (lima) */
  --navy: #0a101e;          /* Merge dark */
  --charcoal: #262328;      /* BlockTravel dark */
  --primary: #0a101e;       /* acentos interactivos (bordes/estados) */
  --primary-ink: #0a101e;
  --accent: #ddfe7e;        /* lima BlockTravel — CTA */
  --accent-strong: #d4fa61;
  --dark: #0a101e;          /* fondos oscuros (nav/hero/footer) */

  /* Gradiente iridiscente de Merge (fluids) */
  --m-blue: #2f6bff;
  --m-magenta: #e8459a;
  --m-coral: #ff5a2c;
  --grad: linear-gradient(90deg, var(--m-blue), var(--m-magenta) 52%, var(--m-coral));

  --radius: 14px;
  --shadow: 0 12px 40px rgba(10, 16, 30, 0.06);
  --shadow-lg: 0 20px 60px rgba(10, 16, 30, 0.14);
  --max: 1200px;
}

.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;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- NAVBAR (co-brand, oscuro) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 16, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max); margin: 0 auto;
}
.cobrand { display: flex; align-items: center; gap: 12px; }
.nav__logo { height: 22px; width: auto; }
.nav__merge { height: 13px; width: auto; }
.cobrand__x { color: rgba(255, 255, 255, 0.4); font-weight: 400; font-size: 14px; }

.lang-toggle {
  display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px; overflow: hidden; background: transparent;
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font: 700 12px/1 'Inter', sans-serif; letter-spacing: .06em;
  padding: 8px 14px; color: rgba(255, 255, 255, 0.6); text-transform: uppercase;
  transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--accent); color: var(--navy); }

/* ---------- HERO (navy + gradiente Merge) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding: 68px 0 76px;
}
.hero__glow {
  position: absolute; inset: -10%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 48% at 78% 12%, rgba(232, 69, 154, 0.50), transparent 70%),
    radial-gradient(42% 52% at 62% 58%, rgba(255, 90, 44, 0.42), transparent 72%),
    radial-gradient(48% 58% at 16% 82%, rgba(47, 107, 255, 0.46), transparent 72%);
  filter: blur(6px);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--grad); z-index: 1;
}
.hero__inner { position: relative; z-index: 2; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px; padding: 7px 16px;
  font: 700 11px/1 'Inter', sans-serif; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero__eyebrow {
  color: rgba(255, 255, 255, 0.66); font-weight: 600; font-size: 1rem;
  letter-spacing: .02em; margin-bottom: 14px;
}
.hero__merge { width: min(560px, 82%); height: auto; margin: 0 auto 22px; }
.hero__sub {
  color: rgba(255, 255, 255, 0.72); max-width: 600px; font-size: 1.05rem;
  margin: 0 auto;
}
.hero__dates {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 16px; border-radius: 999px;
}
.cobrand a, .footer__cobrand a, .hero__merge-link { display: inline-flex; align-items: center; }
.hero__merge-link { transition: transform .3s ease; }
.hero__merge-link:hover { transform: scale(1.02); }

/* Fluids animados de Merge (WebP con alpha) */
.hero__fluid {
  position: absolute; z-index: 1; pointer-events: none;
  width: 400px; max-width: 55vw; height: auto; opacity: .92;
  will-change: transform;
}
.hero__fluid--a { top: -70px; right: -70px; animation: floatA 15s ease-in-out infinite; }
.hero__fluid--b { bottom: -90px; left: -80px; width: 320px; opacity: .82; animation: floatB 19s ease-in-out infinite; }
@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(26px) rotate(14deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50%      { transform: translateY(-22px) rotate(-12deg) scale(1.06); }
}
@media (max-width: 720px) {
  .hero__fluid--a { width: 240px; top: -40px; right: -55px; }
  .hero__fluid--b { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero__fluid { animation: none; } }

/* Render 3D de BlockTravel en la tarjeta de reserva */
@keyframes float3dA {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-12px) rotate(4deg); }
}
.booking__3d {
  position: absolute; z-index: 3; top: -26px; right: -14px;
  width: 74px; height: auto; pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(10, 16, 30, 0.22));
  animation: float3dA 7s ease-in-out infinite;
}
@media (max-width: 560px) { .booking__3d { width: 56px; top: -18px; right: -6px; } }
@media (prefers-reduced-motion: reduce) { .booking__3d { animation: none; } }

/* ---------- COOKIE BANNER ---------- */
.cookie {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10000;
  max-width: 760px; margin: 0 auto; background: var(--navy); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
  padding: 16px 20px; box-shadow: var(--shadow-lg);
  align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie.show { display: flex; }
.cookie__text { flex: 1; min-width: 220px; font-size: 0.85rem; line-height: 1.5; color: rgba(255, 255, 255, 0.82); margin: 0; }
.cookie__text a { color: var(--accent); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie__btn {
  border: 0; cursor: pointer; border-radius: 10px; padding: 10px 18px;
  font: 800 0.8rem 'Inter', sans-serif; transition: opacity .2s, background .2s;
}
.cookie__btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; }
.cookie__btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.cookie__btn--accept { background: var(--accent); color: var(--navy); }
.cookie__btn--accept:hover { opacity: 0.9; }

/* ---------- LAYOUT PRINCIPAL ---------- */
.layout {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding: 24px 0 64px; align-items: start;
}
@media (min-width: 960px) {
  .layout { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .booking { position: sticky; top: 96px; }
}

/* ---------- SELECTOR DE HOTEL ---------- */
.section-title {
  font-size: 0.75rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.hotel-select { margin: 8px 0 4px; }
.hotels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .hotels { grid-template-columns: 1fr; } }

.hotel-card {
  text-align: left; cursor: pointer; background: var(--surface);
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 16px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hotel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hotel-card.selected { border-color: var(--primary); box-shadow: var(--shadow); }
.hotel-card__name { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.hotel-card__zone { color: var(--muted); font-size: 0.82rem; margin-bottom: 10px; }
.hotel-card__price { font-weight: 900; color: var(--primary); font-size: 1.15rem; }
.hotel-card__price span { font-weight: 600; color: var(--muted); font-size: 0.8rem; }
.hotel-card__radio {
  float: right; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); display: grid; place-items: center;
}
.hotel-card.selected .hotel-card__radio { border-color: var(--primary); }
.hotel-card.selected .hotel-card__radio::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary);
}

/* ---------- GALERÍA (bento) ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 12px;
}
.gallery figure { overflow: hidden; border-radius: var(--radius); margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .g1 { grid-column: span 3; grid-row: span 2; }  /* hero grande */
.gallery .g2 { grid-column: span 1; grid-row: span 1; }  /* arriba derecha */
.gallery .g3 { grid-column: span 1; grid-row: span 1; }  /* abajo derecha */
.gallery .g4 { grid-column: span 4; grid-row: span 1; }  /* franja inferior */
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery .g1 { grid-column: span 2; grid-row: span 2; }
  .gallery .g2, .gallery .g3 { grid-column: span 1; grid-row: span 1; }
  .gallery .g4 { grid-column: span 2; grid-row: span 1; }
}

/* ---------- FEATURES ---------- */
.features {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-top: 16px;
}
.features li {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 0.92rem;
}
.features .ic { width: 26px; height: 26px; flex-shrink: 0; }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- BOOKING CARD ---------- */
.booking {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow-lg);
}
.booking__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.booking__head h3 { font-size: 1.4rem; font-weight: 800; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--primary-ink);
  border-radius: 999px; padding: 5px 12px;
  font: 700 10px/1 'Inter'; letter-spacing: .1em; text-transform: uppercase;
}

.field { margin-bottom: 16px; }
.field label {
  display: block; font: 800 10px/1 'Inter'; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.field input, .field select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; font: 600 0.95rem 'Inter', sans-serif;
  color: var(--text); outline: none; transition: border-color .2s;
}
.field input:focus, .field select:focus { border-color: var(--primary); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.phone-row { display: flex; }
.phone-row input[list] {
  width: 120px; flex-shrink: 0; border-right: 0;
  border-radius: 10px 0 0 10px; font-weight: 700; font-size: 0.85rem;
}
.phone-row input[type="tel"] { border-radius: 0 10px 10px 0; }

/* ---------- RESUMEN PRECIO ---------- */
.summary {
  background: var(--surface-3); border-radius: 14px;
  padding: 18px; margin: 20px 0 16px;
}
.summary__line { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--muted); }
.summary__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
}
.summary__total b { font-weight: 700; color: var(--muted); }
.summary__total .amount { font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; color: var(--text); }

/* ---------- TÉRMINOS + CTA ---------- */
.terms { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; font-size: 0.78rem; color: var(--muted); }
.terms input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.terms a { color: var(--primary); font-weight: 600; text-decoration: underline; }

.btn-cta {
  width: 100%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--primary-ink);
  padding: 18px; border-radius: 14px;
  font: 900 1.05rem 'Inter', sans-serif;
  box-shadow: 0 8px 24px rgba(212, 250, 97, 0.4);
  transition: opacity .2s, transform .1s;
}
.btn-cta:hover { opacity: 0.9; }
.btn-cta:active { transform: translateY(1px); }
.btn-cta:disabled { opacity: 0.6; cursor: not-allowed; }

.trust { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 6px; font: 700 10px/1 'Inter'; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.form-error {
  display: none; background: #fdecea; color: #b02500;
  border-radius: 10px; padding: 10px 12px; font-size: 0.82rem; margin-bottom: 14px;
}
.form-error.show { display: block; }

/* ---------- FOOTER ---------- */
.footer { position: relative; background: var(--dark); color: #9aa2b0; padding: 48px 0; text-align: center; }
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad);
}
.footer__cobrand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.footer__cobrand img { height: 20px; width: auto; }
.footer__merge { height: 12px !important; }
.footer p { font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; }
.footer nav { margin-top: 12px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer nav a { font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: color .2s; }
.footer nav a:hover { color: #d0d0d0; }

/* ---------- POPUP EXTRAS ---------- */
.modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.5); align-items: center; justify-content: center; padding: 20px;
}
.modal__card {
  background: var(--surface); border-radius: 18px; padding: 28px;
  max-width: 440px; width: 100%; box-shadow: var(--shadow-lg);
}
.modal__card h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 4px; }
.modal__sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.modal__q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; font-weight: 600; font-size: 0.92rem;
}
.opt-group { display: flex; gap: 8px; flex-shrink: 0; }
.opt {
  border: 1.5px solid var(--border); background: var(--surface); border-radius: 10px;
  padding: 8px 18px; font: 700 0.85rem 'Inter', sans-serif; cursor: pointer;
  color: var(--muted); transition: border-color .15s, background .15s, color .15s;
}
.opt.active { border-color: var(--primary); background: var(--accent); color: var(--primary-ink); }
.modal__payq {
  font-weight: 800; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 12px;
}
.btn-crypto {
  width: 100%; border: 0; cursor: pointer; background: var(--dark); color: #fff;
  padding: 16px; border-radius: 14px; font: 900 1rem 'Inter', sans-serif; margin-top: 10px;
  transition: opacity .2s;
}
.btn-crypto:hover { opacity: 0.88; }
.modal__cancel {
  width: 100%; background: transparent; border: 0; color: var(--muted);
  padding: 12px; margin-top: 4px; font-size: 0.85rem; cursor: pointer; text-decoration: underline;
}

/* ---------- THANK YOU ---------- */
.ty-wrap { min-height: 80vh; display: grid; place-items: center; padding: 40px 24px; }
.ty-card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 48px; max-width: 520px; text-align: center; }
.ty-check { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 24px; font-size: 36px; }
.ty-card h1 { font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; }
.ty-card p { color: var(--muted); margin-bottom: 10px; }
.ty-card a.btn-cta { display: inline-block; width: auto; padding: 14px 28px; margin-top: 20px; text-decoration: none; }
