/* ==========================================================================
   BODA ESTELA & MANUEL — ESTILO MEXICANO ELEGANTE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* --- Custom Properties / Design Tokens --- */
:root {
  /* Tipografía */
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Paleta Elegante Mexicana */
  --color-primary-script: #2d2926;
  --color-script-hover: #d81b60; /* Rosa Mexicano */
  --color-text-dark: #2c2724;
  --color-text-muted: #5e5954;
  --color-text-light: #8a847e;

  /* Acentos de Color */
  --color-rosa-mexicano: #d81b60;
  --color-rosa-dark: #b71540;
  --color-rosa-soft: rgba(216, 27, 96, 0.12);

  --color-gold: #c5a059; /* Oro cálido de gala */
  --color-gold-hover: #b38e46;
  --color-gold-soft: rgba(197, 160, 89, 0.22);
  --color-gold-border: rgba(197, 160, 89, 0.45);

  --color-talavera: #154360; /* Azul Talavera */
  --color-talavera-dark: #0e2d42;
  --color-talavera-soft: rgba(21, 67, 96, 0.12);

  --color-agave: #3d6b4c; /* Verde Agave */
  --color-agave-hover: #32583e;

  --color-marigold: #e67e22; /* Cempasúchil / Ocre */

  /* Tarjetas y Contenedores */
  --color-card-bg: rgba(255, 255, 255, 0.92);
  --color-card-glass: rgba(255, 255, 255, 0.85);
  --color-border-subtle: #e6dfd5;
  --color-border-light: rgba(0, 0, 0, 0.06);

  /* Sombras */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.12);
  --shadow-rosa: 0 6px 20px rgba(216, 27, 96, 0.25);
  --shadow-gold: 0 6px 20px rgba(197, 160, 89, 0.25);

  /* Bordes */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  line-height: 1.6;
  background-color: #f8f6f0;
  background-image: url('../assets/images/paper-texture.jpg');
  background-repeat: repeat;
  background-size: 500px auto;
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Navigation Bar --- */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-normal);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 75%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navigation.scrolled {
  padding: 12px 40px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.logo-link {
  display: flex;
  align-items: center;
  z-index: 1002;
}

.logo-text {
  font-family: var(--font-script);
  font-size: 38px;
  color: var(--color-primary-script);
  line-height: 1;
  transition: color var(--transition-fast);
}

.logo-text sub {
  font-size: 0.6em;
  vertical-align: sub;
  color: var(--color-rosa-mexicano);
}

.logo-link:hover .logo-text {
  color: var(--color-script-hover);
}

.menu {
  display: flex;
  align-items: center;
}

.navigation-items {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.navigation-item {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-dark);
  opacity: 0.8;
  padding: 6px 0;
  position: relative;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.navigation-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-rosa-mexicano);
  transition: width var(--transition-normal);
}

.navigation-item:hover {
  opacity: 1;
  color: var(--color-rosa-mexicano);
}

.navigation-item:hover::after {
  width: 100%;
}

.navigation-item.confirmar-btn {
  background-color: var(--color-rosa-mexicano);
  color: #fff !important;
  opacity: 1;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gold);
  box-shadow: 0 3px 10px rgba(216, 27, 96, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.navigation-item.confirmar-btn:hover {
  background-color: var(--color-rosa-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(216, 27, 96, 0.35);
}

.navigation-item.confirmar-btn::after {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  cursor: pointer;
  z-index: 1002;
  padding: 4px;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-dark);
  border-radius: 2px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 820px;
  min-height: 750px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding-bottom: 55px;
  background-color: #242220;
  background-image: 
    linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%),
    url('../assets/images/torn-paper-horizontal.png'),
    url('../assets/images/hero-couple.jpg');
  background-position: center, 50% bottom, 50% 50%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, cover;
  background-attachment: scroll, fixed, fixed;
  overflow: hidden;
}

/* Delicate Papel Picado Garland across Top (3 banners covering full width) */
.hero-papel-picado {
  position: absolute;
  top: 74px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.hero-papel-banner {
  flex: 0 0 33.34%;
  width: 33.34%;
  max-width: 33.34%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 20px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-title {
  font-family: var(--font-script);
  font-size: clamp(62px, 8vw, 110px);
  font-weight: 400;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 6px;
}

.hero-title sub {
  font-size: 0.55em;
  vertical-align: middle;
  color: #f9d776;
}

.hero-date {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #f7e387;
}

/* --- RSVP Wrapper --- */
.rsvp-wrapper {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 45px;
  padding-bottom: 60px;
}

/* --- Countdown Timer --- */
.countdown-section {
  display: flex;
  justify-content: center;
  margin-bottom: 75px;
  position: relative;
  z-index: 10;
}

.countdown-card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 32px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.countdown-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 85px;
}

.countdown-number {
  font-size: 34px;
  font-weight: 600;
  color: var(--color-rosa-mexicano);
  line-height: 1.1;
  margin-bottom: 6px;
}

.countdown-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background-color: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  min-width: 75px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* --- RSVP & Event Details Card --- */
.rsvp-section {
  padding: 0;
  position: relative;
  z-index: 5;
}

.rsvp-card-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Option 1: Mexican Folk-Art Floral Frame Behind Card */
.rsvp-frame-underlay {
  position: absolute;
  inset: -46px -36px;
  background-image: url('../assets/images/frame-mexican-desktop.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.08));
}

.rsvp-card {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 60px 80px;
  text-align: center;
  box-shadow: 4px 4px 25px rgba(0, 0, 0, 0.07);
}

.rsvp-card::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 7px;
  right: 7px;
  bottom: 7px;
  border: 1px solid var(--color-gold-border);
  pointer-events: none;
}

@media (max-width: 768px) {
  .rsvp-card-wrapper {
    width: calc(100% - 36px);
    max-width: 340px;
    margin: 0 auto;
  }

  .rsvp-card {
    padding: 35px 16px;
  }

  .rsvp-frame-underlay {
    inset: -28px -18px;
    background-image: url('../assets/images/frame-mexican-phone.png');
    background-size: 100% 100%;
  }
}

/* Official Wedding Crest in RSVP Card */
.rsvp-crest-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.mexican-wedding-crest {
  width: 175px;
  height: 175px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.06));
  transition: transform var(--transition-normal);
}

.mexican-wedding-crest:hover {
  transform: scale(1.04);
}

.rsvp-card h1 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 16px;
  color: var(--color-text-dark);
}

.rsvp-lead-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 35px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 25px auto;
}

.rsvp-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-rosa-mexicano);
  margin-top: 26px;
  margin-bottom: 8px;
}

.rsvp-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.rsvp-card .venue-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-talavera);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.maps-link:hover {
  color: var(--color-rosa-mexicano);
}

.dress-code-link {
  display: inline-block;
  color: var(--color-talavera);
  font-weight: 700;
  text-decoration: underline;
  margin-top: 6px;
  transition: color var(--transition-fast);
}

.dress-code-link:hover {
  color: var(--color-rosa-mexicano);
}

.rsvp-card h5 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ad3333;
  margin-top: 25px;
  margin-bottom: 6px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-rosa-mexicano);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gold);
  margin-top: 28px;
  box-shadow: 0 4px 14px rgba(216, 27, 96, 0.3);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--color-rosa-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(216, 27, 96, 0.42);
}

/* --- Wedding Program Section --- */
.programa-section {
  position: relative;
  padding: 95px 0 105px;
  overflow: hidden;
  background-image: 
    url('../assets/images/muneca-lele.png'),
    url('../assets/images/luchador-mask.png');
  background-position: 
    left -70px center,
    right -70px center;
  background-repeat: no-repeat, no-repeat;
  background-size: 550px auto, 490px auto;
}

@media (max-width: 1200px) {
  .programa-section {
    background-size: 420px auto, 380px auto;
    background-position: left -100px center, right -100px center;
  }
}

.section-title {
  text-align: center;
  font-size: 38px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 55px;
  height: 2px;
  background-color: var(--color-gold);
  margin: 14px auto 0;
}

.programa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.programa-card {
  text-align: center;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  padding: 18px 18px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.programa-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.programa-img-wrap {
  width: 100%;
  height: 270px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  position: relative;
}

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

.programa-card:hover .programa-img-wrap img {
  transform: scale(1.05);
}

.programa-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.time-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-rosa-mexicano);
  background-color: var(--color-rosa-soft);
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* --- Parallax Photo Divider --- */
.parallax-banner {
  position: relative;
  height: 460px;
  background-color: #2b2b2b;
  background-image: url('../assets/images/torn-paper-horizontal.png'), url('../assets/images/parallax-divider.jpg');
  background-position: 50%, 50% 40%;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Gift Registry Section (Mesa de Regalos) --- */
.registry-section {
  position: relative;
  padding: 95px 0;
  background-image: url('../assets/images/tequila-bottle.png');
  background-position: left 45px center;
  background-repeat: no-repeat;
  background-size: 130px auto;
}

.registry-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.registry-content {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 45px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* Tequila Shot at Bottom Right Corner closest to Couple Photo */
.tequila-shot-motif {
  position: absolute;
  right: -24px;
  bottom: -22px;
  width: 55px;
  height: auto;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16));
  transform: rotate(-6deg);
  transition: transform var(--transition-fast);
}

.registry-content:hover .tequila-shot-motif {
  transform: rotate(0deg) scale(1.08);
}

.registry-content h2 {
  font-size: 34px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.registry-content p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Elegant Envelope Motif replacing button - Centered & Clean (No border/box) */
.registry-envelope-motif {
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.envelope-motif-graphic {
  filter: drop-shadow(0 2px 8px rgba(216, 27, 96, 0.15));
  transition: transform var(--transition-fast);
}

.registry-envelope-motif:hover .envelope-motif-graphic {
  transform: scale(1.08);
}

.envelope-motif-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-rosa-mexicano);
}

.envelope-motif-sub {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.envelope-motif-flourish {
  font-size: 11px;
  color: var(--color-gold);
  letter-spacing: 6px;
  margin-top: 2px;
}

.registry-photo-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gold-border);
}

.registry-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Lodging / Accommodations Section --- */
.hospedaje-section {
  padding: 90px 0 100px;
  position: relative;
}

.hotels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 440px));
  justify-content: center;
  gap: 36px;
}

@media (max-width: 768px) {
  .registry-content {
    padding: 30px 20px;
  }
  .tequila-shot-motif {
    right: -12px;
    bottom: -16px;
    width: 44px;
  }
  .hotels-grid {
    grid-template-columns: 1fr;
  }
  .hotel-sombrero-motif {
    width: 140px;
  }
  .hotel-sombrero-motif.sombrero-left {
    top: -36px;
    left: -24px;
  }
  .hotel-sombrero-motif.sombrero-right {
    top: -36px;
    right: -24px;
  }
}

.hotel-card {
  position: relative;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hotel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

/* Mexican Sombrero sitting on the top corner of the frame (Enlarged ~2.5x) */
.hotel-sombrero-motif {
  position: absolute;
  width: 180px;
  height: auto;
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
  transition: transform var(--transition-normal);
}

.hotel-sombrero-motif.sombrero-left {
  top: -48px;
  left: -40px;
  transform: rotate(-14deg);
}

.hotel-card:hover .hotel-sombrero-motif.sombrero-left {
  transform: rotate(-18deg) scale(1.06);
}

.hotel-sombrero-motif.sombrero-right {
  top: -48px;
  right: -40px;
  left: auto;
  transform: scaleX(-1) rotate(-14deg);
}

.hotel-card:hover .hotel-sombrero-motif.sombrero-right {
  transform: scaleX(-1) rotate(-18deg) scale(1.06);
}

.hotel-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

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

.hotel-card:hover .hotel-img-wrap img {
  transform: scale(1.05);
}

.hotel-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.hotel-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-talavera);
  text-decoration: underline;
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.hotel-link:hover {
  color: var(--color-rosa-mexicano);
}

.hotel-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Photo Carousel / Gallery Section --- */
.gallery-section {
  padding: 90px 0 100px;
  background-color: rgba(255, 255, 255, 0.1); /* 90% transparent */
}

.slider-wrapper {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.slider-track-container {
  width: 100%;
  height: 560px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-gold-border);
  background-color: rgba(255, 255, 255, 0.1); /* 90% transparent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 14px;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-gold-border);
}

.slider-btn:hover {
  background-color: #ffffff;
  color: var(--color-rosa-mexicano);
  transform: translateY(-50%) scale(1.08);
}

.slider-btn.prev { left: -23px; }
.slider-btn.next { right: -23px; }

.slider-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.slider-dot,
.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.slider-dot.active,
.slider-dots .dot.active {
  background-color: var(--color-rosa-mexicano);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(216, 27, 96, 0.4);
}

/* --- Gratitude Section --- */
.gratitude-section {
  position: relative;
  padding: 100px 0 110px;
  overflow: visible;
}

.gratitude-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  padding: 55px 65px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}

/* Colibris on Top Corners: Left and Right */
.gratitude-colibri {
  position: absolute;
  width: 105px;
  height: auto;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.14));
  transition: transform 0.4s ease;
}

.gratitude-colibri.colibri-left {
  top: -55px;
  left: -48px;
}

.gratitude-colibri.colibri-right {
  top: -55px;
  right: -48px;
}

.gratitude-card:hover .gratitude-colibri.colibri-left {
  transform: translateY(-4px) rotate(-3deg);
}

.gratitude-card:hover .gratitude-colibri.colibri-right {
  transform: translateY(-4px) rotate(3deg);
}

@media (max-width: 768px) {
  .gratitude-section {
    padding: 70px 0 80px;
  }
  .gratitude-card {
    padding: 35px 22px;
    max-width: 90%;
  }
  .gratitude-colibri {
    width: 75px;
  }
  .gratitude-colibri.colibri-left {
    top: -38px;
    left: -20px;
  }
  .gratitude-colibri.colibri-right {
    top: -38px;
    right: -20px;
  }
}

.gratitude-card::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 7px;
  right: 7px;
  bottom: 7px;
  border: 1px solid var(--color-gold-soft);
  pointer-events: none;
}

.gratitude-card h2 {
  font-family: var(--font-script);
  font-size: 48px;
  color: var(--color-primary-script);
  margin-bottom: 20px;
}

.gratitude-card p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* --- Footer --- */
.footer {
  background-color: #201d1b;
  color: #ffffff;
  padding: 55px 0 45px;
  text-align: center;
  border-top: 1px solid var(--color-gold-border);
}

.footer-monogram {
  font-family: var(--font-script);
  font-size: 46px;
  color: #f7e387;
  margin-bottom: 10px;
}

.footer-monogram sub {
  font-size: 0.6em;
  vertical-align: sub;
  color: var(--color-rosa-mexicano);
}

.footer p {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9c3b8;
}

/* --- Floating Audio Player Widget --- */
.audio-player-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.audio-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-gold);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-rosa-mexicano);
  transition: all var(--transition-fast);
}

.audio-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
  color: var(--color-rosa-dark);
}

.audio-btn.playing {
  background-color: var(--color-rosa-mexicano);
  color: #ffffff;
  animation: pulse-ring 2s infinite;
}

.audio-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(216, 27, 96, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(216, 27, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 27, 96, 0); }
}

.audio-tooltip {
  position: absolute;
  bottom: 60px;
  right: 0;
  background-color: rgba(32, 29, 27, 0.92);
  color: #ffffff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-fast);
}

.audio-player-widget:hover .audio-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* --- DRESS CODE SUBPAGE STYLES --- */
.subpage-header {
  padding: 130px 0 50px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-talavera);
  margin-bottom: 24px;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--color-rosa-mexicano);
}

.dress-title {
  font-size: 42px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 14px;
}

.dress-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

.palette-section {
  padding: 20px 0 60px;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.palette-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gold-border);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.palette-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.avoid-section {
  padding: 40px 0 80px;
}

.avoid-section-title {
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

.avoid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

.avoid-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.avoid-img-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.avoid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avoid-label {
  padding: 14px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* --- Responsive Media Queries --- */
@media (max-width: 991px) {
  .navigation {
    padding: 15px 25px;
  }
  
  .navigation-items {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }

  .navigation-items.open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .programa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hotels-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .registry-grid {
    grid-template-columns: 1fr;
  }

  .palette-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .avoid-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
}

@media (max-width: 767px) {
  .hero {
    height: 640px;
    min-height: 560px;
    padding-bottom: 40px;
    background-attachment: scroll;
  }

  .hero-papel-picado {
    top: 60px;
  }

  .hero-papel-banner {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  }

  .hero-papel-banner:nth-child(3) {
    display: none;
  }

  .countdown-card {
    padding: 14px 16px;
    gap: 8px;
  }

  .countdown-cell {
    min-width: 60px;
  }

  .countdown-number {
    font-size: 24px;
  }

  .countdown-badge {
    font-size: 11px;
    padding: 3px 8px;
    min-width: 55px;
  }

  .rsvp-card {
    padding: 40px 24px;
  }

  .mexican-wedding-crest {
    width: 140px;
    height: 140px;
  }

  .programa-section {
    background-size: 260px auto, 230px auto;
    background-position: left -50px 10%, right -50px 90%;
  }

  .programa-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .avoid-grid {
    grid-template-columns: 1fr;
  }

  .slider-track-container {
    height: 460px;
  }

  .slide {
    padding: 8px;
  }

  .gratitude-section {
    padding: 70px 0 80px;
  }

  .gratitude-card {
    padding: 40px 20px;
  }
}

/* --- RSVP Pop-up Modal --- */
.rsvp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 18, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rsvp-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.rsvp-modal-card {
  position: relative;
  background: #fffcf9 url('../assets/images/paper-texture.jpg') repeat;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 38px 34px;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rsvp-modal-overlay.active .rsvp-modal-card {
  transform: translateY(0) scale(1);
}

.rsvp-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.rsvp-modal-close:hover {
  background: var(--color-rosa-mexicano);
  color: #ffffff;
  border-color: var(--color-rosa-mexicano);
  transform: rotate(90deg);
}

.rsvp-modal-header {
  text-align: center;
  margin-bottom: 26px;
}

.rsvp-modal-badge {
  display: inline-block;
  background: rgba(216, 27, 96, 0.08);
  color: var(--color-rosa-mexicano);
  border: 1px solid rgba(216, 27, 96, 0.25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.rsvp-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.rsvp-modal-subtitle {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Modal Form Controls */
.rsvp-form .form-group {
  margin-bottom: 20px;
}

.rsvp-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.rsvp-form label .required {
  color: var(--color-rosa-mexicano);
}

.rsvp-form label .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 12px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  fill: var(--color-gold);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 42px !important;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="tel"],
.rsvp-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-dark);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  border-color: var(--color-rosa-mexicano);
  box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.12);
}

.field-hint {
  display: block;
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Guest Counter Controls */
.guest-counter-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  width: fit-content;
}

.counter-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  background: #ffffff;
  color: var(--color-gold);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.counter-btn:hover {
  background: var(--color-gold);
  color: #ffffff;
}

.guest-counter-wrap input {
  width: 32px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--color-text-dark);
  outline: none;
}

.counter-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-left: 1px solid var(--color-gold-border);
  padding-left: 12px;
}

/* Events Checkbox Grid */
.events-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.event-check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.event-check-card input[type="checkbox"] {
  display: none;
}

.check-box-custom {
  display: inline-block;
  width: 18px;
  min-width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--color-gold-border);
  background: #ffffff;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.event-check-card input[type="checkbox"]:checked + .check-box-custom {
  background: var(--color-rosa-mexicano);
  border-color: var(--color-rosa-mexicano);
}

.event-check-card input[type="checkbox"]:checked + .check-box-custom::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.event-check-card:has(input:checked) {
  border-color: rgba(216, 27, 96, 0.4);
  background: rgba(216, 27, 96, 0.02);
}

.event-info {
  display: flex;
  flex-direction: column;
}

.event-info strong {
  font-size: 13px;
  color: var(--color-text-dark);
}

.event-info span {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

/* Form Actions */
.form-actions {
  margin-top: 26px;
  text-align: center;
}

.rsvp-submit-btn {
  width: 100%;
  padding: 14px 28px;
  font-size: 15px;
  cursor: pointer;
}

.rsvp-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Success View */
.rsvp-success-view {
  text-align: center;
  padding: 20px 10px;
}

.success-icon-wrap {
  font-size: 46px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(216, 27, 96, 0.2));
}

.rsvp-success-view h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.success-greeting {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-rosa-mexicano);
  margin-bottom: 10px;
}

.success-message {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 20px;
}

.success-summary-box {
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  text-align: left;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .rsvp-modal-card {
    padding: 28px 20px;
  }
  .events-checkbox-grid {
    grid-template-columns: 1fr;
  }
}
