/* =====================================================================
   Barcelona Asturias — Sistema visual compartido
   Tokens, reset, tipografía base y patrones reutilizables.
   Estilos exclusivos de cada página (slideshow, hero, placeholder real)
   quedan inline en el HTML correspondiente.
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --brand-red: #9c1f1f;
  --brand-red-deep: #7a1717;
  --cream: #f1ead9;
  --cream-soft: #ebe2cc;
  --ink: #1a1410;
  --ink-soft: #2a2118;
  --paper: #f5efe4;
  --line: rgba(245, 239, 228, 0.22);
  --line-soft: rgba(245, 239, 228, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- WRAPPER — variante PÁGINAS INTERNAS ----------
   Layout vertical (header + main flex:1 + footer) y foto de fondo
   blureada con overlay. La landing usa su propio slideshow + overlay.
   En Next el <body> es compartido con el panel, así que las páginas
   internas se envuelven en un <div class="interior"> en vez de marcar el body. */
.interior {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.interior::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('bg-04-frente-noche.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
  filter: blur(2px);
}
.interior::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,20,16,0.55) 0%, rgba(26,20,16,0.85) 100%);
  z-index: 0;
}

/* ---------- TOP BAR — variante LANDING (fija, revela al scroll) ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  transition: background 350ms ease, backdrop-filter 350ms ease, padding 350ms ease;
}
.topbar.is-scrolled {
  background: rgba(15, 11, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 36px;
  border-bottom: 1px solid var(--line-soft);
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 400ms ease, transform 400ms ease;
  pointer-events: none;
}
.topbar.is-scrolled .topbar-logo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.topbar-logo img { width: 38px; height: 38px; border-radius: 50%; }
.topbar-logo span {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 13px;
  text-transform: uppercase;
}
.topbar-meta {
  margin-left: auto;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  letter-spacing: 0.22em;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.72);
}
.topbar-meta b {
  color: var(--paper);
  font-weight: 500;
}

/* ---------- TOP BAR — variante INTERNAS (estática, siempre visible) ---------- */
.topbar-static {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(15, 11, 9, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar-static a.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}
.topbar-static a.brand img { width: 38px; height: 38px; border-radius: 50%; }
.topbar-static a.brand span {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 13px;
  text-transform: uppercase;
}
.topbar-static a.back {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.78);
  text-decoration: none;
  transition: color 200ms ease;
}
.topbar-static a.back:hover { color: var(--paper); }
.topbar-static a.back::before {
  content: '← ';
  margin-right: 4px;
}

/* Oculta el spinner nativo del input number (usamos flechitas propias) */
.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.no-spin { -moz-appearance: textfield; appearance: textfield; }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 19px;
  padding: 26px 31px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(15, 11, 9, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--paper);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 16.5px;
  transition: background 120ms ease, border-color 120ms ease, transform 280ms ease, box-shadow 280ms ease;
  overflow: hidden;
  text-align: left;
}
.btn-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15.5px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(245, 239, 228, 0.5);
  transition: color 280ms ease;
}
.btn-label { flex: 1; }
.btn-arrow {
  width: 31px;
  height: 1px;
  background: var(--paper);
  position: relative;
  opacity: 0.5;
  transition: opacity 120ms ease;
}
.btn-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--paper);
  border-right: 1px solid var(--paper);
  transform: rotate(45deg);
}
.btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(156, 31, 31, 0.6);
}
.btn:hover .btn-num { color: rgba(245, 239, 228, 0.85); }
.btn:hover .btn-arrow { opacity: 1; }

/* ---------- SECTION HEAD ---------- */
.section-head {
  text-align: center;
  margin-bottom: 80px;
}
.section-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  letter-spacing: 0.42em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 18px;
  opacity: 0.95;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1.05;
}
.section-title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--cream);
  opacity: 0.78;
  letter-spacing: -0.01em;
}

/* ---------- SECTION GENERIC (band) ---------- */
section.band {
  position: relative;
  padding: 140px 24px;
  background: var(--ink);
}
section.band.translucent {
  background: rgba(15, 11, 9, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.container {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- REVIEWS ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.review {
  padding: 40px 32px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(245, 239, 228, 0.03);
  position: relative;
  transition: transform 320ms ease, border-color 320ms ease, background 320ms ease;
}
.review:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: rgba(245, 239, 228, 0.05);
}
.review-stars {
  color: var(--brand-red);
  letter-spacing: 0.12em;
  font-size: 16px;
  margin-bottom: 22px;
}
.review-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  line-height: 1.5;
  color: var(--paper);
  margin-bottom: 28px;
  font-weight: 400;
}
.review-quote::before {
  content: '“';
  font-size: 56px;
  line-height: 0;
  vertical-align: -22px;
  color: var(--brand-red);
  margin-right: 4px;
  font-family: 'Cormorant Garamond', serif;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-red);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 15px;
}
.review-author {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.review-source {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: rgba(245, 239, 228, 0.5);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.reviews-cta {
  text-align: center;
  margin-top: 64px;
}
.reviews-cta a {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brand-red);
  transition: color 220ms ease, border-color 220ms ease;
}
.reviews-cta a:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ---------- FOOTER — variante LANDING (4 columnas, rich) ---------- */
.footer-landing {
  position: relative;
  z-index: 2;
  background: #0c0907;
  color: var(--paper);
  padding: 90px 24px 36px;
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-brand img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
}
.footer-brand p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(245, 239, 228, 0.65);
  font-size: 16px;
  line-height: 1.5;
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col li {
  font-size: 14px;
  color: rgba(245, 239, 228, 0.78);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.footer-col li b {
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.06em;
}
.footer-col a {
  color: rgba(245, 239, 228, 0.78);
  text-decoration: none;
  transition: color 200ms ease;
}
.footer-col a:hover { color: var(--paper); }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 240ms ease;
}
.socials a:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-2px);
}
.socials svg { width: 16px; height: 16px; fill: var(--paper); }

.footer-bottom {
  max-width: 1180px;
  margin: 64px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(245, 239, 228, 0.5);
  letter-spacing: 0.04em;
}

/* ---------- FOOTER — variante INTERNAS (línea simple) ---------- */
.footer-simple {
  position: relative;
  z-index: 2;
  padding: 28px 36px;
  text-align: center;
  font-size: 12px;
  color: rgba(245, 239, 228, 0.4);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line-soft);
  background: rgba(12, 9, 7, 0.6);
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease, transform 800ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- PAGE LAYOUT (internas) ---------- */
.interior main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.3cm 24px 100px;
}
.page-inner {
  max-width: 760px;
  text-align: center;
}
.page-inner .step-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--brand-red);
  margin-bottom: 12px;
}
.page-inner h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 22px;
}
.page-inner .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: 56px;
  line-height: 1.4;
}

/* ---------- PLACEHOLDER (mientras la página no tenga contenido real) ---------- */
.placeholder {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 60px 40px;
  background: rgba(245, 239, 228, 0.03);
  text-align: left;
}
.placeholder h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 18px;
}
.placeholder p {
  font-size: 15px;
  color: rgba(245, 239, 228, 0.85);
  margin-bottom: 12px;
}
.placeholder ul {
  list-style: none;
  margin-top: 18px;
}
.placeholder li {
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: rgba(245, 239, 228, 0.72);
  display: flex;
  align-items: center;
  gap: 12px;
}
.placeholder li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand-red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- CARTEL CUMPLEAÑOS (nota al margen del formulario) ---------- */
.cartel-cumple {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 22px;
  background: rgba(156, 31, 31, 0.14);
  border-left: 3px solid var(--brand-red);
}
.cartel-cumple__titulo {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e6a59d;
}
.cartel-cumple__texto {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 239, 228, 0.96);
}

/* ---------- RESPONSIVE — LANDING / COMPONENTES COMPARTIDOS ---------- */
@media (max-width: 820px) {
  .topbar { padding: 16px 20px; }
  .topbar.is-scrolled { padding: 12px 20px; }
  .topbar-meta { display: none; }
  .btn { padding: 21px 26px; }
  section.band { padding: 100px 20px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ---------- RESPONSIVE — INTERNAS ---------- */
@media (max-width: 600px) {
  .topbar-static { padding: 16px 20px; }
  .topbar-static a.back .back-full { display: none; }
  .interior main { padding: 0.3cm 20px 60px; }
  .placeholder { padding: 40px 24px; }
}
