/* ═══════════════════════════════════════════════════
   PRIMERA COMUNIÓN · ERIK SANTIAGO
   Paleta: Crema, Beige, Arena, Marrón, Oliva
   Por rebram.mx - Soluciones Digitales
   ═══════════════════════════════════════════════════ */

:root {
  --crema:       #EEEBDF;
  --beige:       #E7CFAC;
  --arena:       #D5B48F;
  --beige-oliva: #AEAE8D;
  --marron-cl:   #CC9D71;
  --marron-md:   #A28E63;
  --marron-os:   #977A4E;
  --oliva:       #7C7749;
  --menta:       #a8c5b5;
  --menta-os:    #8db5a3;

  --font-script: 'Great Vibes', cursive;
  --font-serif:  'Cormorant Garamond', serif;
  --font-sans:   'Lato', sans-serif;

  --radius: 18px;
  --shadow: 0 8px 32px rgba(122,103,60,.18);
  --shadow-card: 0 4px 24px rgba(122,103,60,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-serif);
  background: var(--crema);
  color: var(--marron-os);
  overflow-x: hidden;
}
img   { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ════════════════════════════════════════
   WELCOME SCREEN
   ════════════════════════════════════════ */
#welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100dvh;
}

.welcome-bg {
  position: absolute;
  inset: 0;
  background: url('../img/fondo.jpg') center/cover no-repeat;
  filter: brightness(.55) sepia(.4);
}
.welcome-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(238,235,223,.85) 0%,
    rgba(210,180,140,.7) 60%,
    rgba(124,119,73,.6) 100%);
}

.welcome-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  padding: 2rem;
  /* centrado óptico: ligeramente hacia arriba del centro geométrico */
  margin-top: -12vh;
}

.welcome-cross {
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--marron-os);
  opacity: .7;
  margin-bottom: .3rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.welcome-petals {
  display: flex;
  gap: .6rem;
  margin-bottom: .8rem;
}
.petal {
  font-size: 1.2rem;
  color: var(--arena);
  animation: petalFloat 3s ease-in-out infinite;
}
.petal:nth-child(2) { animation-delay: .4s; }
.petal:nth-child(3) { animation-delay: .8s; }
.petal:nth-child(4) { animation-delay: 1.2s; }
.petal:nth-child(5) { animation-delay: 1.6s; }

@keyframes petalFloat {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: .6; }
  50%      { transform: translateY(-8px) rotate(10deg); opacity: 1; }
}

/* Bunny bounce suave */
.bunny-wrapper {
  width: clamp(160px, 38vw, 260px);
  animation: bunnyBounce 3.2s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(100,80,40,.3));
}
.bunny-img { width: 100%; height: auto; object-fit: contain; }

@keyframes bunnyBounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-18px); }
}

.welcome-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  margin-top: 1.4rem;
}

.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: linear-gradient(135deg, var(--marron-cl), var(--marron-os));
  color: var(--crema);
  border: none;
  border-radius: 50px;
  padding: .85rem 2.2rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(100,70,30,.35);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.enter-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(100,70,30,.45);
}
.enter-icon { font-size: .8rem; opacity: .8; }

/* ════════════════════════════════════════
   AUDIO BUTTON
   ════════════════════════════════════════ */
.audio-btn {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 8000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--marron-cl), var(--oliva));
  border: 3px solid var(--crema);
  color: var(--crema);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.audio-btn:hover { transform: scale(1.1); }

/* ════════════════════════════════════════
   SITE BG
   ════════════════════════════════════════ */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('../img/fondo.jpg') center/cover no-repeat;
  opacity: .13;
  pointer-events: none;
}

#main-site { position: relative; z-index: 1; }

/* ════════════════════════════════════════
   SECCIONES COMUNES
   ════════════════════════════════════════ */
section {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  color: var(--marron-os);
  text-align: center;
  line-height: 1.2;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(.95rem, 2.5vw, 1.15rem);
  color: var(--marron-md);
  text-align: center;
  font-style: italic;
  max-width: 600px;
}

.section-ornament {
  font-family: var(--font-serif);
  color: var(--beige-oliva);
  letter-spacing: .5em;
  font-size: 1.2rem;
  opacity: .8;
}

/* ── Conejitos laterales ── */
.side-bunny {
  position: absolute;
  bottom: 0;
  width: clamp(50px, 9vw, 85px);
  object-fit: contain;
  opacity: .5;
  filter: sepia(.5) brightness(.75) contrast(.9);
  pointer-events: none;
  user-select: none;
}
.side-bunny--left  { left: 0;  transform: scaleX(-1); transform-origin: left bottom; }
.side-bunny--right { right: 0; transform-origin: right bottom; }

/* ════════════════════════════════════════
   HEADER
   ════════════════════════════════════════ */
.site-header {
  position: relative;
  min-height: clamp(320px, 55vw, 500px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2.5rem 1.5rem;
  gap: 1rem;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(238,235,223,.96) 0%,
    rgba(231,207,172,.9) 50%,
    rgba(213,180,143,.88) 100%);
}

/* Contenedor genérico de imagen decorativa centrada */
.header-deco {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.header-comunion-img {
  width: clamp(70px, 18vw, 130px);
  height: auto;
  object-fit: contain;
  opacity: .88;
}

/* Imagen corazón en tarjetas de familia */
.family-heart-img {
  width: clamp(48px, 12vw, 80px);
  height: auto;
  object-fit: contain;
  opacity: .85;
  margin-bottom: .3rem;
}

.line-deco {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--beige-oliva), transparent);
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.header-img-wrap {
  position: relative;
  width: clamp(130px, 30vw, 210px);
  height: clamp(130px, 30vw, 210px);
}

.header-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--crema);
  box-shadow: 0 8px 32px rgba(100,70,30,.3), 0 0 0 2px var(--arena);
}

.header-photo-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid var(--crema);
  background: linear-gradient(135deg, var(--beige), var(--arena));
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.header-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.header-date-tag {
  font-family: var(--font-serif);
  font-size: clamp(.82rem, 2vw, 1rem);
  color: var(--oliva);
  letter-spacing: .25em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════
   MESSAGE SECTION
   ════════════════════════════════════════ */
.message-section {
  background: linear-gradient(160deg, rgba(238,235,223,.95) 0%, rgba(231,207,172,.8) 100%);
}

.message-card {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(210,180,140,.4);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 3rem);
  max-width: 700px;
  width: 100%;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.quote-mark {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--arena);
  line-height: .6;
  opacity: .6;
}
.open-quote  { text-align: left; }
.close-quote { text-align: right; }

.message-text {
  font-family: var(--font-serif);
  font-size: clamp(.98rem, 2.2vw, 1.15rem);
  line-height: 1.85;
  color: var(--marron-os);
  margin: .7rem 0;
  text-align: justify;
  hyphens: auto;
}
.message-text strong { color: var(--oliva); font-weight: 600; }

.message-signature {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  color: var(--marron-md);
  margin-top: .8rem;
}

/* ════════════════════════════════════════
   COUNTDOWN — GLOBOS
   ════════════════════════════════════════ */
.countdown-section {
  background: linear-gradient(160deg, rgba(174,174,141,.25) 0%, rgba(238,235,223,.9) 100%);
}

.balloons-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(.7rem, 3vw, 2.5rem);
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  width: 100%;
}

.balloon-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.balloon {
  width: clamp(68px, 17vw, 118px);
  height: clamp(82px, 21vw, 142px);
  background: radial-gradient(circle at 35% 30%,
    rgba(255,255,255,.55),
    var(--marron-cl) 55%,
    var(--marron-os) 100%);
  border-radius: 50% 50% 55% 55% / 60% 60% 50% 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: -4px 6px 16px rgba(0,0,0,.2), inset 2px 2px 8px rgba(255,255,255,.3);
  position: relative;
  animation: balloonSway 4s ease-in-out infinite;
}
.balloon-alt  {
  background: radial-gradient(circle at 35% 30%,rgba(255,255,255,.5),var(--beige-oliva) 55%,var(--oliva) 100%);
  animation-delay: .6s;
}
.balloon-alt2 {
  background: radial-gradient(circle at 35% 30%,rgba(255,255,255,.5),var(--arena) 55%,var(--marron-md) 100%);
  animation-delay: 1.2s;
}
.balloon-alt3 {
  background: radial-gradient(circle at 35% 30%,rgba(255,255,255,.5),var(--beige) 40%,var(--marron-cl) 100%);
  animation-delay: 1.8s;
}
.balloon::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 10px;
  background: inherit;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

@keyframes balloonSway {
  0%,100% { transform: rotate(-4deg) translateY(0); }
  50%     { transform: rotate(4deg) translateY(-8px); }
}

.balloon-number {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4.5vw, 2.5rem);
  font-weight: 600;
  color: var(--crema);
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
  line-height: 1;
}
.balloon-label-inner { display: none; }

.balloon-string {
  width: 2px;
  height: clamp(36px, 7vw, 60px);
  background: linear-gradient(to bottom, var(--marron-md), transparent);
  opacity: .6;
}

.balloon-label {
  font-family: var(--font-serif);
  font-size: clamp(.7rem, 1.8vw, .9rem);
  color: var(--marron-md);
  font-style: italic;
  margin-top: .3rem;
}

/* ════════════════════════════════════════
   GALLERY
   ════════════════════════════════════════ */
.gallery-section { background: rgba(238,235,223,.96); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.5rem, 1.5vw, 1rem);
  width: 100%;
  max-width: 860px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, var(--beige), var(--arena));
  animation: fadeInUp .6s ease both;
  animation-delay: calc(var(--i) * .06s);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(122,103,60,.5), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: .6rem;
  opacity: 0;
  transition: opacity .3s;
  color: var(--crema);
  font-size: 1.4rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--marron-md);
  opacity: .5;
  border: 2px dashed var(--arena);
}

/* ════════════════════════════════════════
   LOCATIONS
   ════════════════════════════════════════ */
.locations-section {
  background: linear-gradient(160deg, rgba(210,180,140,.25) 0%, rgba(238,235,223,.9) 100%);
}

/* Imagen "¿Dónde nos encontramos?" */
.donde-img {
  width: clamp(160px, 50vw, 280px);
  height: auto;
  object-fit: contain;
  margin: 0 auto .5rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  max-width: 800px;
}

.location-card {
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(210,180,140,.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
}
.location-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.location-img-wrap {
  position: relative;
  height: 170px;
  background: linear-gradient(135deg, var(--beige), var(--arena));
  overflow: hidden;
}
.location-img { width: 100%; height: 100%; object-fit: cover; }
.location-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; opacity: .4;
}

.location-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}
.location-icon { font-size: 1.6rem; }
.location-name {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  color: var(--marron-os);
}
.location-desc {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--marron-md);
  font-size: .92rem;
}
.location-btn {
  display: inline-block;
  margin-top: .5rem;
  background: linear-gradient(135deg, var(--marron-cl), var(--marron-os));
  color: var(--crema);
  text-decoration: none;
  padding: .55rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: .85rem;
  transition: opacity .2s, transform .2s;
}
.location-btn:hover { opacity: .85; transform: scale(1.04); }

/* ════════════════════════════════════════
   GIFTS
   ════════════════════════════════════════ */
.gifts-section { background: rgba(238,235,223,.97); }

.gifts-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  width: 100%;
}

.gift-card {
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(210,180,140,.4);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  text-align: center;
  min-width: min(220px, 100%);
  max-width: 320px;
  width: 100%;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  transition: transform .3s;
}
.gift-card:hover { transform: translateY(-4px); }

.gifts__store-logo {
  width: clamp(90px, 55%, 180px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gift-event-label {
  font-family: var(--font-sans);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--beige-oliva);
  margin-top: .5rem;
}
.gift-event-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--marron-md);
}
.gift-btn {
  display: inline-block;
  margin-top: .8rem;
  background: linear-gradient(135deg, var(--oliva), var(--marron-md));
  color: var(--crema);
  text-decoration: none;
  padding: .6rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: .88rem;
  transition: opacity .2s;
}
.gift-btn:hover { opacity: .85; }

/* ════════════════════════════════════════
   RSVP
   ════════════════════════════════════════ */
.rsvp-section {
  background: linear-gradient(160deg, rgba(174,174,141,.2) 0%, rgba(238,235,223,.95) 100%);
}

.rsvp-card {
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(210,180,140,.35);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.8rem);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-card);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.1rem;
}
.form-group label {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--marron-os);
  font-style: italic;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--arena);
  border-radius: 10px;
  background: rgba(238,235,223,.6);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--marron-os);
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--marron-cl);
  background: rgba(255,255,255,.7);
}

.radio-group {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--marron-md);
}
.radio-label input[type="radio"] { display: none; }
.radio-custom {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--arena);
  background: transparent;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.radio-label input[type="radio"]:checked + .radio-custom {
  background: var(--marron-cl);
  border-color: var(--marron-cl);
  box-shadow: 0 0 0 3px rgba(204,157,113,.25);
}

.rsvp-btn {
  width: 100%;
  padding: .9rem;
  background: linear-gradient(135deg, var(--marron-cl), var(--marron-os));
  color: var(--crema);
  border: none;
  border-radius: 50px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(100,70,30,.3);
  transition: transform .2s, box-shadow .2s;
  margin-top: .4rem;
}
.rsvp-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(100,70,30,.35); }

.rsvp-thanks {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.thanks-icon { font-size: 3.5rem; color: var(--marron-cl); animation: petalFloat 2s ease-in-out infinite; }
.rsvp-thanks h3 { font-family: var(--font-script); font-size: 2rem; color: var(--marron-os); }
.rsvp-thanks p  { font-family: var(--font-serif); font-size: 1.05rem; color: var(--marron-md); font-style: italic; }

/* ════════════════════════════════════════
   PAPÁS Y PADRINOS
   ════════════════════════════════════════ */
.family-section {
  background: linear-gradient(160deg, rgba(238,235,223,.97) 0%, rgba(231,207,172,.7) 100%);
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  max-width: 700px;
}

.family-card {
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(210,180,140,.4);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  transition: transform .3s;
}
.family-card:hover { transform: translateY(-4px); }

.family-role {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  color: var(--marron-os);
  line-height: 1;
}

.family-divider {
  width: 60px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--arena), transparent);
  margin: .4rem 0;
}

.family-name {
  font-family: var(--font-serif);
  font-size: clamp(.95rem, 2.5vw, 1.05rem);
  color: var(--marron-md);
  line-height: 1.5;
}
.family-name span { font-style: italic; color: var(--marron-cl); }

.family-amp {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--beige-oliva);
  line-height: 1;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(180deg, var(--menta), var(--menta-os));
  color: var(--crema);
  text-align: center;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.footer-logo {
  width: clamp(120px, 40vw, 220px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.15));
}

.footer-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
  opacity: .9;
  letter-spacing: .08em;
  color: var(--crema);
}

/* ════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(30,20,10,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none; border: none;
  color: var(--crema);
  font-size: 1.8rem;
  cursor: pointer; opacity: .8;
  transition: opacity .2s;
  /* Área táctil más grande en móvil */
  padding: .5rem;
}
.lightbox-close:hover { opacity: 1; }
#lb-img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
}

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   RESPONSIVE — TABLET
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE
   ════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Secciones más compactas */
  section { padding: 2rem .9rem; }

  /* Galería: 2 columnas en móvil */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }

  /* Globos: caben los 4 sin wrap */
  .balloons-row { gap: .5rem; }
  .balloon { width: 68px; height: 82px; }
  .balloon-number { font-size: 1.3rem; }
  .balloon-string { height: 34px; }
  .balloon-label  { font-size: .68rem; }

  /* Ubicaciones en columna */
  .locations-grid { grid-template-columns: 1fr; }

  /* Familia en columna */
  .family-grid { grid-template-columns: 1fr; }

  /* Formulario */
  .radio-group { flex-direction: column; gap: .8rem; }
  .rsvp-card   { padding: 1.2rem; }

  /* Mesa de regalos: tarjeta ancha */
  .gift-card { max-width: 100%; padding: 1.4rem 1rem; }
  .gifts__store-logo { width: clamp(80px, 50%, 150px); }

  /* Footer logo */
  .footer-logo { width: clamp(100px, 52vw, 180px); }

  /* Mensaje: padding reducido, texto no tan chico */
  .message-card { padding: 1.2rem; }
  .message-text { font-size: .97rem; line-height: 1.8; }
  .quote-mark   { font-size: 3rem; }

  /* Lightbox: botón cierre más accesible */
  .lightbox-close { top: .6rem; right: .8rem; font-size: 2rem; }

  /* Imagen comunion en header */
  .header-comunion-img { width: clamp(60px, 20vw, 60px); }

  /* Side bunnies más pequeños */
  .side-bunny { width: clamp(36px, 8vw, 54px); opacity: .38; }
}

@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
  .balloon { width: 58px; height: 70px; }
  .balloon-number { font-size: 1.1rem; }
  .section-title { font-size: 1.7rem; }
}

/* ════════════════════════════════════════
   VIDEO SECTION
   ════════════════════════════════════════ */
.video-section {
  background: linear-gradient(160deg, rgba(238,235,223,.96) 0%, rgba(231,207,172,.7) 100%);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(100,70,30,.25), 0 0 0 3px var(--arena);
  background: #1a1209;
  aspect-ratio: 16 / 9;
}

/* Si el video es vertical (9:16) descomenta esto:
.video-wrapper { aspect-ratio: 9 / 16; max-width: 360px; }
*/

.main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay con botón play personalizado */
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg,
    rgba(30,18,6,.35) 0%,
    rgba(100,70,30,.2) 100%);
  transition: opacity .3s;
  pointer-events: auto;
}

.video-overlay.hidden-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  width: clamp(64px, 16vw, 90px);
  height: clamp(64px, 16vw, 90px);
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.9);
  background: linear-gradient(135deg,
    rgba(204,157,113,.85),
    rgba(151,122,78,.9));
  color: #fff;
  font-size: clamp(1.4rem, 5vw, 2rem);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transition: transform .2s, box-shadow .2s;
  padding-left: 4px; /* óptico para el triángulo */
}

.video-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(0,0,0,.45);
}

@media (max-width: 600px) {
  .video-wrapper {
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(100,70,30,.22), 0 0 0 2px var(--arena);
  }
}