/* =============================================================
   FILOPARCHAR · Landing v3
   Sistema visual basado en Manual de Marca oficial
   ============================================================= */

:root {
  --noche:   #00002C;
  --amarillo:#FFCB05;
  --rojo:    #EE2D29;
  --purpura: #610054;
  --crema:   #FFF8EC;
  --hueso:   #FAF3E3;
  --gris:    #D9D9D9;
  --trust:   #2D6A4F;

  --accent:  var(--amarillo);  /* configurable via tweaks */
}

html { font-family: 'Montserrat', system-ui, sans-serif; }
body { font-family: 'Montserrat', system-ui, sans-serif; }

/* Display type — Fraunces con opsz para titulares muy grandes */
.h-display,
h1.hero-title,
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* =============================================================
   NAVBAR
   ============================================================= */
#navbar {
  transition: padding .25s ease;
}
#navbar.scrolled .header-bg {
  box-shadow: 0 10px 30px -12px rgba(0,0,44,0.12);
  background: rgba(255,248,236,0.96);
}
.nav-link {
  position: relative;
  color: var(--noche);
  transition: color .2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--amarillo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover { color: var(--rojo); }
.nav-link:hover::after { transform: scaleX(1); }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid var(--noche);
}
.btn-primary {
  background: var(--noche);
  color: var(--crema);
}
.btn-primary:hover {
  background: var(--rojo);
  border-color: var(--rojo);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(238,45,41,0.45);
}
.btn-amarillo {
  background: var(--amarillo);
  color: var(--noche);
  border-color: var(--noche);
}
.btn-amarillo:hover {
  background: var(--noche);
  color: var(--amarillo);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(0,0,44,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--noche);
  border-color: var(--noche);
}
.btn-ghost:hover {
  background: var(--noche);
  color: var(--crema);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: white;
  border-color: #128C7E;
}
.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(18,140,126,0.5);
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  background:
    radial-gradient(ellipse at 85% -10%, rgba(255,203,5,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at -10% 50%, rgba(238,45,41,0.07) 0%, transparent 55%),
    var(--crema);
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .5;
}
.hero-bg-shapes .shape-1 { width: 420px; height: 420px; background: rgba(255,203,5,0.35); top: -100px; right: -120px; }
.hero-bg-shapes .shape-2 { width: 300px; height: 300px; background: rgba(238,45,41,0.1); bottom: -80px; left: 10%; }
.hero-bg-shapes .shape-3 { width: 260px; height: 260px; background: rgba(97,0,84,0.07); top: 40%; left: -100px; }

.hero-title {
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }
.hero-title em {
  font-style: italic;
  font-weight: 400;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
}
.highlight-yellow {
  position: absolute;
  inset: 0.1em -0.08em 0.08em -0.08em;
  background: var(--amarillo);
  z-index: -1;
  transform: skewY(-1.5deg);
  border-radius: 8px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  background: white;
  border: 2px solid var(--noche);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--noche);
  letter-spacing: 0.02em;
}
.trust-chip svg { color: var(--trust); }

/* Countdown tiles */
.count-tile {
  width: 58px;
  background: var(--noche);
  color: var(--amarillo);
  border-radius: 10px;
  padding: .55rem .3rem;
  text-align: center;
  box-shadow: 3px 3px 0 0 var(--rojo);
}
.count-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
}
.count-lbl {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,248,236,0.55);
  margin-top: .2rem;
}

/* Parallax */
.parallax-wrap { position: relative; overflow: hidden; }
.parallax-img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  transform: translateY(0);
  will-change: transform;
}

/* Venue card floating */
.venue-card {
  min-width: 200px;
}

/* =============================================================
   PRESS STRIP
   ============================================================= */
.press-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 2px solid rgba(0,0,44,0.08);
  border-radius: 14px;
  transition: all .25s ease;
}
.press-card img {
  filter: grayscale(1) opacity(.65);
  transition: filter .25s ease, transform .25s ease;
}
.press-card:hover {
  background: #ffffff;
  border-color: var(--amarillo);
  box-shadow: 0 10px 24px -16px rgba(0,0,44,0.35);
  transform: translateY(-3px);
}
.press-card:hover img {
  filter: grayscale(0) opacity(1);
}

/* =============================================================
   STEP CARDS
   ============================================================= */
.step-card {
  background: white;
  border: 2px solid var(--noche);
  border-radius: 20px;
  padding: 1.75rem;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 0 var(--amarillo);
}
.step-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--amarillo);
  -webkit-text-stroke: 2px var(--noche);
}
.step-time {
  display: inline-block;
  padding: .3rem .7rem;
  background: var(--noche);
  color: var(--amarillo);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* =============================================================
   EVENT CARDS
   ============================================================= */
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border: 2px solid var(--noche);
  border-radius: 24px;
  padding: 2rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 10px 10px 0 0 var(--amarillo);
}
.event-featured {
  background: var(--noche);
  color: var(--crema);
  border-color: var(--amarillo);
  border-width: 3px;
}
.event-featured:hover {
  box-shadow: 10px 10px 0 0 var(--rojo);
  transform: translateY(-6px) scale(1.01);
}
.event-time {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  background: rgba(0,0,44,0.05);
  color: var(--noche);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.event-time-dark {
  background: rgba(255,203,5,0.15);
  color: var(--amarillo);
}
.event-tag {
  display: inline-block;
  padding: .3rem .65rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1.5px solid rgba(0,0,44,0.3);
  color: rgba(0,0,44,0.55);
  border-radius: 999px;
}
.event-bullet {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: rgba(0,0,44,0.75);
}
.event-featured .event-bullet {
  color: rgba(255,248,236,0.85);
}
.featured-ribbon {
  position: absolute;
  top: -14px;
  right: 1.5rem;
  background: var(--amarillo);
  color: var(--noche);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--noche);
}

/* =============================================================
   STATS
   ============================================================= */
.counter {
  font-variant-numeric: tabular-nums;
}

/* =============================================================
   ANFITRIONA
   ============================================================= */
.credential-chip {
  display: inline-block;
  padding: .45rem .8rem;
  background: white;
  border: 2px solid var(--noche);
  border-radius: 999px;
  color: var(--noche);
  font-size: 10px;
  letter-spacing: 0.18em;
}

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonial {
  background: rgba(255,248,236,0.04);
  border: 2px solid rgba(255,248,236,0.15);
  border-radius: 20px;
  padding: 1.75rem;
  transition: all .25s ease;
}
.testimonial:hover {
  border-color: var(--amarillo);
  background: rgba(255,248,236,0.07);
  transform: translateY(-4px);
}
.stars {
  color: var(--amarillo);
  letter-spacing: 4px;
  font-size: 1rem;
}
.testimonial-text {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 36;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255,248,236,0.92);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,248,236,0.12);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

/* =============================================================
   UBICACIÓN · mapa + google summary
   ============================================================= */
.map-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--noche);
  box-shadow: 8px 8px 0 0 var(--rojo);
  background: var(--gris);
}
.map-iframe, .map-iframe-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85) contrast(1.02);
}
.map-iframe { opacity: 0; pointer-events: none; }
.map-iframe-fallback { z-index: 1; }
.venue-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.venue-info-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amarillo);
  color: var(--noche);
  border: 2px solid var(--noche);
  border-radius: 12px;
}
.google-summary {
  background: white;
  border: 2px solid var(--noche);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 4px 4px 0 0 var(--amarillo);
}
.google-summary-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,44,0.08);
}
.google-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(0,0,44,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.google-review {
  padding-left: .5rem;
  border-left: 3px solid var(--amarillo);
}
.review-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amarillo), var(--rojo));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 800;
}

/* =============================================================
   FAQ
   ============================================================= */
.faq-item {
  background: white;
  border: 2px solid var(--noche);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq-item[open] {
  box-shadow: 5px 5px 0 0 var(--amarillo);
}
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 36;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--noche);
  list-style: none;
  user-select: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amarillo);
  border: 2px solid var(--noche);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--noche);
  transition: transform .25s ease, background .2s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--rojo);
  color: white;
}
.faq-body {
  padding: 0 1.5rem 1.4rem;
  color: rgba(0,0,44,0.78);
  line-height: 1.65;
  font-size: .95rem;
}
.faq-body a { color: var(--rojo); font-weight: 600; }

/* =============================================================
   STICKY CTA · mobile
   ============================================================= */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0));
  background: rgba(255,248,236,0.94);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--noche);
  display: flex;
  gap: .6rem;
  z-index: 50;
  transform: translateY(120%);
  transition: transform .3s ease;
}
.sticky-cta.visible { transform: translateY(0); }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
.btn-whatsapp-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--noche);
  flex-shrink: 0;
  transition: all .2s ease;
}
.btn-whatsapp-icon:hover { background: #128C7E; }

/* =============================================================
   TWEAKS PANEL
   ============================================================= */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 300px;
  background: var(--noche);
  color: var(--crema);
  border: 2px solid var(--amarillo);
  border-radius: 18px;
  z-index: 60;
  overflow: hidden;
  transform: translateY(calc(100% + 30px));
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.45);
}
.tweaks-panel.open { transform: translateY(0); }
.tweaks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.2rem;
  background: black;
  border-bottom: 1px solid rgba(255,203,5,0.2);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amarillo);
}
.tweaks-close {
  background: none;
  border: none;
  color: var(--crema);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}
.tweaks-close:hover { background: rgba(255,255,255,0.1); }
.tweaks-body { padding: 1.1rem 1.2rem; max-height: 70vh; overflow-y: auto; }
.tweak-group { margin-bottom: 1.1rem; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,248,236,0.6);
  margin-bottom: .55rem;
}
.tweak-options {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.tweak-opt {
  padding: .55rem .8rem;
  background: rgba(255,248,236,0.06);
  border: 1.5px solid transparent;
  border-radius: 9px;
  color: var(--crema);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
}
.tweak-opt:hover { background: rgba(255,248,236,0.12); }
.tweak-opt.active {
  background: var(--amarillo);
  color: var(--noche);
  border-color: var(--amarillo);
}

/* =============================================================
   GSAP INITIAL STATES — hidden by default; JS reveals
   ============================================================= */
.gs-up, .gs-fade, .gs-img, .gs-card, .gs-step, .gs-stat, .gs-testimonial, .gs-media, .gs-float, .gs-host-img, .gs-host-text {
  opacity: 0;
}
.no-gsap .gs-up,
.no-gsap .gs-fade,
.no-gsap .gs-img,
.no-gsap .gs-card,
.no-gsap .gs-step,
.no-gsap .gs-stat,
.no-gsap .gs-testimonial,
.no-gsap .gs-media,
.no-gsap .gs-float,
.no-gsap .gs-host-img,
.no-gsap .gs-host-text {
  opacity: 1;
}

/* =============================================================
   ACCESSIBILITY · reduce motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .parallax-img { transform: none !important; }
  .gs-up, .gs-fade, .gs-img, .gs-card, .gs-step, .gs-stat, .gs-testimonial, .gs-media, .gs-float, .gs-host-img, .gs-host-text {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Prevent horizontal overflow from decorative elements */
html, body { overflow-x: hidden; }

@media (max-width: 767px) {
  /* Hero */
  .hero { padding-top: 7rem; padding-bottom: 4rem; }
  .hero-title { font-size: clamp(2.4rem, 9vw, 3.5rem); }

  /* Venue floating card — keep visible but smaller */
  .venue-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    width: 100%;
    box-shadow: 4px 4px 0 0 var(--noche);
  }

  /* Countdown — smaller tiles on mobile */
  .count-tile { width: 48px; }
  .count-num { font-size: 1.15rem; }

  /* Step cards — less padding */
  .step-card { padding: 1.25rem; }

  /* Event cards — tighter padding */
  .event-card { padding: 1.5rem; }

  /* Section vertical padding — reduce on mobile */
  .py-24 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:py-32 { padding-top: 4rem; padding-bottom: 4rem; }

  /* Anfitriona image */
  .gs-host-img { margin-bottom: 2rem; }

  /* Map frame — square on mobile */
  .map-frame { aspect-ratio: 1 / 1; }

  /* FAQ summary font size */
  .faq-summary { font-size: .95rem; }

  /* Footer grid */
  footer .grid { gap: 2rem; }
}

/* Tablet tweaks */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title { font-size: clamp(3rem, 6vw, 5rem); }
  .event-card { padding: 1.5rem; }
  .step-card { padding: 1.4rem; }
}

/* Fix stats dividers in 2-col on small screens */
@media (max-width: 767px) {
  .grid.grid-cols-2.md\:grid-cols-4 > div {
    border-right: none !important;
  }
  .grid.grid-cols-2.md\:grid-cols-4 > div:nth-child(odd) {
    border-right: 2px solid rgba(255,248,236,0.1) !important;
  }
  .grid.grid-cols-2.md\:grid-cols-4 > div:nth-child(1),
  .grid.grid-cols-2.md\:grid-cols-4 > div:nth-child(2) {
    border-bottom: 2px solid rgba(255,248,236,0.1);
  }
}
