/* Paleta de colores */
:root {
    --bg-color: #F8F7F4;
    --primary-green: #A7B9A1;
    --dark-green: #556B2F;
    --text-brown: #967259;
    --accent-gold: #D4AF37;
    --font-family: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-brown);
    margin: 0;
    padding: 0;
    text-align: center;
}

main {
    width: 100%;
}

/* --- ESTILOS NUEVOS Y MODIFICADOS --- */

/* Estilo para la primera sección de Bienvenida (full-width) */
.hero-section {
    background-color: var(--primary-green);
    color: white;
    padding: 4rem 2rem;
    width: 100%;
    box-sizing: border-box; /* Para que el padding no aumente el ancho */
}
.hero-section h1 {
    margin-top: 0;
    font-size: 2.5em;
}
.hero-section h2 {
    color: white;
    font-weight: 400;
}
.hero-section p {
    max-width: 800px;
    margin: 1rem auto;
    font-size: 1.1em;
    line-height: 1.6;
}
.event-details {
    margin-top: 2rem;
    font-weight: bold;
}

/* Estilo para las secciones de contenido (centradas) */
section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 3rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
/* La sección hero no necesita estas propiedades */
.hero-section {
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h2 {
    color: var(--dark-green);
    font-size: 2em;
}

/* Estilos para el nuevo formulario de RSVP */
#rsvp-container {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
}
.search-wrapper {
    position: relative;
    margin-bottom: 1rem;
}
#guest-search {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}
#search-results {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}
.result-item {
    padding: 15px;
    cursor: pointer;
}
.result-item:hover {
    background-color: var(--bg-color);
}
#rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
}
#rsvp-form h3 {
    text-align: center;
    color: var(--dark-green);
    margin-top: 0;
}
#rsvp-form label {
    font-weight: bold;
}
#rsvp-form input, #rsvp-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1em;
    box-sizing: border-box;
}
#rsvp-form button {
    background-color: var(--dark-green);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s;
}
#rsvp-form button:hover {
    background-color: var(--accent-gold);
}
#form-response {
    margin-top: 1rem;
    font-weight: bold;
    text-align: center;
}
.hidden {
    display: none !important;
}


/* --- ESTILOS PARA LA LISTA DE REGALOS (sin cambios) --- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}
.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 1rem; }
.card-content h3 { margin-top: 0; color: var(--dark-green); }
.card-content p { font-size: 0.9em; min-height: 40px; }
.card-footer { padding: 0 1rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.card-footer span { font-weight: bold; color: var(--primary-green); }
.card-footer button { background-color: var(--dark-green); color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: background-color 0.3s; }
.card-footer button:hover { background-color: var(--accent-gold); }
.card-footer button:disabled { background-color: #ccc; cursor: not-allowed; }

/* --- FOOTER --- */
footer {
    margin-top: 4rem;
    padding: 2rem;
    font-size: 0.9em;
    color: var(--primary-green);
}
/* --- AÑADE ESTO AL FINAL DE TU STYLE.CSS --- */

/* Estilos para los nuevos checkboxes de invitados */
#guest-checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}
.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
}
.checkbox-wrapper label {
    font-weight: normal;
    font-size: 1.1em;
    color: #333;
}
