/*
Theme Name: Boda Elegante E&G
Description: Un tema profesional y elegante para una boda inolvidable.
Version: 2.1
*/

/*--------------------------------------------------------------
/** 1. VARIABLES Y ESTILOS GENERALES
--------------------------------------------------------------*/
:root {
  --green-main: #4A604D;     /* Verde oscuro, elegante y sobrio */
  --green-light: #A9C2A4;    /* Verde salvia, para acentos sutiles */
  --gold-accent: #D4C9B4;    /* Un dorado/beige suave para toques de lujo */
  --white-bg: #FFFFFF;       /* Fondo blanco puro como solicitado */
  --light-grey-bg: #F9F9F9; /* Gris muy claro para diferenciar secciones */
  --dark-text: #333333;      /* Negro suave para legibilidad */
  
  --bs-primary: var(--green-main);
  --bs-body-bg: var(--white-bg);
  --bs-body-color: var(--dark-text);
  
  --swiper-theme-color: var(--gold-accent) !important;
  --swiper-pagination-color: var(--gold-accent) !important;

  --font-montserrat: "Montserrat", sans-serif;
  --font-playfair: "Playfair Display", serif;
  --font-great-vibes: "Great Vibes", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; scroll-behavior: smooth; }
body {
  font-family: var(--font-montserrat);
  font-size: 16px; font-weight: 400; line-height: 1.7;
  color: var(--dark-text); margin: 0; background-color: var(--bs-body-bg);
  overflow-x: hidden;
}

a { color: var(--green-main); text-decoration: none; transition: 0.3s color ease-out; }
a:hover { color: var(--gold-accent); }

.lead { font-size: 1.1rem; font-weight: 300; }
.bg-light-grey { background-color: var(--light-grey-bg) !important; }
.padding-large { padding-top: 6em; padding-bottom: 6em; }

@media (max-width: 768px) {
    .padding-large { padding-top: 4em; padding-bottom: 4em; }
    .display-1 { font-size: 3.5rem !important; } .display-3 { font-size: 2.2rem !important; }
}

h1, h2, h3, h4 { font-family: var(--font-playfair); font-weight: 700; color: var(--dark-text); }
.font-great-vibes { font-family: var(--font-great-vibes); }
.font-playfair { font-family: var(--font-playfair); }
.font-montserrat { font-family: var(--font-montserrat); }
.text-green-main { color: var(--green-main) !important; }
.text-gold-accent { color: var(--gold-accent) !important; }

/*--------------------------------------------------------------
/** 2. ANIMACIÓN DE HOJAS
--------------------------------------------------------------*/
.leaf-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; }
.leaf {
    position: absolute; width: 20px; height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,0 C75,25 90,60 100,100 C60,90 25,75 0,50 C25,25 40,10 50,0 Z" fill="%23A9C2A4"/></svg>');
    background-size: contain; background-repeat: no-repeat; opacity: 0.6;
    animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-10vh) translateX(0) rotate(0deg); }
  100% { transform: translateY(110vh) translateX(10vw) rotate(360deg); }
}
.leaf:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: -5s; }
.leaf:nth-child(2) { left: 30%; animation-duration: 20s; animation-delay: -2s; animation: fall2 linear infinite; }
.leaf:nth-child(3) { left: 50%; animation-duration: 12s; animation-delay: -10s; }
.leaf:nth-child(4) { left: 70%; animation-duration: 18s; animation-delay: -7s; animation: fall2 linear infinite; }
.leaf:nth-child(5) { left: 90%; animation-duration: 14s; animation-delay: 0s; }
.leaf:nth-child(6) { left: 5%; animation-duration: 22s; animation-delay: -12s; }
@keyframes fall2 {
  0% { transform: translateY(-10vh) translateX(0) rotate(0deg); }
  100% { transform: translateY(110vh) translateX(-15vw) rotate(-360deg); }
}

/*--------------------------------------------------------------
/** 3. COMPONENTES Y SECCIONES
--------------------------------------------------------------*/
#preloader { display: flex; justify-content: center; align-items: center; position:fixed; z-index:10000; background:var(--white-bg); width:100%; height:100%; }
.loader { display: inline-block; width: 50px; height: 50px; border: 4px solid var(--green-light); border-radius: 50%; border-top-color: var(--green-main); animation: spinner 1s linear infinite; }
@keyframes spinner { to { transform: rotate(360deg); } }

.site-header { z-index: 1000; transition: all 0.4s ease; position: sticky; top: 0; }
.site-header.scrolled { background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.navbar-nav .nav-link { color: var(--dark-text); font-weight: 500; position: relative; padding: 0.5rem 0; margin: 0 1rem; }
.navbar-nav .nav-link::after { content: ''; position: absolute; width: 0%; height: 2px; background-color: var(--gold-accent); left: 50%; transform: translateX(-50%); bottom: -5px; transition: width 0.3s ease-out; }
.navbar-nav .nav-link.active::after, .navbar-nav .nav-link:hover::after { width: 100%; }

.btn { padding: 0.8rem 2.5rem; border-radius: 50px; font-weight: 600; letter-spacing: 1px; transition: all 0.4s ease; text-transform: uppercase; font-family: var(--font-montserrat); }
.btn.btn-medium { padding: 1rem 3.5rem; font-size: 1.1rem; }
.btn.btn-small { padding: 0.7rem 2rem; font-size: 0.9rem; }
.btn.btn-primary { background-color: var(--bs-primary); color: white; border: 1px solid var(--bs-primary); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn.btn-primary:hover { background-color: var(--gold-accent); border-color: var(--gold-accent); color: var(--dark-text); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.btn.btn-outline-dark { border-color: var(--gold-accent); color: var(--gold-accent); background-color: transparent; }
.btn.btn-outline-dark:hover { background: var(--gold-accent); color: var(--dark-text); border-color: var(--gold-accent); transform: translateY(-3px); }

#billboard .banner-item { height: 100vh; min-height: 700px; background-size: cover; background-position: center; }
#billboard .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0.1)); }
#billboard .banner-content { z-index: 2; }
#billboard h1 { font-size: 6rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
#billboard .swiper-pagination { bottom: 30px !important; }

/* =========== NUEVO: ESTILOS PARA EL CALENDARIO =========== */
.calendar-display {
    max-width: 200px;
    margin: 0 auto 3rem auto;
    background-color: var(--white-bg);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.calendar-display .month {
    font-family: var(--font-montserrat);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--green-main);
    color: var(--white-bg);
    padding: 0.6rem;
}
.calendar-display .day {
    font-family: var(--font-playfair);
    font-size: 5rem; font-weight: 700;
    line-height: 1;
    color: var(--dark-text);
    padding-top: 1rem;
}
.calendar-display .year {
    font-family: var(--font-montserrat);
    font-size: 1.2rem;
    color: var(--dark-text);
    padding-bottom: 1rem;
}



.countdown-container .countdown-box { min-width: 150px; background-color: white; border-radius: 10px; padding: 25px !important; box-shadow: 0 5px 25px rgba(0,0,0,0.07); margin: 10px !important; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.countdown-container .countdown-box:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.countdown-container h3 { font-size: 3.5rem; margin-bottom: 0.2rem; }

/* =========== ACTUALIZADO: ESTILOS PARA ICONOS DEL ITINERARIO =========== */
.timeline { position: relative; padding: 2rem 0; }
.timeline::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: var(--gold-accent); }
.timeline-item { position: relative; margin-bottom: 50px; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-icon { position: absolute; top: 15px; width: 20px; height: 20px; background: var(--white-bg); border: 3px solid var(--green-main); border-radius: 50%; z-index: 1; box-shadow: 0 0 0 5px var(--light-grey-bg); }
.timeline-item:nth-child(odd) .timeline-icon { right: -10px; }
.timeline-item:nth-child(even) .timeline-icon { left: -10px; }
.timeline-content { background: white; padding: 30px 25px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.06); transition: all 0.3s ease; }
.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.timeline-event-icon { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 1rem; display: block; }
.timeline-title { color: var(--green-main); font-size: 1.6rem; }
.timeline-time { font-weight: 600; color: var(--gold-accent); }
@media (max-width: 768px) {
    .timeline::before { left: 10px; }
    .timeline-item, .timeline-item:nth-child(even), .timeline-item:nth-child(odd) { width: 100%; left: 0; padding: 0 0 0 40px !important; }
    .timeline-icon, .timeline-item:nth-child(even) .timeline-icon, .timeline-item:nth-child(odd) .timeline-icon { left: 0; }
}

.map-container { border-radius: 1rem; overflow: hidden; border: 5px solid white; }
#galeria img { transition: all 0.3s ease; border: 3px solid transparent; object-fit: cover; height: 300px; width: 100%; }
#galeria img:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-color: var(--gold-accent); }

.gift-option { background-color: white; border: 1px solid #eee; transition: all 0.3s ease; display: flex; flex-direction: column; }
.gift-option:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.icon-lg { width: 64px; height: 64px; }

form .form-control, form .form-select, form .form-check-input { border-color: #e0e0e0; }
form .form-control, form .form-select { padding: 0.8rem 1rem; }
form .form-control:focus, form .form-select:focus, form .form-check-input:checked { border-color: var(--gold-accent); box-shadow: 0 0 0 0.2rem rgba(212, 201, 180, 0.3); }
form .form-check-input:checked { background-color: var(--green-main); border-color: var(--green-main); }
.no-kids-alert { background-color: #eef3e9; border-color: var(--green-light); color: var(--dark-text); }

#footer { background-color: var(--light-grey-bg); border-top: 1px solid #eee; }
#footer .font-great-vibes { font-size: 4rem; text-shadow: 1px 1px 5px rgba(0,0,0,0.1); }

/* Contenedor de las hojas que asegura que no se desborden de la pantalla */
.leaf-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Para que las hojas queden detrás de todo el contenido */
}

/* Estilo individual de las hojas */
.leaf {
    position: absolute;
    width: 20px;   /* Tamaño de la hoja: más pequeña */
    height: 20px;  /* Tamaño de la hoja: más pequeña */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%236B8E23" d="M50,10C35.5,10,24.1,23.3,24.1,39.8c0,11.5,5.1,20.4,12.5,27.1c0,0.1,0,0.2,0,0.3c0,3.6-1.5,7.1-4.3,9.6c-1.3,1.2-1.9,2.8-1.9,4.4c0,3,1.8,5.5,4.2,6.9c2.5,1.4,5.4,1.4,7.9-0.1c2.5-1.4,4.2-4.1,4.2-7.1c0-1.7-0.7-3.3-1.9-4.5c2.7-2.3,4.7-5.1,5.9-8c0.8-2,1.2-4.1,1.2-6.2c0-1.8-0.2-3.6-0.6-5.4c1.6-1.7,3.1-3.6,4.4-5.6c0.4-0.6,0.8-1.2,1.2-1.8c0.7-1,1.4-2.1,2-3.1C65.5,37.3,71.4,30.3,71.4,22.8C71.4,15.3,64.2,10,50,10z" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: leaf-fall linear infinite;
}

/* Animación de caída y giro de las hojas */
@keyframes leaf-fall {
    0% {
        transform: translate(0, -100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    100% {
        transform: translate(50vw, 120vh) rotate(360deg); /* Controla el movimiento horizontal y vertical */
        opacity: 0;
    }
}

/* Posiciones iniciales aleatorias para las hojas */
.leaf:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.leaf:nth-child(2) { left: 25%; animation-duration: 12s; animation-delay: 2s; }
.leaf:nth-child(3) { left: 40%; animation-duration: 14s; animation-delay: 4s; }
.leaf:nth-child(4) { left: 60%; animation-duration: 11s; animation-delay: 6s; }
.leaf:nth-child(5) { left: 75%; animation-duration: 13s; animation-delay: 8s; }
.leaf:nth-child(6) { left: 90%; animation-duration: 15s; animation-delay: 10s; }




/* Estilo para las decoraciones florales */
.flower-decoration {
    position: absolute;
    width: 10rem; /* Ajusta este valor para cambiar el tamaño de la imagen */
    height: auto; /* Mantiene la proporción de la imagen */
    z-index: 1; /* Asegura que la imagen esté por encima del fondo, pero debajo del contenido principal */
}

/* Posición y transformación para la flor superior izquierda */
.flower-decoration.top-left {
    top: -3rem; /* Ajusta la distancia desde arriba */
    left: -3rem; /* Ajusta la distancia desde la izquierda */
    transform: scaleX(-1); /* Voltea la imagen horizontalmente */
}

/* Posición de la flor inferior izquierda (sin cambios) */
.flower-decoration.bottom-left {
    bottom: -3rem; /* Ajusta la distancia desde abajo */
    left: -3rem; /* Ajusta la distancia desde la izquierda */
    transform: rotate(180deg); /* Opcional: Gira la flor 180 grados para un efecto diferente */
}

/* Puedes añadir más reglas para otras esquinas si las necesitas */
.flower-decoration.top-right {
    top: -3rem;
    right: -3rem;
}

.flower-decoration.bottom-right {
    bottom: -3rem;
    right: -3rem;
}











.innova-logo {
    width: 80px; /* Ajusta el tamaño del logo */
    height: auto;
}

/* Opcional: Para una alineación más limpia en móviles */
@media (max-width: 768px) {
    .innova-credit {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}





/* Estilo para el contenedor de cada imagen */
.gallery-item {
    position: relative; /* Necesario para posicionar la barra de reacciones */
    overflow: hidden; /* Oculta partes de la barra que puedan salirse */
    border-radius: 0.75rem; /* Hereda el redondeo de la imagen */
}

/* Estilo para la barra de reacciones */
.reaction-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); /* Gradiente para mejor legibilidad */
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0; /* Oculta por defecto */
    transform: translateY(100%); /* La mueve fuera de la vista */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Transición suave */
}

/* Muestra la barra de reacciones al pasar el cursor sobre el item */
.gallery-item:hover .reaction-bar {
    opacity: 1;
    transform: translateY(0);
}

/* Estilo general para los botones de reacción */
.reaction-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.reaction-btn:hover {
    color: #ff4d4d; /* Color rojo al pasar el cursor */
    transform: scale(1.1);
}

/* Estilo específico para el corazón del "Me gusta" */
.like-btn .fa-heart {
    font-weight: 400; /* Corazón vacío (estilo 'far' de Font Awesome) */
}

/* Estilo cuando se le ha dado "Me gusta" */
.like-btn.liked .fa-heart {
    font-weight: 900; /* Corazón lleno (estilo 'fas' de Font Awesome) */
    color: #ff4d4d; /* Color rojo */
    animation: bounce 0.3s;
}

/* Pequeña animación para el corazón */
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Estilo para el contador de 'Me gusta' */
.like-count {
    font-size: 1rem;
    margin-left: 5px;
    font-weight: 600;
}