body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #2d3e31; /* Verde muy oscuro para el cuerpo */
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Caveat', cursive;
    color: #1a2e1d; /* Verde bosque profundo para títulos */
}

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #4a6741; /* Verde oliva suave para enlaces */
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1a2e1d;
}

/* Background Section with Blur */
.section-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Blur Effect */
.section-bg::before {
    content: "";
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background: inherit;
    filter: blur(2px); /* Reducido el difuminado */
    z-index: 1;
}

.overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.45); /* Oscurecido para mejor legibilidad */
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 8rem;
    margin-bottom: 0.5rem;
    color: #e0e0e0; /* Gris claro para el título principal */
    line-height: 1;
}

.hero .date {
    font-size: 2.5rem;
    color: #bdbdbd; /* Gris medio-claro */
    font-family: 'Caveat', cursive;
}

.hero .location {
    font-size: 1.2rem;
    max-width: 500px;
    margin: 0 auto;
    color: #eeeeee; /* Gris muy claro */
}

/* Detalles Section */
#detalles {
    background-image: url('https://www.lacasaverde.es/wp-content/uploads/2021/05/La-Casa-Verde-Torrelodones-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #fff;
    max-width: 100%;
    padding: 0;
}

.detalles-overlay {
    background: rgba(0, 0, 0, 0.45);
    padding: 8rem 2rem;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    position: relative; /* Necesario para posicionar confeti y fuegos artificiales */
    overflow: hidden; /* Para que no se salgan los efectos */
}

#detalles h2 {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: #f1f8e9; /* Verde casi blanco para títulos sobre fondo oscuro */
}

#detalles h3 {
    font-size: 3rem;
    color: #dcedc8; /* Verde muy claro */
}

.detail-item {
    margin: 3rem 0;
    position: relative; /* Para posicionar el confeti */
    z-index: 1; /* Asegura que el contenido esté por encima de los efectos */
}

.venue-link {
    color: #f1f8e9;
    text-decoration: none;
    border-bottom: 2px solid #81c784; /* Verde esmeralda claro */
    transition: all 0.3s ease;
}

.venue-link:hover {
    color: #81c784;
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0; /* Empieza desde arriba de la sección */
    left: 0;
    width: 100%;
    height: 100%; /* Cubre toda la altura de detalles-overlay */
    overflow: hidden;
    pointer-events: none;
    z-index: 0; /* Detrás del contenido */
}

.confetti {
    position: absolute;
    width: 5px; /* Más pequeño */
    height: 5px;
    background-color: #f0f; /* Color de ejemplo, se puede variar */
    animation: fall 5s linear infinite; /* Animación más larga */
    opacity: 0; /* Inicialmente invisible */
}

@keyframes fall {
    0% {
        transform: translateY(-100%) rotateZ(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg); /* Cae más allá de la vista */
        opacity: 0;
    }
}


#confirmar h2 {
    font-size: 5rem;
    color: #e0e0e0; /* Gris claro para contraste sobre overlay oscuro */
    margin-bottom: 1rem;
}

#confirmar p {
    color: #bdbdbd; /* Texto descriptivo en gris */
}

/* RSVP Form Styling */
.rsvp-form {
    max-width: 600px;
    width: 100%;
    margin: 2rem auto 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.rsvp-form h2 {
    color: #1a2e1d; /* Título dentro del formulario (fondo blanco) vuelve a verde oscuro */
    font-size: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.guest-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8f5e9; /* Línea divisoria verde muy clara */
    position: relative;
}

.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.guest-name-field {
    margin-bottom: 0.5rem;
}

.guest-options {
    display: flex;
    gap: 1rem;
}

.form-group label, .guest-header label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3e5c33;
}

.form-group input,
.form-group textarea,
.guest-name-field input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #c8e6c9; /* Borde verde muy claro */
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.guest-name-field input:focus {
    outline: none;
    border-color: #4caf50; /* Verde más intenso al enfocar */
}

.button-secondary {
    background: transparent;
    border: 1px dashed #4caf50;
    color: #2d3e31;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    width: 100%;
    transition: all 0.3s ease;
}

.button-secondary:hover {
    background: #f1f8e9;
}

.remove-guest {
    background: none;
    border: none;
    color: #c62828; /* Rojo para eliminar (se mantiene por usabilidad) */
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.form-checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #3e5c33;
}

.checkbox-container.mini {
    font-size: 0.8rem;
    color: #4a6741;
}

.checkbox-container input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.button {
    display: inline-block;
    padding: 1rem 3.5rem;
    background: #1a2e1d; /* Fondo verde oscuro */
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid #1a2e1d;
    width: 100%;
    cursor: pointer;
}

.button:hover {
    background: #3e5c33;
    border-color: #3e5c33;
    color: #fff;
}

footer {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    color: #1a2e1d;
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
}

@media (max-width: 600px) {
    .rsvp-form {
        padding: 2rem 1.5rem;
    }
    .hero h1 {
        font-size: 4.5rem;
    }
}
