/* ============================================================
   INVITACIÓN DE BODA — JEFERSON & ELISABETH · 10 · 07 · 2026
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ===== VARIABLES ===== */
:root {
  --color-primary:    #2c132a;
  --color-gold:       #c9a96e;
  --color-gold-light: #e0c898;
  --color-blush:      #e8c4c0;
  --color-bg:         #faf6f1;
  --color-surface:    #f2ebe3;
  --color-text:       #3d2438;
  --color-text-light: #7a5c72;
  --color-white:      #ffffff;
  --color-overlay:    rgba(44,19,42,0.58);
  --color-overlay-lt: rgba(44,19,42,0.22);
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;
  --section-pad:  clamp(4rem,8vw,7rem) clamp(1.5rem,5vw,4rem);
  --card-radius:  16px;
  --btn-radius:   50px;
  --transition:   0.35s ease;
}

/* ===== CANVAS PÉTALOS ===== */
#petals-canvas { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:9999; }

/* ============================================================
   SOBRE ANIMADO
   ============================================================ */
#envelope-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
}

/* Foto de fondo detrás del sobre */
.env-bg {
  position: absolute; inset: 0;
  background:
    url('../assets/imagenes/fondo-sobre.jpg') center/cover no-repeat,
    linear-gradient(160deg, #1a0a18 0%, #2c132a 55%, #3d1f3a 100%);
  filter: blur(4px) brightness(0.38);
  transform: scale(1.06);
  z-index: 0;
}

#envelope-scene {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.4rem;
  perspective: 1200px;
}

.env-greeting {
  color: var(--color-white);
  font-family: var(--font-display); font-size: clamp(1rem,3.5vw,1.5rem);
  font-style: italic; text-align: center; opacity: 0.82;
}

/* ── Cuerpo del sobre (blanco/crema) ── */
#envelope {
  position: relative;
  width: min(360px, 88vw);
  height: calc(min(360px, 88vw) * 0.72);
  transform-style: preserve-3d;
}

.env-body {
  position: absolute; inset: 0;
  background-color: #fefcf8;
  border-radius: 4px 4px 6px 6px;
  border: 1px solid rgba(201,169,110,0.25);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.6) inset;
  /* Líneas de doblez (patrón X) */
  background-image:
    linear-gradient(to bottom right, transparent calc(50% - 0.6px), rgba(44,19,42,0.08) 50%, transparent calc(50% + 0.6px)),
    linear-gradient(to bottom left,  transparent calc(50% - 0.6px), rgba(44,19,42,0.08) 50%, transparent calc(50% + 0.6px));
}

/* Texto "Toca para abrir" dentro del sobre */
.env-open-hint {
  position: absolute; top: 65%; left: 50%; transform: translateX(-50%);
  transition: opacity 0.3s;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: rgba(60,30,55,0.45); letter-spacing: 0.15em;
  white-space: nowrap; pointer-events: none; user-select: none;
}

/* Triángulos laterales y fondo del sobre */
.env-left, .env-right, .env-bottom {
  position: absolute; background-color: #f8f4ef;
  border: none;
}
.env-left   { top:0; left:0; width:51%; height:100%; clip-path: polygon(0 0, 0 100%, 100% 50%); }
.env-right  { top:0; right:0; width:51%; height:100%; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.env-bottom { bottom:0; left:0; width:100%; height:55%; clip-path: polygon(0 100%, 50% 0, 100% 100%); background-color: #f5f0e8; }

/* Solapa superior */
.env-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 55%;
  background: #f8f5ee;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center; transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4,0,0.2,1);
  z-index: 4;
}
.env-flap::after {
  content: '';  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.3) 0%, rgba(200,170,130,0.15) 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

#envelope.open .env-flap { transform: rotateX(-180deg); }

/* ── Ramitos florales esquineros ── */
.env-flowers-left,
.env-flowers-right {
  position: absolute;
  bottom: -8px;
  width: clamp(72px, 20vw, 92px);
  z-index: 5; pointer-events: none;
}
.env-flowers-left  { left: -16px;  transform-origin: bottom left;  animation: envSwayLeft  5s ease-in-out infinite alternate; }
.env-flowers-right { right: -16px; transform-origin: bottom right; animation: envSwayRight 5s ease-in-out infinite alternate; }
.env-flowers-left svg,
.env-flowers-right svg { width: 100%; height: auto; display: block; }
@keyframes envSwayLeft  { from { transform: rotate(-2deg); } to { transform: rotate(1.2deg); } }
@keyframes envSwayRight { from { transform: rotate(2deg);  } to { transform: rotate(-1.2deg); } }

/* ── Sello de cera morado ── */
.wax-seal {
  position: absolute;
  bottom: 28%; left: 50%;
  transform: translateX(-50%);
  width: clamp(80px, 20vw, 100px);
  z-index: 6;
  filter: drop-shadow(0 6px 18px rgba(44,19,42,0.5));
  transition: opacity 0.3s;
}
.wax-seal svg { width: 100%; height: auto; display: block; }
#envelope.open .wax-seal { opacity: 0; }
#envelope.open .env-open-hint { opacity: 0; }

/* ── Info del invitado (debajo del sobre) ── */
.env-guest-info { text-align: center; }

.env-guest-name {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.3rem, 5vw, 2rem);
  color: var(--color-white); letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.env-guest-places {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: var(--color-gold-light); letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

.env-hint {
  color: var(--color-gold-light); font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase;
  animation: hintPulse 2s ease-in-out infinite;
}

#envelope-overlay.fade-out { animation: overlayFade 0.8s ease forwards; pointer-events: none; }

/* ============================================================
   INVITACIÓN PRINCIPAL
   ============================================================ */
#invitation { opacity: 0; transition: opacity 1s ease; }
#invitation.visible { opacity: 1; }

/* ===== SECCIONES ===== */
.section { padding: var(--section-pad); }

.full-screen {
  position: relative; min-height: 100dvh; padding: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}

.photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.overlay    { position: absolute; inset: 0; background: var(--color-overlay); }
.overlay-lt { position: absolute; inset: 0; background: var(--color-overlay-lt); }

/* ── Fondos de fotos (con fallback gradient) ── */
.cover-bg  { background: url('../assets/imagenes/foto-portada.jpg') center/cover no-repeat, linear-gradient(135deg,#2c132a 0%,#5a2d52 45%,#8c5080 70%,#c9a96e 100%); }
.photo1-bg { background: url('../assets/imagenes/foto-1.jpg')       center/cover no-repeat, linear-gradient(160deg,#e8c4c0 0%,#c9a96e 50%,#2c132a 100%); }
.photo2-bg { background: url('../assets/imagenes/foto-2.jpg')       center/cover no-repeat, linear-gradient(135deg,#3d2438 0%,#7a3d6e 60%,#e8c4c0 100%); }
.close-bg  { background: url('../assets/imagenes/foto-cierre.jpg')  center/cover no-repeat, linear-gradient(135deg,#2c132a 0%,#4a1f47 50%,#c9a96e 100%); }
.carousel-slide-1 { background: url('../assets/imagenes/carrusel-1.jpg') center/cover no-repeat, linear-gradient(135deg,#e8c4c0,#c9a96e,#7a3d6e); }
.carousel-slide-2 { background: url('../assets/imagenes/carrusel-2.jpg') center/cover no-repeat, linear-gradient(160deg,#2c132a,#5a2d52,#c9a96e); }
.carousel-slide-3 { background: url('../assets/imagenes/carrusel-3.jpg') center/cover no-repeat, linear-gradient(110deg,#c9a96e,#e8c4c0,#2c132a); }
.carousel-slide-4 { background: url('../assets/imagenes/carrusel-4.jpg') center/cover no-repeat, linear-gradient(145deg,#4a1f47,#c9a96e,#e8c4c0); }
.carousel-slide-5 { background: url('../assets/imagenes/carrusel-5.jpg') center/cover no-repeat, linear-gradient(120deg,#2c132a,#7a3d6e,#e8c4c0); }
.carousel-slide-6 { background: url('../assets/imagenes/carrusel-6.jpg') center/cover no-repeat, linear-gradient(155deg,#e8c4c0,#2c132a,#5a2d52); }
.carousel-slide-7 { background: url('../assets/imagenes/carrusel-7.jpg') center/cover no-repeat, linear-gradient(125deg,#5a2d52,#c9a96e,#2c132a); }

/* ===== SECCIONES CLARAS — viñeta + línea dorada ===== */
.section-light {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}
/* Las secciones de superficie usan color diferente */
#s-capacity, #s-venues, #s-cards { background: var(--color-surface); }

/* Viñeta degradada — bordes ciruela/blush más visibles */
.section-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Esquinas ciruela — más intensas */
    radial-gradient(ellipse at 0% 0%, rgba(44,19,42,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(44,19,42,0.14) 0%, transparent 50%),
    /* Bordes laterales blush */
    radial-gradient(ellipse at 0% 50%, rgba(232,196,192,0.16) 0%, transparent 40%),
    radial-gradient(ellipse at 100% 50%, rgba(232,196,192,0.16) 0%, transparent 40%),
    /* Bordes superior e inferior dorado tenue */
    radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.10) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 100%, rgba(201,169,110,0.10) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
}

/* Línea ornamental superior — dorado + ciruela, más ancha y visible */
.section-light::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 60%);
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(44,19,42,0.20) 15%,
    rgba(201,169,110,0.70) 35%,
    rgba(201,169,110,0.90) 50%,
    rgba(201,169,110,0.70) 65%,
    rgba(44,19,42,0.20) 85%,
    transparent
  );
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  z-index: 1;
}

/* Marco dorado + ciruela en secciones de superficie */
#s-capacity, #s-venues, #s-cards {
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg,
    transparent 5%,
    rgba(44,19,42,0.18) 15%,
    rgba(201,169,110,0.50) 35%,
    rgba(201,169,110,0.65) 50%,
    rgba(201,169,110,0.50) 65%,
    rgba(44,19,42,0.18) 85%,
    transparent 95%
  ) 1;
}

/* Esquinas decorativas dorado-ciruela en secciones surface */
#s-capacity::before, #s-venues::before, #s-cards::before {
  background:
    /* Esquinas más marcadas en surface */
    radial-gradient(ellipse at 0% 0%, rgba(44,19,42,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(44,19,42,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 0%, rgba(201,169,110,0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 0% 100%, rgba(201,169,110,0.12) 0%, transparent 40%),
    /* Bordes laterales blush más intensos */
    radial-gradient(ellipse at 0% 50%, rgba(232,196,192,0.20) 0%, transparent 35%),
    radial-gradient(ellipse at 100% 50%, rgba(232,196,192,0.20) 0%, transparent 35%);
}

/* ===== TÍTULOS DE SECCIÓN ===== */
.section-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.8rem,5vw,3rem); color: var(--color-primary);
  text-align: center; margin-bottom: 2.5rem; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 2px; margin: 0.8rem auto 0;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.centered-section { text-align: center; max-width: 800px; margin: 0 auto; }

/* ===== REVEAL EN SCROLL ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== ORNAMENTO ===== */
.ornament { display: flex; align-items: center; gap: 1rem; margin: 1.5rem auto; }
.ornament-line {
  flex: 1; height: 1px; max-width: 120px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  background-size: 200% auto; animation: shimmer 3s linear infinite;
}
.ornament-diamond { color: var(--color-gold); font-size: 0.5rem; }

/* ===== BOTÓN MÚSICA ===== */
#music-toggle {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(44,19,42,0.7); backdrop-filter: blur(10px);
  border: 1px solid rgba(201,169,110,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold); transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#music-toggle:hover { background: var(--color-primary); border-color: var(--color-gold); }
#music-toggle svg   { width: 20px; height: 20px; fill: currentColor; }
#music-toggle.hidden { display: none; }

/* ===== S1: PORTADA ===== */
#s-cover { align-items: flex-end; }
#s-cover .cover-content {
  position: relative; z-index: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  padding: 2rem 2rem 7rem;
}
.logo-main {
  width: clamp(70px,15vw,170px);
  filter: drop-shadow(0 4px 16px rgba(201,169,170,0.5)) brightness(10);
  animation: logoEntrance 1.2s ease both;
}
.couple-names {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.2rem,8vw,5.5rem); color: var(--color-white);
  letter-spacing: 0.02em; animation: logoEntrance 1.2s 0.3s ease both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.wedding-tag {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(0.75rem,2vw,1rem); letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--color-gold); animation: logoEntrance 1.2s 0.6s ease both;
}
.wedding-date-cover {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1rem,3vw,1.4rem); color: rgba(255,255,255,0.8);
  animation: logoEntrance 1.2s 0.9s ease both;
}
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.5); font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; animation: bounce 2s ease infinite 2s; z-index: 1;
}
.scroll-hint-arrow { width: 1px; height: 30px; background: linear-gradient(180deg,transparent,rgba(201,169,110,0.6)); }

/* ===== S3: FRASE PRINCIPAL ===== */
.main-phrase {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.05rem,2.5vw,1.45rem); line-height: 1.9;
  color: var(--color-text-light); text-align: center; max-width: 700px; margin: 1.5rem auto;
}

/* ===== S4: CUPOS LIMITADOS ===== */
.capacity-card {
  background: var(--color-bg); border: 1px solid var(--color-blush);
  border-radius: var(--card-radius); padding: 2.5rem 2rem;
  max-width: 540px; margin: 0 auto; text-align: center;
  box-shadow: 0 4px 24px rgba(44,19,42,0.08);
}
.capacity-icon { font-size: 2rem; margin-bottom: 1rem; }
.capacity-text { font-weight: 300; font-style: italic; font-size: 1rem; color: var(--color-text-light); line-height: 1.8; }

/* ===== S5: COUNTDOWN ===== */
#s-countdown { background: var(--color-primary); text-align: center; }
#s-countdown .section-title { color: var(--color-white); }
#s-countdown .section-title::after { background: linear-gradient(90deg,transparent,rgba(201,169,110,0.6),transparent); }
.countdown-grid { display: flex; align-items: center; justify-content: center; gap: clamp(0.5rem,2vw,1.5rem); flex-wrap: wrap; }
.cd-unit {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(201,169,110,0.25);
  border-radius: 12px; padding: clamp(1rem,3vw,1.8rem) clamp(1.2rem,4vw,2.5rem);
  min-width: clamp(70px,18vw,120px); display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem; backdrop-filter: blur(4px);
}
.cd-unit span { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.5rem,8vw,5rem); color: var(--color-gold); line-height: 1; }
.cd-unit.pulse span { animation: cdPulse 0.3s ease; }
.cd-unit label { font-weight: 300; font-size: clamp(0.6rem,1.5vw,0.75rem); letter-spacing: 0.35em; text-transform: uppercase; color: var(--color-blush); }
.cd-sep { font-family: var(--font-display); font-size: clamp(2rem,6vw,4rem); color: rgba(201,169,110,0.4); margin-bottom: 1.8rem; align-self: center; }

/* ===== S6: EL GRAN DÍA ===== */
#s-bigday { text-align: center; }
.calendar-widget {
  max-width: 340px; margin: 0 auto 2rem;
  background: var(--color-bg); border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(44,19,42,0.12);
}
.cal-header { background: var(--color-primary); color: var(--color-white); padding: 1.2rem; font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; letter-spacing: 0.15em; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7,1fr); padding: 0.8rem 0.5rem 0.3rem; gap: 4px; }
.cal-weekdays span { text-align: center; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-light); padding: 0.3rem 0; }
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); padding: 0.3rem 0.5rem 1rem; gap: 4px; }
.cal-day { text-align: center; font-size: 0.85rem; color: var(--color-text); padding: 0.4rem 0; border-radius: 50%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-weight: 300; }
.cal-day.empty { color: transparent; }
.cal-day.highlighted { background: var(--color-primary); color: var(--color-white)!important; font-weight: 500; box-shadow: 0 0 0 3px var(--color-gold); animation: calPulse 2s ease-in-out infinite; }
.bigday-subtitle { font-family: var(--font-display); font-size: clamp(1.1rem,3vw,1.6rem); color: var(--color-text-light); font-style: italic; text-align: center; }
.bigday-day { font-weight: 300; letter-spacing: 0.4em; text-transform: uppercase; font-size: 0.75rem; color: var(--color-gold); text-align: center; margin-bottom: 1rem; }

/* ===== S8: LUGARES ===== */
.venues-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.venue-card {
  background: var(--color-bg); border-radius: var(--card-radius);
  padding: 2rem 1.5rem; text-align: center; border-top: 4px solid var(--color-primary);
  box-shadow: 0 4px 24px rgba(44,19,42,0.1); transition: transform var(--transition), box-shadow var(--transition);
}
.venue-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(44,19,42,0.18); }
.venue-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.venue-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--color-primary); margin-bottom: 0.5rem; }
.venue-time { font-family: var(--font-display); font-size: 1.8rem; font-weight: 300; color: var(--color-gold); margin-bottom: 0.5rem; }
.venue-name { font-weight: 500; font-size: 0.95rem; color: var(--color-text); margin-bottom: 0.2rem; }
.venue-location { font-weight: 300; font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 1.5rem; }
.btn-map {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.4rem; border-radius: var(--btn-radius);
  border: 1.5px solid var(--color-primary); color: var(--color-primary);
  font-size: 0.8rem; letter-spacing: 0.1em; font-weight: 400;
  transition: var(--transition); margin-bottom: 0.7rem;
}
.btn-map:hover { background: var(--color-primary); color: var(--color-white); }
.btn-directions {
  display: block; width: 100%; padding: 0.7rem 1.4rem; border-radius: var(--btn-radius);
  background: var(--color-primary); color: var(--color-white);
  font-size: 0.8rem; letter-spacing: 0.1em; font-weight: 400; transition: var(--transition);
}
.btn-directions:hover { background: #4a1f47; }
.btn-directions.loading { opacity: 0.7; cursor: wait; }

/* ===== S9: ITINERARIO ===== */
.timeline { max-width: 560px; margin: 0 auto; position: relative; }
.timeline-item { display: flex; gap: 1.5rem; align-items: flex-start; padding-bottom: 2rem; position: relative; }
.timeline-item:not(:last-child)::before { content:''; position:absolute; left:23px; top:52px; bottom:0; width:2px; background:linear-gradient(180deg,var(--color-blush),transparent); }
.tl-icon { width:48px; height:48px; min-width:48px; border-radius:50%; background:var(--color-primary); display:flex; align-items:center; justify-content:center; font-size:1.2rem; box-shadow:0 4px 12px rgba(44,19,42,0.3); position:relative; z-index:1; }
.tl-content { padding-top: 0.3rem; }
.tl-time { font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; color: var(--color-gold); line-height: 1; margin-bottom: 0.2rem; }
.tl-desc { font-weight: 300; color: var(--color-text-light); font-size: 0.95rem; }

/* ===== S10: FOTO 2 CON FRASE ===== */
#s-photo2 .photo-phrase {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.2rem,3.5vw,2rem); color: var(--color-white);
  text-align: center; max-width: 620px; padding: 0 1.5rem;
  line-height: 1.7; text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
#s-photo2 .photo-phrase::before,
#s-photo2 .photo-phrase::after { content:''; display:block; width:60px; height:1px; margin:1.2rem auto; background:var(--color-gold); opacity:0.6; }

/* ===== S11: TARJETAS INFO ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.info-card {
  background: var(--color-bg); border-radius: var(--card-radius);
  padding: 2rem 1.5rem; text-align: center; border: 1px solid var(--color-blush);
  box-shadow: 0 4px 20px rgba(44,19,42,0.07); transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(44,19,42,0.14); }
.card-logo {
  width: 72px;
  margin: 0 auto 1.4rem;
  display: block;
  filter:
    brightness(0)
    saturate(100%)
    invert(14%)
    sepia(70%)
    saturate(700%)
    hue-rotate(272deg)
    drop-shadow(0 3px 14px rgba(44,19,42,0.45));
  opacity: 1;
}
.info-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--color-primary); margin-bottom: 1rem; }
.info-card p { font-weight: 300; font-size: 0.9rem; color: var(--color-text-light); line-height: 1.8; }
.dress-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; text-align: left; }
.dress-col-title { font-weight: 500; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 0.4rem; }
.dress-col-item { font-weight: 300; font-size: 0.82rem; color: var(--color-text-light); line-height: 1.7; }
.avoid-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text-light); margin-bottom: 0.5rem; }
.avoid-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.avoid-tag { background: rgba(44,19,42,0.08); color: var(--color-text-light); border-radius: 20px; padding: 0.2rem 0.7rem; font-size: 0.72rem; border: 1px solid rgba(44,19,42,0.12); }

/* ===== S12: CARRUSEL (full-screen, sin título) ===== */
#s-carousel { padding: 0; }
.carousel-wrapper {
  position: absolute; inset: 0;
  border-radius: 0; overflow: hidden;
  box-shadow: none; max-width: none; margin: 0;
}
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); will-change: transform; touch-action: pan-y; height: 100%; }
.carousel-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.carousel-slide-inner { position: absolute; inset: 0; background-size: cover; background-position: center; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(44,19,42,0.5); backdrop-filter: blur(8px);
  color: var(--color-white); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); border: 1px solid rgba(255,255,255,0.2); z-index: 2;
}
.carousel-btn:hover { background: var(--color-primary); }
.carousel-prev { left: 1rem; } .carousel-next { right: 1rem; }
.carousel-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.6rem; z-index: 2; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: var(--transition); cursor: pointer; }
.carousel-dot.active { background: var(--color-gold); transform: scale(1.3); }

/* ===== S13: FRASE CARACTERÍSTICA ===== */
.char-phrase { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.2rem,3vw,1.8rem); color: var(--color-text-light); line-height: 1.8; text-align: center; max-width: 600px; margin: 1.5rem auto; }
.logo-sm { width: 42px; margin: 1.5rem auto 0; filter: drop-shadow(0 2px 8px rgba(201,169,110,0.35)); opacity: 0.7; }

/* ===== S14: CONFIRMACIÓN ===== */
#s-confirm { background: var(--color-primary); text-align: center; }
#s-confirm .section-title { color: var(--color-white); }
#s-confirm .section-title::after { background: linear-gradient(90deg,transparent,rgba(201,169,110,0.5),transparent); }
.confirm-deadline { font-weight: 300; font-size: 0.95rem; color: var(--color-blush); margin-bottom: 0.5rem; }
.confirm-deadline strong { color: var(--color-gold); font-weight: 500; }
.confirm-sub { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.btn-confirm {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 2.5rem; border-radius: var(--btn-radius);
  background: var(--color-gold); color: var(--color-primary);
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  transition: var(--transition); box-shadow: 0 4px 20px rgba(201,169,110,0.4);
}
.btn-confirm:hover { background: var(--color-gold-light); box-shadow: 0 8px 30px rgba(201,169,110,0.5); transform: translateY(-2px); }
.btn-confirm svg { width: 20px; height: 20px; fill: currentColor; }
.confirm-logo { width: 56px; margin: 0 auto 1.5rem; filter: brightness(10) drop-shadow(0 2px 8px rgba(201,169,110,0.4)); }

/* ===== S15: CIERRE ===== */
#s-close .close-content { position:relative; z-index:1; text-align:center; display:flex; flex-direction:column; align-items:center; gap:1rem; padding:2rem; }
.logo-close { width: clamp(60px,12vw,90px); filter: brightness(10) drop-shadow(0 4px 16px rgba(201,169,110,0.5)); }
.close-date { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem,5vw,3rem); color: var(--color-white); letter-spacing: 0.05em; }
.close-sign { font-weight: 300; font-style: italic; color: var(--color-blush); font-size: 0.95rem; letter-spacing: 0.1em; }
.close-names { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem,6vw,4rem); color: var(--color-white); }

/* ===== KEYFRAMES ===== */
@keyframes logoEntrance { from{opacity:0;transform:scale(0.9) translateY(-16px)} to{opacity:1;transform:scale(1) translateY(0)} }
@keyframes overlayFade  { from{opacity:1} to{opacity:0} }
@keyframes hintPulse    { 0%,100%{opacity:0.4} 50%{opacity:1} }
@keyframes cdPulse      { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
@keyframes calPulse     { 0%,100%{box-shadow:0 0 0 3px var(--color-gold)} 50%{box-shadow:0 0 0 6px rgba(201,169,110,0.4)} }
@keyframes shimmer      { 0%{background-position:-200% center} 100%{background-position:200% center} }
@keyframes bounce       { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .countdown-grid { gap: 0.4rem; }
  .cd-sep { display: none; }
  .cd-unit { min-width: calc(50% - 0.8rem); }
  .dress-cols { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2,1fr); }
}
