:root {
    --bg-color: #d9ceb8;
    --main-text-button-color: #2e0854;
    --secondary-text-color: #662916;
    --button-text-color: #d9ceb8; /* Mismo que el fondo, para el texto del botón */
    --font-title: 'Cinzel', serif;
    --font-text: 'Playfair Display', serif;
    --font-subtext: 'Libre Baskerville', serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-text);
    background-color: var(--bg-color);
    background-image: url('img/Boletos.png'); /* REEMPLAZA ESTO con tu imagen */
    background-size: contain;
    background-position: center;
    background-attachment: fixed; /* Efecto parallax suave */
    color: var(--secondary-text-color); /* Color de texto por defecto */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    body {
        background-size: cover;
    }
}


.container {
    background-color: rgba(255, 255, 255, 0.55); /* Fondo blanco semi-transparente para legibilidad sobre la imagen */
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

header h1 {
    font-family: var(--font-title);
    color: var(--main-text-button-color);
    font-size: 2.8em;
    margin-bottom: 0.2em;
}

header h2 {
    font-family: var(--font-subtext);
    color: var(--main-text-button-color);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 0.8em;
    font-weight: 400;
}

.invitation-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--secondary-text-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: var(--font-text); /* Puede ser el mismo que el texto principal */
    color: var(--main-text-button-color); /* O el secundario, según preferencia */
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.1em;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: var(--font-text);
    font-size: 1em;
    color: #333; /* Color del texto dentro del input */
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    border-color: var(--main-text-button-color);
    outline: none;
    box-shadow: 0 0 5px rgba(46, 8, 84, 0.3);
}

.form-text-secondary {
    font-size: 0.9em;
    color: var(--secondary-text-color);
    display: block;
    margin-top: 5px;
}

.button-group {
    display: flex;
    flex-direction: row; /* Forzar dirección horizontal por defecto */
    justify-content: space-between; /* O space-around / center */
    gap: 15px; /* Espacio entre botones */
    margin-top: 30px;
    width: 100%;
}

.btn {
    font-family: var(--font-text); /* O var(--font-title) si prefieres */
    background-color: var(--main-text-button-color);
    color: var(--button-text-color);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex: 1; /* Para que ambos botones ocupen espacio igual */
    text-align: center;
    white-space: nowrap; /* Evitar que el texto se rompa en líneas */
    min-width: 0; /* Permitir que flexbox maneje el ancho mínimo */
}

.btn:hover {
    background-color: #4a1b7c; /* Un tono más oscuro de --main-text-button-color */
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0px);
}

.btn.btn-decline {
    background-color: var(--secondary-text-color); /* Color diferente para declinar */
    /* Si quieres el mismo color de texto que el otro botón, no necesitas redefinirlo */
}

.btn.btn-decline:hover {
    background-color: #8c422c; /* Un tono más oscuro de --secondary-text-color */
}

.btn.btn-validate {
    background-color: #2e7d32; /* Verde para validación */
    margin-bottom: 15px;
}

.btn.btn-validate:hover {
    background-color: #1b5e20; /* Verde más oscuro */
}

.btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    background-color: #ccc;
    transform: none;
}

.confirmation-message {
    margin-top: 30px;
    padding: 20px;
    border-radius: 5px;
    font-size: 1.2em;
    line-height: 1.6;
}

.confirmation-message.success {
    background-color: #e6f4ea; /* Verde claro */
    color: #3c763d; /* Verde oscuro */
    border: 1px solid #c3e6cb;
}

.confirmation-message.info {
    background-color: #e7f3fe; /* Azul claro */
    color: #31708f; /* Azul oscuro */
    border: 1px solid #bce8f1;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    margin: 20px;
    text-align: center;
    font-family: var(--font-text);
}

.modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
    font-family: var(--font-title);
    color: var(--main-text-button-color);
    font-size: 1.8em;
    margin: 0;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    color: var(--secondary-text-color);
    font-size: 1.1em;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.modal-subtext {
    color: var(--secondary-text-color);
    font-size: 1em;
    font-style: italic;
    opacity: 0.8;
}

.modal-footer {
    padding: 10px 20px 20px;
}

.modal-footer .btn {
    width: auto;
    min-width: 120px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    header h1 {
        font-size: 2.2em;
    }
    header h2 {
        font-size: 1.5em;
    }
    .container {
        padding: 20px;
    }
    .button-group {
        flex-direction: column; /* Apila los botones solo en pantallas muy pequeñas */
        gap: 10px;
    }
    .btn {
        width: 100%; /* Hace que los botones ocupen todo el ancho disponible */
    }
}

/* Mantener botones horizontales para tablets y pantallas medianas */
@media (min-width: 481px) and (max-width: 768px) {
    .button-group {
        flex-direction: row; /* Mantener horizontal */
        gap: 10px; /* Reducir gap en pantallas medianas */
    }
    .btn {
        flex-grow: 1;
        font-size: 1rem; /* Reducir ligeramente el tamaño de fuente */
        padding: 10px 15px; /* Reducir padding */
    }
}
    
    .modal-content {
        margin: 10px;
        width: 95%;
    }
    
    .modal-header h3 {
        font-size: 1.5em;
    }
}

/* Estilos para el estado actual de la invitación */
.current-status .status-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.current-status .action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-edit, .btn-keep {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #ff6b6b;
    color: white;
}

.btn-edit:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-keep {
    background: #51cf66;
    color: white;
}

.btn-keep:hover {
    background: #40c057;
    transform: translateY(-2px);
}

/* Estilos para el modo de edición */
.edit-mode-info {
    margin: 15px 0;
}

/* Estilos responsivos para botones */
@media (max-width: 768px) {
    .current-status .action-buttons {
        flex-direction: row;
        align-items: center;
    }
    
    .btn-edit, .btn-keep {
        width: 100%;
        max-width: 250px;
    }
}