/*
 Theme Name:   Astra Child
 Template:     astra
*/

/* === Flecha scroll-down === */
.scroll-down {
  position: absolute;
  bottom: 20px;             /* 👈 siempre al fondo del hero */
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  animation: bounce 1.5s infinite;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 2;
}

.scroll-down:hover {
  transform: translateX(-50%) translateY(5px);
}

/* Animación de rebote */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* === HERO COVER === */
.hero-cover {
  position: relative;  /* 👈 ya no sticky en ningún dispositivo */
  height: 85vh;
  background: url("https://bodaaleychris.es/wp-content/uploads/2025/09/mainhero-1.jpg") no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

/* Imagen distinta en desktop */
@media (min-width: 769px) {
  .hero-cover {
    background: url("https://bodaaleychris.es/wp-content/uploads/2025/09/desktop.jpg") no-repeat center/cover;
  }
}

/* === Texto dentro del hero === */
.hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  margin-top: 400px; /* 👈 ajusta según necesidad */
}

.hero-text h1 {
  font-family: 'Bentham', serif;
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 4rem);
  color: #fff;
  margin-bottom: 60px;

  /* 👇 control en móviles */
  padding-inline: 20px;   
  max-width: 90%;         
  margin-left: auto;
  margin-right: auto;
}

/* === Secciones debajo del hero === */
.section {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 60px 10px;
}

.section p { 
  max-width: 720px; 
  margin: 0 auto; 
  font-family: 'Quicksand', sans-serif; 
  line-height: 1.6; 
  color: #555; 
}

.section h2 { 
  font-family: 'Playfair Display', serif; 
  color: #9b6a56; 
  margin: 0 0 12px; 
}








/* Contenedor del párrafo debajo del Hero-ESTAS INVITADO A NUESTRA BODA..... */
.invite-card {
  width: 100%;          /* 👈 se expande de borde a borde */
  min-height: 80px;   /* 👈 ajusta el mínimo */
  margin: 0 auto;
  display: grid;
  place-items: center;
  align-items: center; /* centra verticalmente el texto */

  /* 👇 espacio IGUAL arriba y abajo */
  padding-block: 50px;          /* = padding-top:60px + padding-bottom:60px */
  box-sizing: border-box;
  background: #fff;     /* 👈 ahora sí toda la franja es blanca */
  border: none;
  box-shadow: none;
}

.invite-card p {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.5;
  letter-spacing: .2px;
  max-width: clamp(28ch, 70vw, 58ch);
  text-align: center;
  font-family: 'Quicksand', sans-serif; /* 👈 texto base */
  font-weight: 300;
  color: #555555;  /* 👈 aquí defines el color */
}


/* === COUNTDOWN === */
#countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;

  /* 👇 espaciado controlado */
  margin: 0;              /* quita espacio arriba/abajo */
  padding: 20px 10px;     /* espacio interno del rectángulo */

  background-color: #faf8f6; /* fondo */
  border-radius: 0;          /* 👈 sin bordes redondeados */
  width: 100%;               /* 👈 ocupa todo el ancho */
  box-sizing: border-box;
}

#countdown div {
  text-align: center;
}

#countdown strong {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 2.5rem;
  color: #AA8B56;
  display: block;
}

#countdown span {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000;
}



        /* === FECHA PRINCIPAL === */
        .fecha-boda .subtitle {
            font-size: 1rem;
            font-style: italic;
            color: #b49a6a;
            margin-bottom: 10px;
        }
        .fecha-boda .fecha {
            font-size: 2rem;
            letter-spacing: 2px;
            color: #000;
            margin: 0;
        }

        /* === CRONOGRAMA === */
        .cronograma .evento {
            margin: 40px 0;
        }
        .titulo-evento {
            font-family: 'Marck Script', cursive;
            font-size: 2rem;
            color: #000;
            margin: 0;
        }
        .hora {
            font-size: 1.2rem;
            font-style: italic;
            color: #b49a6a;
            margin-top: 8px;
        }
        .divider {
            border: none;
            border-top: 1px solid #ddd;
            width: 80%;
            margin: 30px auto;
        }

        /* === RESPONSIVE === */
        @media (min-width: 769px) {
            .hero { height: 960px; }
            .hero-text h1 { font-size: 3rem; }
            #countdown strong { font-size: 3rem; }
        }
        @media (min-width: 1025px) {
            .hero { height: 100vh; }
        }
        
        
/* ==========================
   POPUP AUDIO (inicial)
========================== */
#audio-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

#audio-popup .popup-content {
  background: #fff;
  padding: 30px 22px;
  border-radius: 16px;
  text-align: center;
  max-width: 340px;
  position: relative;
}

#audio-popup .close-popup {
  position: fixed;
  top: 20px;
  right: 25px;
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 100000;
  transition: 0.3s;
}
#audio-popup .close-popup:hover {
  color: #b49a6a;
}

/* Control flotante música */
#audio-control {
  position: fixed;
  bottom: 20px; left: 20px;
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 99998;
}
#audio-control img { width: 28px; height: 28px; }

/* ==========================
   TIPOGRAFÍAS & TEXTOS
========================== */
body {
  font-family: 'Quicksand', sans-serif;
  color: #555;
}

p {
  font-family: 'Quicksand', sans-serif;
  color: #555;
  text-align: center;
}

h1.heading-boda, 
h2.heading-boda, 
h3.heading-boda, 
h4.heading-boda {
  font-family: 'Great Vibes', cursive !important;
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.2;
  color: #AA8B56;
  text-align: center;
  margin-bottom: 15px;
}

.subheading-boda {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #AA8B56;
  margin: 10px 0;
  text-align: center;
}

/* ==========================
   BOTONES
========================== */
.btn-rsvp,
.btn-vermas,
.btn-ver-mas {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 30px;
  background-color: #AA8B56;
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
}
.btn-rsvp:hover,
.btn-vermas:hover,
.btn-ver-mas:hover {
  background-color: #5c4633;
  color: #fff;
}

/* ==========================
   SECCIONES
========================== */
.section.invite-card {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.countdown-band {
  background: #faf8f6;
  padding: 40px 20px;
  text-align: center;
}

#countdown {
  width: 100%;
  margin: 0 auto;
}

/* REGALOS */
.info-boda {
  background: #fff;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.texto-regalos,
.texto-cuenta {
  font-family: 'Quicksand', sans-serif;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* SAVE THE DATE */
.save-date {
  position: relative;
  z-index: 0 !important;  /* 👈 fuerza que quede abajo del overlay */
  background: #f7f4f2;
}

.save-date-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.05);
}
.save-date-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  background: #fff;       /* marco blanco */
  padding: 15px;          /* grosor del marco */
  box-sizing: border-box;
}



.save-date-text {
  padding: 20px;
  text-align: center;
}
.save-date-text h2 {
  font-family: 'Playfair Display', serif;
  color: #AA8B56;
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.save-date-text p { font-size: 1rem; margin: 8px 0; }
.calendar-btn {
  background: #9b6a56;
  color: #fff;
  padding: 10px 20px;
  border: none;
  margin-top: 15px;
  cursor: pointer;
}
.calendar-btn:hover { background: #7c5241; }
@media (min-width: 768px) {
  .save-date-container { flex-direction: row; }
  .save-date-text { flex: 1; text-align: left; padding: 40px; }
  .save-date-image { flex: 1; }
}


.calendar-buttons {
  display: flex;
  justify-content: center;  /* centra horizontal */
  gap: 10px;                /* espacio entre iconos */
  margin-top: 20px;         /* separación con el texto */
}

.calendar-buttons a img {
  display: block;
  width: 50px;    /* 👈 tamaño fijo */
  height: auto;   /* mantiene proporción */
}



/* === Código de Vestimenta === */
.dress-code {
  background: #f8f5f2;   /* Beige */
  padding: 40px 20px;
}

.dress-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Imagen */
.dress-code-image img {
  width: 100%;
  height: auto;
  margin-bottom: 25px;    /* separa del heading */
  border-radius: 4px;
}

/* Texto */
.dress-code-text {
  text-align: center; /* Mobile por defecto */
}

.dress-code-text .btn-ubicacion {
  display: inline-block;
  margin: 20px auto 0; /* centrado */
}

.dress-code-text h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: #AA8B56;
  font-family: 'Playfair Display', serif;
}

.dress-code-text p {
  margin: 8px 0;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  color: #555;
}

/* === Desktop === */
@media (min-width: 768px) {
  .dress-code-container {
    flex-direction: row;  /* imagen izquierda, texto derecha */
    align-items: center;
    gap: 40px;
    padding: 60px;        /* márgenes similares a save-date */
  }

  .dress-code-image,
  .dress-code-text {
    flex: 1;
  }

  .dress-code-text {
    text-align: center;   /* centrado también en desktop */
  }
}



/* ==========================
   POPUP GLOBAL
========================== */
/* Overlay general */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 99999999 !important; /* 👈 aún más alto que todo */
}

/* Caja del popup */
.popup-card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.3s ease;

  max-height: 90vh;   /* 👈 no más alto que pantalla */
  overflow-y: auto;   /* 👈 scroll interno si hace falta */
}

/* Botón cerrar */
.popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #9b6a56;
  transition: color 0.3s;
}
.popup-close:hover {
  color: #5c4633;
}



@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}


/* Botón ubicación */
.btn-ubicacion {
  display: inline-block;
  margin: 20px auto 0;     /* 👈 centrado automático */
  padding: 12px 30px;
  background-color: #AA8B56;  /* marrón elegante */
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;       /* 👈 pill shape */
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-ubicacion:hover {
  background-color: #F0EBCE; /* tono más oscuro */
  color: #fff;
}

.evento {
  text-align: center; /* 👈 centra links, párrafos y botones */
}


/* === POPUP DE MÚSICA === */
#music-popup {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

#music-popup .popup-card {
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 40px 30px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.popup-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

.popup-inicial {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: #9b6a56;
  margin: 0;
}

.popup-nombres {
  font-family: 'Bentham', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #AA8B56;
  margin-top: 5px;
}

.popup-divider {
  width: 60%;
  height: 1px;
  background: #c7b299;
  margin: 20px auto;
}

.popup-sub {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  color: #666;
  margin-bottom: 25px;
}

/* Botones */
.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popup-btn {
  background: #b59a77;
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.popup-btn:hover {
  background: #967d5c;
}

.popup-btn.secondary {
  background: #cdc1a2;
}
.popup-btn.secondary:hover {
  background: #9b8d69;
}

#audio-control {
  display: none; /* oculto al inicio */
}


#audio-control:hover {
  background: rgba(255,255,255,1);
}

#audio-control img {
  width: 26px;
  height: 26px;
  pointer-events: none; /* no bloquea clic */
}


/* === CONTROL FLOTANTE === */
#audio-control {
  display: none; /* oculto hasta que cierren el popup */
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: none; /* visible solo después */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 9999;
}

#audio-control img {
  width: 28px;
  height: 28px;
}





/* Ocultar el menú de Astra y clase del menu nuevo */
.ast-primary-header,
.ast-header-break-point .main-header-menu {
  display: none !important;
}


/* === Botón hamburguesa === */
.menu-toggle {
  width: 30px;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  height: 3px;
  margin: 6px 0;
  background: #5c4633; /* marrón de tu branding */
  border-radius: 2px;
  transition: 0.3s;
}

/* === Menú off-canvas === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100%;
  background: #faf8f6; /* beige claro */
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 1099;
}

.mobile-menu.active {
  left: 0;
}

/* Header del menú */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-logo {
  max-height: 40px;
}

.menu-close {
  font-size: 2rem;
  cursor: pointer;
  color: #9b6a56;
}

/* Links del menú */
.mobile-menu ul {
  list-style: none;
  padding: 40px 0 0;
  margin: 0;
}

.mobile-menu li {
  margin-bottom: 20px;
}

.mobile-menu a {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  text-decoration: none;
  color: #5c4633;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #9b6a56;
}


/* Contenedor del header */
.custom-header .header-container {
  display: flex;
  justify-content: space-between; /* logo izquierda - hamburguesa derecha */
  align-items: center;
  padding: 10px 20px;
}

/* Logo alineado a la izquierda */
.custom-header .site-logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* Botón hamburguesa */
#menuToggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

#menuToggle span {
  display: block;
  height: 3px;
  background-color: #5c4633; /* 👈 mismo color que el botón RSVP */
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Menú lateral */
#mobileMenu {
  position: fixed;
  top: 0;
  right: -100%; /* oculto inicialmente */
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fdfaf7; /* beige claro */
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 9999;
  padding: 20px;
}

#mobileMenu.active {
  right: 0;
}

#mobileMenu .menu-close {
  font-size: 28px;
  cursor: pointer;
  color: #5c4633;
  float: right;
}

/* Items del menú */
#mobileMenu .custom-menu {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

#mobileMenu .custom-menu li {
  margin: 15px 0;
}

#mobileMenu .custom-menu li a {
  text-decoration: none;
  font-size: 18px;
  color: #5c4633;
  transition: color 0.3s;
}

#mobileMenu .custom-menu li a:hover {
  color: #a88a6a; /* tono más claro */
}


/* === CLASE DEL FOOTER === */

.footer-text {
  font-family: 'Bentham', serif;
  font-size: 0.9rem;                     /* 👈 tamaño ajustable */
  color: #5c4633;                        /* 👈 marrón elegante */
  text-align: center;                    /* 👈 centrado */
}

.footer-text a {
  color: #AA8B56;                        /* 👈 dorado elegante */
  text-decoration: none;
  font-weight: 500;
}

.footer-text a:hover {
  text-decoration: underline;
}




/* === BOTÓN FLECHA SUBIR estilo controlador música === */
#ast-scroll-top {
  background-color: #fff !important;   /* 👈 fondo blanco */
  color: #000 !important;              /* 👈 flecha negra */
  border: 2px solid #fff;              /* 👈 borde blanco (se mezcla con el fondo) */
  border-radius: 50%;                  /* 👈 círculo */
  width: 50px;
  height: 50px;
  line-height: 46px;                   /* 👈 centra la flecha */
  text-align: center;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* 👈 sutil sombra como en el botón de play */
  right: 20px;
  bottom: 20px;
  transition: all 0.3s ease;
}

/* Hover */
#ast-scroll-top:hover {
  background-color: #AA8B56 !important; /* 👈 dorado elegante al hover */
  color: #fff !important;               /* 👈 flecha blanca al hover */
  border-color: #AA8B56 !important;     /* 👈 borde dorado al hover */
}


/* === CRONOGRAMA === */

/* Contenedor */
.cronograma {
  text-align: center;
  padding: 50px 20px;
  background: #faf8f6; /* beige claro */
}

/* Título */
.cronograma-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #AA8B56; /* dorado elegante */
  margin-bottom: 30px;
}

/* Lista */
.cronograma-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  color: #5c4633;
}

.cronograma-list li {
  margin: 12px 0;
}

/* Negrita para los títulos */
.cronograma-list span {
  font-weight: 00;
  margin-left: 5px;
}






/* === FOOTER === */
.custom-footer {
  background: #faf8f6;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* LOGO tamaño */
.footer-logo img {
  max-height: 40px;   /* 👈 controla altura del logo */
  width: auto;
}

/* TEXTO tamaño */
.footer-copy {
  font-family: 'Great Vibes', sans-serif;
  font-size: 0.9rem;   /* 👈 controla tamaño del texto */
  color: #5c4633;
}

.footer-copy a {
  color: #9b6a56;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;  /* 👈 incluso puedes controlar solo el link */
}

.footer-copy a:hover {
  text-decoration: underline;
}





