/* =========================================================
   BELIVE · LANDING — ESTILOS
   Paleta y tipografías del Manual de Marca Be Live (v1.0, 2023).
   Para cambiar colores o fuentes, edita SOLO el bloque :root.
   ========================================================= */

/* ---- Tipografías de marca ----
   El manual define Modelica SS02 (textos) y Gradual (títulos). Son fuentes con licencia.
   Mientras no se carguen los archivos, la web usa Outfit y Figtree (gratuitas, de aspecto similar).
   Si Belive tiene la licencia: copiar los .woff2 a assets/fonts/ y quitar los comentarios de este bloque.

@font-face { font-family: "Gradual";      src: url("assets/fonts/Gradual-Bold.woff2") format("woff2");        font-weight: 700; font-display: swap; }
@font-face { font-family: "Modelica SS02"; src: url("assets/fonts/ModelicaSS02-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Modelica SS02"; src: url("assets/fonts/ModelicaSS02-Bold.woff2") format("woff2");    font-weight: 700; font-display: swap; }
*/

:root {
  /* Colores del manual de marca */
  --purple: #3f2a59;   /* Pantone P 98-15 C  */
  --red:    #c83e36;   /* Pantone P 48-7 C   */
  --navy:   #222a59;   /* Pantone P 103-16 C */
  --gold:   #e9b769;   /* Pantone P 20-5 C   */
  --salmon: #d98780;   /* Pantone P 55-4 C   */
  --indigo: #555b94;   /* Pantone P 103-6 C  */
  --mint:   #88beaa;   /* Pantone P 133-5 C  */
  --pink:   #d373a6;   /* Pantone P 75-6 C   */
  --sky:    #2a96d6;   /* Pantone P 112-7 C  */
  --white:  #ffffff;

  /* Uso en la web */
  --bg: #fbf8f7;            /* fondo principal (blanco cálido) */
  --bg-alt: #f3eef3;        /* fondo de secciones alternas (lavanda muy suave) */
  --card: #ffffff;
  --text: #2a1d3b;          /* texto principal (morado muy oscuro) */
  --muted: #6a5f78;         /* texto secundario */
  --heading: var(--purple);
  --accent: var(--red);     /* botones y resaltados */
  --accent-hover: #b0322b;
  --accent-ink: #ffffff;    /* texto sobre el color de acento */
  --highlight: var(--gold); /* resaltado sobre fondos oscuros */
  --line: rgba(63, 42, 89, .14);

  --font-head: "Gradual", "Outfit", system-ui, sans-serif;
  --font-body: "Modelica SS02", "Figtree", system-ui, sans-serif;
  --radius: 18px;
  --gutter: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.01em; color: var(--heading); }
.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; justify-content: center; background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--font-body); padding: .95rem 1.6rem; border-radius: 999px; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; transition: transform .15s, background .15s, border-color .15s, color .15s; text-align: center; }
.btn:hover { transform: translateY(-2px); background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-small { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-ghost:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn-wa { background: #25d366; border-color: #25d366; color: #06210f; }
.btn-wa:hover { background: #1fb858; border-color: #1fb858; }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.center { text-align: center; margin-top: 2.2rem; }

/* ---------- Menú ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 1.2rem; padding: .6rem var(--gutter); transition: background .25s, box-shadow .25s, color .25s; color: #fff; }
.topbar.solid { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); color: var(--text); }
.brand { display: block; line-height: 0; }
.brand img { height: 58px; width: auto; filter: drop-shadow(0 0 10px rgba(255,255,255,.28)); transition: filter .25s; }
.topbar.solid .brand img { filter: none; }
.brand img { transition: filter .25s, height .25s; }
.topbar.solid .brand img { height: 48px; }
@media (min-width: 860px) { .topbar.solid .brand img { height: 56px; } }
.nav { display: none; margin-left: auto; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: inherit; opacity: .92; }
.nav a:hover { opacity: 1; color: var(--gold); }
.topbar.solid .nav a:hover { color: var(--red); }
.actions { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.lang { background: none; border: 1px solid currentColor; color: inherit; font: 600 .8rem var(--font-body); padding: .38rem .65rem; border-radius: 999px; cursor: pointer; opacity: .9; }
.lang:hover { opacity: 1; }
/* Botón "Acceso a Propietarios": en el menú solo en pantallas anchas; en el pie de página siempre */
.btn-owner { display: none; background: transparent; color: inherit; border-color: currentColor; }
.btn-owner:hover { background: #fff; border-color: #fff; color: var(--purple); }
.topbar.solid .btn-owner { color: var(--purple); border-color: var(--purple); }
.topbar.solid .btn-owner:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
@media (min-width: 1120px) { .btn-owner { display: inline-flex; } }
.btn-owner-foot { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-owner-foot:hover { background: #fff; border-color: #fff; color: var(--purple); }
@media (min-width: 860px) { .nav { display: flex; } .actions { margin-left: 1.4rem; } .brand img { height: 72px; } .topbar { padding: .55rem 32px; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; color: #fff; }
.hero-video, .hero-fallback, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; z-index: -2; }
.hero-shade { z-index: -1; background: linear-gradient(180deg, rgba(34,42,89,.62) 0%, rgba(63,42,89,.30) 42%, rgba(24,16,40,.94) 100%); }
/* Ondas de sonido de respaldo (se ven mientras no hay video): barras redondeadas, centradas, como un ecualizador/forma de onda */
.hero-fallback { z-index: -3; display: flex; align-items: center; justify-content: space-between; padding: 0 3.5%; background: radial-gradient(120% 90% at 75% 5%, #5a2f63 0%, #2a1d46 45%, #14102a 100%); }
.hero-fallback span { flex: none; width: clamp(5px, 1.35vw, 15px); height: var(--h, 40%); border-radius: 999px; opacity: .5; animation: wave var(--s, 2s) ease-in-out var(--d, 0s) infinite; transform-origin: center; background: linear-gradient(180deg, rgba(200,62,54,.95), rgba(211,115,166,.55)); }
.hero-fallback .c-gold { background: linear-gradient(180deg, rgba(233,183,105,.95), rgba(217,135,128,.55)); }
.hero-fallback .c-pink { background: linear-gradient(180deg, rgba(211,115,166,.95), rgba(85,91,148,.6)); }
.hero-fallback .c-sky  { background: linear-gradient(180deg, rgba(42,150,214,.9), rgba(85,91,148,.55)); }
.hero-fallback .c-mint { background: linear-gradient(180deg, rgba(136,190,170,.9), rgba(42,150,214,.5)); }
@keyframes wave { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .hero-fallback span { animation: none; transform: scaleY(.7); } html { scroll-behavior: auto; } }

.hero-inner { width: min(1120px, 100% - var(--gutter) * 2); margin: 0 auto; padding: 8rem 0 2rem; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.85rem, 5.4vw, 3.8rem); max-width: 22ch; font-weight: 700; color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .sub { margin-top: 1.1rem; max-width: 52ch; color: #efe9f3; font-size: clamp(1rem, 2.2vw, 1.2rem); }
.cta-row { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: #fff; color: var(--purple); border-color: #fff; }

.booking-slot { width: min(1120px, 100% - var(--gutter) * 2); margin: 0 auto 1.6rem; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(24,16,40,.62); backdrop-filter: blur(10px); }
.booking-slot p { font-size: .95rem; color: #d9d0e2; }
.booking-slot strong { color: #fff; display: block; }
@media (min-width: 720px) { .booking-slot { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(160deg, var(--purple) 0%, var(--navy) 100%); color: #f4eef8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--gold); }
.kicker { color: var(--red); font: 700 .85rem var(--font-head); letter-spacing: .14em; margin-bottom: .8rem; }
.section h2 { font-size: clamp(1.6rem, 3.8vw, 2.6rem); max-width: 24ch; }
.lead { margin-top: 1rem; color: var(--muted); max-width: 60ch; font-size: 1.08rem; }

.grid { display: grid; gap: 1.1rem; margin-top: 2.4rem; }
@media (min-width: 600px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.pillar { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 6px 20px rgba(63,42,89,.06); }
.pillar svg { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.pillar h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.pillar p { color: var(--muted); font-size: .95rem; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(63,42,89,.07); }
.card-feature { border-color: var(--gold); box-shadow: 0 10px 28px rgba(233,183,105,.28); }
.media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--indigo), var(--purple)); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: .8rem; left: .8rem; background: var(--red); color: #fff; font: 700 .72rem var(--font-body); padding: .25rem .65rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.card .body { padding: 1.3rem 1.4rem 1.6rem; }
.card h3 { font-size: 1.35rem; }
.meta { color: var(--red); font-size: .85rem; font-weight: 600; margin: .35rem 0 .7rem; }
.card .body p:last-child { color: var(--muted); font-size: .97rem; }

.tiles { margin-top: 2.4rem; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--indigo), var(--purple)); display: flex; align-items: flex-end; border: 1px solid rgba(255,255,255,.16); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,12,36,.88)); }
.tile div { position: relative; z-index: 1; padding: 1rem; }
.tile h3 { font-size: clamp(1rem, 3.6vw, 1.15rem); margin-bottom: .25rem; color: #fff; }
.tile p { color: #e5dcec; font-size: .9rem; }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.section-dark .btn-ghost:hover { background: #fff; color: var(--purple); border-color: #fff; }

.soon { padding: 1.2rem 0; background: var(--gold); text-align: center; }
.soon p { color: var(--purple); font-size: .95rem; font-weight: 500; }
.soon strong { font-weight: 700; }

/* ---------- Ubicación ---------- */
.loc { margin-top: 2.4rem; display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .loc { grid-template-columns: 1.5fr 1fr; align-items: stretch; } }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.contact { padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; gap: 1.2rem; box-shadow: 0 6px 20px rgba(63,42,89,.07); }
.contact h3 { font-size: 1.3rem; }
.contact ul { list-style: none; display: grid; gap: .9rem; }
.contact li span { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact li b { font-weight: 500; word-break: break-word; }
.contact li a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact li a:hover { color: var(--red); border-color: var(--red); }
.contact .btn { margin-top: auto; }

/* ---------- Footer ---------- */
.footer { padding: 2.4rem 0 3.4rem; background: var(--purple); color: #d9cfe3; }
.foot { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; font-size: .9rem; }
.foot img { height: 76px; width: auto; filter: drop-shadow(0 0 12px rgba(255,255,255,.22)); }
.legal a { color: #d9cfe3; }
.legal a:hover { color: var(--gold); }
@media (min-width: 720px) { .foot { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Botón flotante de WhatsApp */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.fab svg { width: 30px; height: 30px; fill: #06210f; }

/* ---------- Ajustes para pantallas muy pequeñas ---------- */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand img { height: 50px; }
  .btn { padding: .85rem 1.2rem; }
  .btn-small { padding: .5rem .9rem; font-size: .85rem; }
}

/* ---------- Página de reservas (motor de Cloudbeds) ---------- */
.reservas-page { padding: 7.2rem 0 6rem; min-height: 80vh; background: var(--bg); }
.reservas-page .wrap { width: min(1200px, 100% - var(--gutter) * 2); margin: 0 auto; }
.reservas-page h1 { font-size: clamp(1.7rem, 4.6vw, 2.7rem); color: var(--purple); }
.reservas-page .lead { margin: .6rem 0 1.6rem; max-width: 60ch; }
.booking-embed { min-height: 520px; position: relative; }
.booking-embed cb-immersive-experience { display: block; width: 100%; }
.booking-loading { color: var(--text); opacity: .7; padding: 2rem 0; text-align: center; }
cb-immersive-experience:defined + .booking-loading { display: none; }
.booking-help { margin-top: 1.4rem; text-align: center; font-size: .95rem; }
.booking-help a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
