/* =========================================================
   3R SPA HOLISTIC — ARCHITECTURE & STYLING
   Palette: Violeta Humo, Malva, Azul Niebla, Dorado Suave, Porcelana, Ciruela Oscura
   Type: Marcellus (títulos) + Nunito Sans (cuerpo)
   Fonts are loaded via <link> in each page <head> — no @import here (avoids
   blocking the CSSOM a second time on a file that's already render-blocking).
   ========================================================= */

:root {
  --font-serif: 'Marcellus', Georgia, serif;
  --font-sans: 'Nunito Sans', system-ui, -apple-system, sans-serif;

  /* Official brand tones, named by the real color so the mapping stays auditable */
  --violet-smoke: #473A63;
  --mauve: #897AA8;
  --mist-blue: #B7C7D9;
  --gold-soft: #D1B27C;
  --porcelain: #FAF7F2;
  --plum-dark: #302C38;

  /* Surfaces */
  --bg-primary: var(--porcelain);
  --bg-secondary: #F1EEF6;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(250, 247, 242, 0.88);

  /* Gold accent (buttons, CTAs, highlights) */
  --gold-primary: var(--gold-soft);
  --gold-light: #E3CBA0;
  --gold-hover: #B8955F;
  --gold-subtle: rgba(209, 178, 124, 0.16);

  /* Deep contrast — Ciruela Oscura — overlays, dark bands, footer */
  --espresso-deep: var(--plum-dark);
  --espresso-soft: rgba(48, 44, 56, 0.82);

  /* Typography */
  --text-main: var(--plum-dark);
  --text-heading: var(--violet-smoke);
  --text-body: #453B54;
  --text-muted: #756B85;
  --text-light: #FDFBFE;

  /* Borders & shadows */
  --border-subtle: #E4E1EC;
  --border-card: rgba(137, 122, 168, 0.25);
  --shadow-soft: 0 4px 20px rgba(48, 44, 56, 0.05);
  --shadow-hover: 0 12px 35px rgba(48, 44, 56, 0.10);
}

/* Global Reset & Smooth Behavior */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-body);
}

body {
  overflow-x: hidden;
  line-height: 1.65;
}

/* Typography Utilities */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Cinematic Parallax Backgrounds */
.parallax-banner {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

@media (max-width: 768px) {
  .parallax-banner {
    background-attachment: scroll;
  }
}

/* Glassmorphism Navbar */
.nav-glass {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-link.is-active {
  color: var(--gold-hover) !important;
}

.mobile-nav-link.is-active {
  color: var(--gold-hover) !important;
}

/* Luxury Buttons */
.btn-gold {
  background: linear-gradient(135deg, #DEC393 0%, #D1B27C 50%, #BC9A63 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(209, 178, 124, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #E8D2A8 0%, #DEC393 50%, #C7A76E 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(209, 178, 124, 0.4);
}

.btn-gold-sm {
  background: linear-gradient(135deg, #DEC393 0%, #D1B27C 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 9999px;
  padding: 0.55rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(209, 178, 124, 0.25);
  transition: all 0.2s ease;
}

.btn-gold-sm:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(209, 178, 124, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background-color: #FFFFFF;
  border-color: var(--gold-primary);
  color: var(--gold-hover);
  transform: translateY(-1.5px);
}

.btn-outline--light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
}

.btn-outline--light:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* =========================================================
   FULLSCREEN HERO — shared by all 8 pages
   ========================================================= */
.hero-fullscreen {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--plum-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media__video,
.hero-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* When JS disables autoplay (reduced-motion / save-data / slow connection),
   hide the <video> element and let its poster-image sibling show instead. */
.hero-media--static .hero-media__video {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(48, 44, 56, 0.32) 0%, rgba(71, 58, 99, 0.55) 55%, rgba(48, 44, 56, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: #FFFFFF;
  max-width: 60rem;
  padding: 0 1.5rem 6rem;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: 1.05;
  font-weight: 400;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 38rem;
}

.hero-cta-group {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #FFFFFF;
  opacity: 0.8;
  animation: heroBounce 2.2s infinite;
}

@keyframes heroBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Hero Ken Burns — slow ambient zoom on static hero photography */
@keyframes kenburns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.09) translate3d(-1%, -1%, 0); }
}

.hero-kenburns {
  animation: kenburns 18s ease-in-out infinite alternate;
  will-change: transform;
}

/* Hero rotating accent phrase (Inicio only) */
.hero-phrase {
  transition: opacity 0.5s ease;
}

.hero-phrase.is-swapping {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-kenburns,
  .hero-scroll-cue {
    animation: none;
  }
}

/* =========================================================
   SERVICE CARDS — base + variants so a 7-10 item grid never
   reads as one repeated block
   ========================================================= */
.luxury-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}

.luxury-card:hover {
  transform: translateY(-5px);
  border-color: rgba(137, 122, 168, 0.45);
  box-shadow: var(--shadow-hover);
}

.luxury-card:hover::before {
  opacity: 1;
}

.luxury-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.luxury-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover .luxury-card__media img {
  transform: scale(1.08);
}

.luxury-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.luxury-card__footer {
  padding: 0 1.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

/* --- Bento variant: 2x2 flagship card, full-bleed photo, text on scrim --- */
.luxury-card--bento {
  grid-column: span 2;
  grid-row: span 2;
  color: #FFFFFF;
  min-height: 100%;
  justify-content: flex-end;
}

.luxury-card--bento .luxury-card__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.luxury-card--bento .luxury-card__media img {
  width: 100%;
  height: 100%;
}

.luxury-card--bento::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(48, 44, 56, 0.05) 25%, rgba(48, 44, 56, 0.94) 100%);
  z-index: 1;
}

.luxury-card--bento .luxury-card__body,
.luxury-card--bento .luxury-card__footer {
  position: relative;
  z-index: 2;
}

.luxury-card--bento .luxury-card__body {
  flex: 0 0 auto;
  padding-bottom: 0.25rem;
}

.luxury-card--bento .luxury-card__footer {
  margin-top: 0;
}

.luxury-card--bento .badge-flagship {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
}

@media (max-width: 767px) {
  .luxury-card--bento {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 22rem;
  }
}

/* --- Compact variant: no photo, tinted panel + accent rail --- */
.luxury-card--compact {
  background: var(--bg-secondary);
  border-left: 4px solid var(--mauve);
  justify-content: flex-start;
}

.luxury-card--compact .luxury-card__body {
  padding: 2rem 1.75rem 0.5rem;
}

.luxury-card--compact .luxury-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(137, 122, 168, 0.15);
  color: var(--violet-smoke);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

/* Science/longevity tint used on Péptidos page compact cards */
.luxury-card--science {
  background: linear-gradient(155deg, rgba(71, 58, 99, 0.07) 0%, rgba(183, 199, 217, 0.18) 100%);
  border-left-color: var(--violet-smoke);
}

.luxury-card--science .luxury-card__icon {
  background: rgba(71, 58, 99, 0.14);
}

/* --- Price-reveal variant: photo card that hides its price behind a scrim --- */
.luxury-card--price-reveal .luxury-card__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.luxury-card--price-reveal {
  color: #FFFFFF;
  min-height: 22rem;
  justify-content: flex-end;
}

.luxury-card--price-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(48, 44, 56, 0.1) 35%, rgba(48, 44, 56, 0.88) 100%);
  z-index: 1;
}

.luxury-card--price-reveal .luxury-card__body {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: 0;
  padding-bottom: 0.5rem;
}

.luxury-card--price-reveal .price-overlay {
  position: relative;
  z-index: 2;
  padding: 0 1.75rem 1.75rem;
  transform: translateY(65%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.luxury-card--price-reveal:hover .price-overlay,
.luxury-card--price-reveal.is-active .price-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Estimated-price / from-price tag */
.tag-verificar {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background-color: var(--gold-subtle);
  color: var(--gold-hover);
  border: 1px solid rgba(209, 178, 124, 0.35);
}

.luxury-card--bento .tag-verificar,
.luxury-card--price-reveal .tag-verificar {
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--gold-light);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Espresso overlay — cinematic photo bands (parallax breaks) */
.overlay-espresso {
  background: linear-gradient(180deg, var(--espresso-soft) 0%, rgba(48, 44, 56, 0.6) 55%, var(--espresso-soft) 100%);
}

/* Scroll Reveal System */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* "Momentos 3R" Gallery Carousel (Inicio only) */
.moments-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1.5rem 1.5rem;
  margin: 0 -1.5rem;
}

.moments-track::-webkit-scrollbar {
  display: none;
}

.moments-track {
  scrollbar-width: none;
}

.moment-card {
  scroll-snap-align: center;
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  height: 340px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .moment-card {
    width: 300px;
    height: 380px;
  }
}

.moment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.moment-card:hover img {
  transform: scale(1.06);
}

.moment-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.moment-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.moment-nav-btn:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

/* Category Eyebrow & Badges */
.badge-gold {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-hover);
  background: var(--gold-subtle);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
}

.badge-flagship {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-dark);
  background: var(--gold-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

/* =========================================================
   PAQUETES DEL MES (Inicio)
   ========================================================= */
.package-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 1.75rem;
  border-top: 5px solid var(--gold-soft);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.package-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: var(--violet-smoke);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.package-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.package-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.package-card:hover .package-card__media img {
  transform: scale(1.06);
}

.package-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.package-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--mauve);
}

.package-card__price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--violet-smoke);
  margin-top: 0.25rem;
}

/* =========================================================
   UBICACIÓN
   ========================================================= */
.location-section {
  background: var(--plum-dark);
  color: #FFFFFF;
}

.location-facts {
  list-style: none;
  padding: 0;
}

.location-facts li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
}

.location-map__placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.location-map__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(48, 44, 56, 0.55) 0%, rgba(71, 58, 99, 0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem;
}

.location-map__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Accordion Item (FAQ) */
.faq-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  transition: all 0.25s ease;
}

.faq-box.active {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 20px rgba(209, 178, 124, 0.14);
}

.faq-box.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold-hover);
}

/* Floating WhatsApp Pulse */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: #25D366;
  color: #FFFFFF;
  padding: 0.85rem 1.4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: waGlow 3s infinite ease-in-out;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.55);
  color: #FFFFFF;
}

@keyframes waGlow {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
  }
}

/* Subtle Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #D6D0E0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}
