/* --- Importación de Fuente y Variables de Color --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* --- Opción 1: Rosa Dorado y Elegancia Clásica --- */
:root {
    --primary-color: #B48B8B;   /* Rosa dorado / Palo de rosa */
    --secondary-color: #FDF6F0; /* Tono champagne muy claro */
    --dark-grey: #4B4242;       /* Gris cálido oscuro, casi chocolate */
    --light-grey: #FDF6F0;      /* El fondo general, igual al secundario */
    --white-color: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

/* --- Estilos Globales y Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--light-grey);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- ESTILOS PARA LA PÁGINA DE LOGIN (index.html) --- */

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.login-box h1 {
    color: var(--primary-color);
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
}

.login-box p {
    margin-bottom: 30px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.login-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #9c7171; /* Un tono más oscuro del primario */
}

.login-footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #999;
}

/* --- ESTILOS PARA EL PANEL DE CONTROL (dashboard.html) --- */

/* Header y Footer del Dashboard */
header {
    background: var(--white-color);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: var(--shadow);
}

header h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

header nav a {
    margin: 0 15px;
    font-weight: 600;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #777;
}

/* Contenido del Dashboard */
.dashboard-header {
    text-align: center;
    margin: 40px 0;
}

.dashboard-header h2 {
    font-size: 2.5em;
    font-weight: 700;
}

.dashboard-header p {
    font-size: 1.2em;
    color: #555;
}

.countdown {
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white-color);
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4em;
}

.card p {
    margin-bottom: 10px;
    color: #555;
}

.card ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 15px;
}

.card ul li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.card ul li:last-child {
    border-bottom: none;
}

/* --- Media Queries para Teléfonos Móviles --- */
@media (max-width: 768px) {
    .dashboard-header h2 { font-size: 2em; }
    .countdown { font-size: 2.2em; }
    .container { padding: 20px 15px; }
    .main-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}
/* --- ESTILOS PARA LA PÁGINA DEL GESTOR DE TAREAS (tareas.html) --- */

.task-page-header {
    text-align: right;
    margin-bottom: 40px;
}

/* El botón "+ Crear Nueva Tarea" usa el estilo del botón principal de la landing page */
.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #9c7171; /* Un tono más oscuro del primario */
    text-decoration: none;
}

#pending-tasks, #completed-tasks {
    margin-bottom: 50px;
}

#pending-tasks h2, #completed-tasks h2 {
    font-size: 1.8em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    margin-bottom: 20px;
    color: var(--primary-color);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid #ccc; /* Borde por defecto */
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.task-item.due-soon {
    border-left-color: #f0ad4e; /* Naranja para vencimiento próximo */
}
.task-item.overdue {
    border-left-color: #d9534f; /* Rojo para vencido */
}

.task-check {
    flex-grow: 1;
    display: flex;
    align-items: center;
}
.task-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}
.task-check label {
    font-size: 1.1em;
}

.task-details {
    flex-shrink: 0;
    margin: 0 20px;
    text-align: right;
}
.due-date {
    font-size: 0.9em;
    font-weight: 600;
    color: #777;
}
.task-notes {
    font-size: 0.85em;
    color: #999;
    display: block;
    margin-top: 4px;
}

.task-actions {
    display: flex;
    gap: 15px;
    color: #aaa;
}
.task-actions i {
    cursor: pointer;
    transition: color 0.2s ease;
}
.task-actions i:hover {
    color: var(--primary-color);
}

/* Estilos para tareas completadas */
.task-item.completed {
    background-color: #f9f9f9;
    border-left-color: #5cb85c; /* Verde para completado */
}
.task-item.completed label {
    text-decoration: line-through;
    color: #aaa;
}
.task-item.completed .due-date, .task-item.completed .task-notes {
    color: #ccc;
}
.task-item.completed i.fa-pencil {
    display: none; /* Ocultamos el lápiz de editar */
}

.empty-list-message {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #888;
}

/* --- ESTILOS PARA EL MODAL (VENTANA EMERGENTE) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-overlay.hidden {
    display: none;
}
.modal-content {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
    color: var(--primary-color);
}

.modal-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.button-primary, .button-secondary {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.button-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.button-secondary {
    background-color: #eee;
    color: #555;
}
/* --- ESTILOS PARA LA PÁGINA DE PRESUPUESTO (presupuesto.html) --- */

.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.summary-card {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}
.summary-card h4 {
    margin: 0 0 10px 0;
    color: #777;
    font-weight: 600;
}
.summary-card p {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
}
.summary-card p.spent {
    color: #d9534f;
}
.summary-card p.remaining {
    color: #5cb85c;
}

.progress-bar-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 50px;
    height: 20px;
    margin-bottom: 40px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50px;
    transition: width 0.5s ease-in-out;
}

.budget-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.chart-container {
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.chart-container h3 {
    text-align: center;
    margin-bottom: 20px;
}

.expense-list-section h2 {
    margin-bottom: 20px;
}

.expense-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}
.expense-table th, .expense-table td {
    padding: 15px;
    text-align: left;
}
.expense-table thead {
    background-color: var(--secondary-color);
}
.expense-table th {
    font-weight: 600;
}
.expense-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.expense-table tbody tr:hover {
    background-color: #f1f1f1;
}
.expense-table .action-icons i {
    cursor: pointer;
    margin: 0 8px;
    color: #aaa;
}
.expense-table .action-icons i:hover {
    color: var(--primary-color);
}
/* --- ESTILOS ADICIONALES PARA PRESUPUESTO (presupuesto.html) --- */
.setup-container {
    background-color: var(--white-color);
    padding: 50px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    margin: 50px auto;
    max-width: 700px;
}
.setup-container h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.setup-container p {
    margin-bottom: 30px;
    font-size: 1.1em;
}

.main-content.hidden {
    display: none;
}

#edit-budget-btn {
    cursor: pointer;
    margin-left: 10px;
    color: #ccc;
    transition: color 0.2s ease;
}
#edit-budget-btn:hover {
    color: var(--primary-color);
}

.chart-container #chart-placeholder {
    text-align: center;
    padding: 50px 20px;
    color: #aaa;
}
/* --- ESTILOS PARA GESTOR DE INVITADOS (invitados.html) --- */

/* Reutilizamos .summary-card pero con colores específicos */
.summary-card p.pending {
    color: #f0ad4e; /* Un tono naranja/ámbar para 'Pendientes' */
}

/* Contenedor principal de los controles */
.list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite que los elementos se muevan hacia abajo en pantallas pequeñas */
    gap: 20px;
    margin: 40px 0;
}

/* Contenedor para la búsqueda y los filtros */
.search-and-filter {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Wrapper para la barra de búsqueda con el icono */
.search-wrapper {
    position: relative; /* Necesario para posicionar el icono dentro */
}

.search-wrapper .fa-magnifying-glass {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #aaa;
}

/* Barra de búsqueda mejorada */
.search-bar {
    padding: 12px 15px 12px 40px; /* Padding izquierdo para dejar espacio al icono */
    border: 1px solid #e0e0e0;
    border-radius: 50px; /* Bordes completamente redondeados */
    min-width: 280px;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s ease;
}

/* Efecto al hacer clic en la barra de búsqueda */
.search-bar:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(180, 139, 139, 0.2); /* Sombra exterior con el color primario */
}

/* Contenedor de los botones de filtro */
.filter-buttons {
    display: flex;
    background-color: var(--secondary-color);
    border-radius: 50px;
    padding: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Botones de filtro individuales */
.filter-btn {
    padding: 8px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-grey);
    opacity: 0.7;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Estilo del botón de filtro ACTIVO */
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.guest-table {
    width: 100%;
    border-collapse: collapse;
}

/* Estilos de la tabla de invitados */
.guest-table th, .guest-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.guest-table thead {
    background-color: var(--secondary-color);
}
.guest-table tbody tr:hover {
    background-color: #fdfcfb; /* Un hover muy sutil */
}

/* Estilo del dropdown de estado en la tabla */
.status-select {
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    font-family: inherit;
}
/* --- ESTILOS PARA TABLERO DE INSPIRACIÓN (inspiracion.html) --- */
.page-actions {
    text-align: center;
    margin-bottom: 40px;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.inspiration-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    background-color: #eee;
}

.inspiration-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene la tarjeta sin deformarse */
    display: block;
    transition: transform 0.4s ease;
}

.inspiration-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 30px 15px 15px 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.inspiration-card:hover .card-overlay {
    opacity: 1;
}

.card-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
}

.inspiration-card:hover .delete-btn {
    opacity: 1;
}
.delete-btn:hover {
    background-color: #d9534f;
}

/* --- ESTILOS PARA EL LIGHTBOX --- */
.lightbox-content {
    position: relative;
    background-color: var(--white-color);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}
.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain; /* Muestra la imagen completa sin recortar */
}
.lightbox-caption {
    padding: 20px;
    background-color: #f9f9f9;
}
.lightbox-caption h3 {
    margin: 0 0 10px 0;
}
.lightbox-caption p {
    margin: 0;
}
.close-lightbox-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    background-color: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
}
/* --- ESTILOS PARA AGENDA DEL EVENTO (agenda.html) --- */

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
}

/* La línea vertical central */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* El círculo en la línea de tiempo */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -12px;
    background-color: var(--white-color);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

/* Items a la izquierda */
.timeline-item.left {
    left: 0;
}

/* Items a la derecha */
.timeline-item.right {
    left: 50%;
}

/* Flechas de los contenedores */
.timeline-item.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 30px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--white-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--white-color);
}
.timeline-item.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 30px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--white-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--white-color) transparent transparent;
}

/* Círculo para los items de la derecha */
.timeline-item.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--white-color);
    position: relative;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}
.timeline-content p {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #777;
}

.timeline-time {
    font-size: 1.2em;
    font-weight: bold;
}

.timeline-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}
.timeline-actions i {
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s ease;
}
.timeline-actions i:hover {
    color: var(--primary-color);
}

/* Media Query para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item::before {
        left: 60px;
        border: medium solid var(--white-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--white-color) transparent transparent;
    }
    .timeline-item.left::after, .timeline-item.right::after {
        left: 21px;
    }
    .timeline-item.right {
        left: 0%;
    }
}
/* --- ESTILOS PARA DIRECTORIO DE PROVEEDORES (proveedores.html) --- */

.vendor-grid {
    display: grid;
    /* ESTA LÍNEA ES CLAVE: Crea columnas que intentan tener 320px, 
       pero se estiran para ocupar el espacio. Esto controla el tamaño máximo. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; /* Espacio entre las tarjetas */
}

.vendor-card {
    background-color: var(--white-color);
    border-radius: 12px; /* Bordes un poco más redondeados */
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vendor-card:hover {
    transform: translateY(-8px); /* Un efecto de levitación más pronunciado */
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.vendor-card .card-image {
    height: 220px;
    position: relative;
    background-color: #f0f0f0;
    /* Nuevas propiedades para el fondo */
    background-size: cover;
    background-position: center;
    overflow: hidden; /* Oculta lo que se salga del borde redondeado */
}

/* Añadimos un pseudo-elemento para el efecto de desenfoque y oscurecimiento */
.vendor-card .card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit; /* Hereda la imagen de fondo del padre */
    background-position: center;
    background-size: cover;
    filter: blur(10px) brightness(0.7); /* ¡La magia del desenfoque y brillo! */
    transform: scale(1.1); /* Hacemos la imagen de fondo un poco más grande para evitar bordes borrosos */
}

/* Nos aseguramos que la imagen principal esté por encima del fondo desenfocado */
.vendor-card .card-image img {
    position: relative; /* Para que se ponga encima del ::before */
    z-index: 1;
        width: 100%;
    height: 100%;
    object-fit: contain; /* Ahora la imagen se mostrará completa */
    display: block;
    transition: transform 0.4s ease;

}

.card-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    backdrop-filter: blur(4px); /* Efecto de desenfoque para mejor legibilidad */
}

.vendor-card .card-content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vendor-name {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.vendor-details {
    color: #777;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.vendor-details i {
    margin-right: 5px;
}

.vendor-rating {
    margin-bottom: 20px;
    color: #f0ad4e; /* Color de las estrellas */
    font-size: 1.1em;
}

.vendor-actions {
    margin-top: auto; /* Empuja los botones al final de la tarjeta */
    display: flex;
    gap: 10px;
}
.vendor-actions a {
    flex-grow: 1;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.vendor-actions .button-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.vendor-actions .button-secondary:hover {
    background-color: #f5e4d1;
    text-decoration: none;
}
.vendor-actions .button-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.vendor-actions .button-primary:hover {
    background-color: #9c7171;
    text-decoration: none;
}
.setup-container {
    text-align: center;
}
/* --- ESTILOS MEJORADOS PARA LA TABLA DEL PANEL DE ADMIN --- */

.admin-table {
    width: 100%;
    border-collapse: collapse; /* Mantiene los bordes limpios y unidos */
    margin-top: 20px;
    background-color: var(--white-color);
    border-radius: 8px; /* Bordes redondeados para toda la tabla */
    overflow: hidden; /* Asegura que el contenido respete los bordes redondeados */
    box-shadow: var(--shadow);
    font-size: 0.95em; /* Un tamaño de letra base ligeramente más grande */
}

/* Estilo para TODAS las celdas (cabecera y cuerpo) */
.admin-table th, 
.admin-table td {
    /* LA CLAVE: Más espacio interno (padding) para que no se vea junto */
    padding: 16px 20px; 
    text-align: left;
    /* Borde sutil solo en la parte inferior para separar filas */
    border-bottom: 1px solid var(--secondary-color);
    vertical-align: middle; /* Centra el contenido verticalmente */
}

/* Estilo específico para las celdas de la CABECERA */
.admin-table thead th {
    background-color: #faf7f5; /* Un fondo muy sutil, un poco más oscuro que el secundario */
    font-weight: 600; /* Letra en negrita */
    color: var(--dark-grey);
    text-transform: uppercase; /* MAYÚSCULAS para un look profesional */
    font-size: 0.8em;
    letter-spacing: 0.5px; /* Pequeño espacio extra entre letras */
}

/* Estilo para las filas del CUERPO de la tabla */
.admin-table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

/* Efecto al pasar el ratón por encima de una fila */
.admin-table tbody tr:hover {
    background-color: #fdf6f0; /* Color de hover sutil de nuestro tema */
}

/* La última fila no necesita un borde inferior */
.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Estilo para los iconos de acción (lápiz, bote de basura) */
.admin-table .action-icons i {
    cursor: pointer;
    margin: 0 10px;
    font-size: 1.2em;
    color: #c9b3b3; /* Un color más suave del tema */
    transition: color 0.2s ease-in-out;
}

.admin-table .action-icons i:hover {
    color: var(--primary-color); /* El color principal se revela al pasar el ratón */
}
/* --- Estilos para el botón de estado del evento en el admin --- */
.status-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.status-btn.active {
    background-color: #28a745; /* Verde */
}
.status-btn.archived {
    background-color: #6c757d; /* Gris */
}
.status-btn:hover {
    opacity: 0.8;
}
/* --- Estilos para las etiquetas de plan en el admin --- */
.plan-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: capitalize;
}
.plan-badge.plan-basico {
    background-color: #e9ecef;
    color: #495057;
}
.plan-badge.plan-premium {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.sent-indicator {
    font-size: 0.8em;
    color: #5cb85c; /* Verde éxito */
    margin-left: 8px;
    font-style: italic;
}
/* Contenedor principal de los iconos y botones */
.action-icons {
    display: flex;
    align-items: center; /* Centra verticalmente los iconos y botones */
    gap: 15px; /* Crea un espacio consistente entre cada elemento */
}

/* Estilo para los iconos individuales (lápiz y basura) */
.action-icons i {
    cursor: pointer;
    font-size: 1.2em; /* Un poco más grandes */
    color: #b48b8b; /* Usamos un color del tema */
    transition: color 0.2s ease-in-out;
}

.action-icons i:hover {
    color: #8e5e5e; /* Un tono más oscuro al pasar el ratón */
}

/* Estilo para el botón de WhatsApp */
.send-whatsapp-btn {
    display: inline-flex; /* Para centrar el icono dentro del botón */
    align-items: center;
    justify-content: center;
    background-color: #25D366; /* Color de WhatsApp */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px; /* <-- LA CLAVE: Esto le da "cuerpo" y un área de clic grande */
    margin-left: 5px;
    cursor: pointer;
    font-size: 1.1em; /* Tamaño del icono de WhatsApp */
    transition: background-color 0.2s ease;
}

.send-whatsapp-btn:hover {
    background-color: #1ebe58;
}

/* Estilos para el botón cuando ya se envió (opcional, pero recomendado) */
.send-whatsapp-btn.sent {
    background-color: #6c757d;
    cursor: not-allowed;
}

.sent-indicator {
    font-size: 0.8em;
    color: #5cb85c; /* Verde éxito */
    margin-left: -5px; /* Un pequeño ajuste para que esté más cerca del botón */
    font-style: italic;
    white-space: nowrap; /* Evita que el texto se parta en dos líneas */
}
/* --- Estilos para el Selector Visual de Plantillas --- */
.template-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.template-card {
    position: relative;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card img {
    display: block;
    width: 100%;
    height: auto;
}

.template-card .template-name {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: 600;
    font-size: 0.9em;
}

.template-card .checkmark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(180, 139, 139, 0.7); /* Usamos el color del tema con transparencia */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Estilo para la tarjeta seleccionada */
.template-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(180, 139, 139, 0.5);
}

.template-card.active .checkmark-overlay {
    opacity: 1;
}
/* --- Estilos para el enlace de Vista Previa de Plantilla --- */
.template-card .preview-link {
    position: absolute;
    bottom: 45px; /* Lo posiciona justo encima del nombre de la plantilla */
    left: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 0;
    text-decoration: none;
    font-weight: bold;
    opacity: 0; /* Oculto por defecto */
    transform: translateY(20px); /* Empieza un poco abajo */
    transition: all 0.3s ease;
}

/* Al pasar el ratón por la tarjeta, pero NO si está activa */
.template-card:hover .preview-link {
    opacity: 1;
    transform: translateY(0);
}

/* Ocultamos el 'Ver Ejemplo' en la plantilla ya seleccionada */
.template-card.active:hover .preview-link {
    opacity: 0;
}
/* --- Estilos Finales para el Selector Visual de Plantillas --- */
.template-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

/* Hacemos que toda la tarjeta sea un enlace sin subrayado */
.template-preview-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.template-card {
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}
.template-preview-link:hover .template-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: #ddd;
}

.template-card img {
    display: block;
    width: 100%;
    height: 120px; /* Altura fija para las miniaturas */
    object-fit: cover;
    pointer-events: none; /* Evita que la imagen bloquee el clic en el enlace */
}

.template-card .template-name {
    padding: 15px 10px;
    font-weight: 600;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Estilos para los 'radio buttons' para que parezcan checkboxes elegantes */
.template-name input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid currentColor;
    border-radius: 50%;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    cursor: pointer;
}

.template-name input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--primary-color);
}

.template-name input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Ocultamos el input oculto que ya no necesitamos */
#template-select {
    display: none;
}
/* --- ESTILOS PARA LA PÁGINA DE INVITACIÓN (RSVP) --- */

/* Contenedor principal que centra la tarjeta */
.rsvp-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: #f8f9fa; /* Un fondo neutro y suave */
}

/* La tarjeta de invitación */
.rsvp-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 550px;
    width: 100%;
    overflow: hidden; /* Para que la imagen respete los bordes redondeados */
    text-align: center;
}

/* La imagen de cabecera de la invitación */
.rsvp-header-image {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
}

/* Contenido de texto dentro de la tarjeta */
.rsvp-content {
    padding: 30px 40px;
}

.rsvp-content h1 {
    font-family: 'Garamond', 'Times New Roman', serif; /* Una fuente más elegante para el título */
    font-size: 2.5em;
    color: var(--primary-color); /* Usamos el color de nuestro tema */
    margin: 0 0 15px 0;
}

.rsvp-content .event-date {
    font-weight: 600;
    color: #555;
    margin-bottom: 25px;
    display: block;
}

.rsvp-content .guest-name {
    font-size: 1.5em;
    margin: 25px 0 10px 0;
}

/* Estilos para el formulario de confirmación */
.rsvp-form .pass-selector {
    margin: 20px 0;
    padding: 15px;
    background-color: #faf7f5;
    border-radius: 8px;
}

.rsvp-form .pass-selector label {
    font-weight: 600;
}

.rsvp-form .pass-selector input[type="number"] {
    width: 80px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

.rsvp-form .modal-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.rsvp-form .modal-actions button {
    flex-grow: 1; /* Hace que los botones ocupen el espacio disponible */
}
/* --- ESTILOS ADICIONALES PARA LAS PLANTILLAS DE INVITACIÓN --- */

/* Hacemos que el body de la plantilla ocupe toda la pantalla */
.body-invitacion {
    background-color: #fdf6f0; /* Un color de fondo suave */
}

/* El contenedor principal de la invitación */
.invitation-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Garamond', 'Times New Roman', serif;
    background-color: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Sección de la imagen principal (Hero) */
.invitation-hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}
/* Capa oscura para que el texto sea legible */
.invitation-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0, 0.40);
}
.invitation-hero * {
    position: relative; /* Para que el texto esté por encima de la capa oscura */
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.invitation-hero h1 {
    font-family: 'Parisienne', cursive; /* Usamos una fuente elegante como la del ejemplo */
    font-size: 5em;
    margin: 0;
}
.invitation-hero h2 {
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Contenedor para las secciones de contenido */
.invitation-content {
    padding: 50px 30px;
    text-align: center;
}

.invitation-content h3 {
    font-family: 'Parisienne', cursive;
    font-size: 3em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 10px;
}

.invitation-content p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* Estilos para el formulario de RSVP que ya teníamos */
.rsvp-form {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

/* Sección del contador regresivo */
.countdown-section {
    background-color: #fafafa;
    padding: 40px 20px;
    text-align: center; /* Centramos el contenido horizontalmente */
}

#clock {
    font-size: 1.5em;
    letter-spacing: 5px;
    color: #333;
    display: flex; /* Usamos flexbox para organizar los elementos en línea */
    justify-content: center; /* Espaciamos los elementos horizontalmente */
    align-items: center; /* Alineamos verticalmente al centro (si es necesario) */
    gap: 30px; /* Espacio entre cada bloque del contador */
}

#clock span {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#clock span div {
    font-size: 0.8em;
    color: #777;
    margin-top: 5px;
}
.hidden {
    display: none !important;
}
/* --- ESTILOS FINALES PARA LAS PLANTILLAS DE INVITACIÓN --- */
/* BODA_ELEGANTE */
 .boda-clasica-theme {
            --color-bg: #fdf6f0;       /* Fondo crema claro */
            --color-container: #ffffff;   /* Fondo blanco */
            --color-text: #555;           /* Texto gris oscuro */
            --color-primary: #b48b8b;      /* Rosa dorado/palo de rosa */
            --color-secondary: #f8f8f8;    /* Fondo gris muy claro */
            --color-accent: #4B4242;       /* Gris cálido oscuro */
            --color-light: #ffffff;       /* Blanco puro */
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease-in-out;

            font-family: 'Garamond', 'Times New Roman', serif;
            background-color: var(--color-bg);
            color: var(--color-text);
            line-height: 1.6;
        }

        /* Tipografía y títulos */
        .boda-clasica-theme .invitation-hero h1,
        .boda-clasica-theme .invitation-content h2,
        .boda-clasica-theme .invitation-content h3,
        .boda-clasica-theme .info-section h3,
        .boda-clasica-theme .gallery-section h3 {
            font-family: 'Parisienne', cursive;
            font-weight: 400;
            color: var(--color-primary);
            margin-bottom: 1.5rem;
            text-align: center;
            position: relative;
        }

        .boda-clasica-theme .invitation-hero h1 {
            font-size: clamp(3rem, 6vw, 4.5rem);
            line-height: 1.2;
            letter-spacing: 1px;
            color: var(--color-light);
            text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
        }

        .boda-clasica-theme .invitation-content h2 {
            font-size: clamp(2.2rem, 5vw, 2.8rem);
        }

        .boda-clasica-theme .info-section h3,
        .boda-clasica-theme .gallery-section h3,
        .boda-clasica-theme .invitation-content h2 {
             font-size: clamp(2.2rem, 5vw, 2.8rem);
        }

        .boda-clasica-theme .info-section h3::after,
        .boda-clasica-theme .gallery-section h3::after,
        .boda-clasica-theme .invitation-content h2::after {
            content: '';
            display: block;
            width: 80px;
            height: 2px;
            background: var(--color-primary);
            margin: 1rem auto 0;
            opacity: 0.5;
        }

        /* Hero section */
        .boda-clasica-theme .invitation-hero {
            position: relative;
            height: 80vh;
            min-height: 500px;
            background-size: cover;
            background-position: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: white;
        }

        .boda-clasica-theme .invitation-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
            transition: var(--transition);
        }

        /* Contenido principal */
        .boda-clasica-theme .invitation-content {
            padding: 4rem 2rem;
            text-align: center;
        }

        .boda-clasica-theme .invitation-content p {
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto 1.5rem;
            color: var(--color-text);
        }

        .boda-clasica-theme .event-date {
            font-family: 'Garamond', serif;
            font-size: 1.3rem;
            letter-spacing: 1px;
            color: var(--color-accent);
            font-weight: 600;
            display: inline-block;
            position: relative;
        }

        /* Contador regresivo */
        .boda-clasica-theme .countdown-section {
            background-color: transparent;
            padding: 2.5rem 1rem;
        }

        .boda-clasica-theme #clock {
            display: flex;
            justify-content: center;
            gap: 2rem;
            text-align: center;
        }

        .boda-clasica-theme #clock .wraper-clock span {
            font-size: 2.5rem;
            font-weight: 300;
            color: var(--color-primary);
            line-height: 1;
            font-family: 'Garamond', serif;
        }

        .boda-clasica-theme #clock .wraper-clock div {
            font-size: 0.8rem;
            color: var(--color-text);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 0.5rem;
        }

        /* Secciones de información */
        .boda-clasica-theme .info-section {
            padding: 3rem 2rem;
            border-top: 1px solid rgba(180, 139, 139, 0.2);
            text-align: center;
        }

        .boda-clasica-theme .info-section-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2.5rem;
            max-width: 800px;
            margin: 0 auto;
            text-align: left;
        }
        
        @media (min-width: 768px) {
            .boda-clasica-theme .info-section-content {
                 flex-direction: row;
            }
            .boda-clasica-theme .reception-layout {
                 flex-direction: row-reverse;
            }
        }

        .boda-clasica-theme .info-section-text {
            flex: 1;
        }

        .boda-clasica-theme .info-section-text p {
            margin: 1rem 0;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            color: var(--color-text);
        }

        .boda-clasica-theme .info-section-text i {
            color: var(--color-primary);
            margin-right: 0.8rem;
            font-size: 1.2rem;
            min-width: 1.5rem;
            text-align: center;
        }

        .boda-clasica-theme .info-section-image {
            width: 100%;
            max-width: 350px;
            height: auto;
            aspect-ratio: 1/1;
            object-fit: cover;
            border-radius: 4px;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
        }
        .boda-clasica-theme .info-section-image:hover {
            transform: scale(1.05);
            box-shadow: var(--shadow-lg);
        }

        /* Botones Generales */
        .boda-clasica-theme .map-button {
            display: inline-block;
            padding: 0.8rem 2rem;
            background-color: var(--color-primary);
            color: white !important;
            border: 1px solid var(--color-primary);
            font-family: 'Garamond', serif;
            font-weight: 600;
            letter-spacing: 1px;
            transition: var(--transition);
            text-decoration: none;
            margin-top: 1rem;
        }

        .boda-clasica-theme .map-button:hover {
            background-color: transparent;
            color: var(--color-primary) !important;
        }
        
        /* Galería */
        .boda-clasica-theme .gallery-section {
            padding: 3rem 1rem;
            text-align:center;
            border-top: 1px solid rgba(180, 139, 139, 0.2);
        }
        .boda-clasica-theme .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1rem;
            max-width: 1200px;
            margin: 2rem auto 0;
        }
        .boda-clasica-theme .gallery-grid img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            aspect-ratio: 1/1;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }
        .boda-clasica-theme .gallery-grid a:hover img {
             transform: scale(1.05);
             box-shadow: var(--shadow-lg);
        }


        /* --- ESTILOS ADAPTADOS PARA EL FORMULARIO RSVP --- */
        .boda-clasica-theme .rsvp-form {
            margin-top: 2rem;
            padding: 2rem;
            background-color: transparent;
            text-align: center;
        }
        .boda-clasica-theme .pass-selection-area {
            margin-bottom: 25px;
        }
        .boda-clasica-theme .passes-info {
            font-size: 1.1em;
            color: var(--color-text);
            margin-bottom: 15px;
        }
        .boda-clasica-theme .pass-selection-area label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--color-accent);
        }
        .boda-clasica-theme .pass-selector {
            width: 80%;
            max-width: 250px;
            padding: 12px;
            border: 1px solid rgba(180, 139, 139, 0.5);
            font-size: 1em;
            font-family: 'Garamond', serif;
            background-color: var(--color-light);
            cursor: pointer;
            color: var(--color-text);
        }
        .boda-clasica-theme .rsvp-buttons {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }
        .boda-clasica-theme .rsvp-button {
            width: 90%;
            max-width: 300px;
            padding: 1rem 1.5rem;
            border: 1px solid var(--color-primary);
            font-family: 'Garamond', serif;
            font-size: 1em;
            font-weight: 600;
            letter-spacing: 1px;
            cursor: pointer;
            transition: var(--transition);
            text-transform: uppercase;
        }
        .boda-clasica-theme .rsvp-button.confirm {
            background-color: var(--color-primary);
            color: white;
        }
        .boda-clasica-theme .rsvp-button.confirm:hover {
            background-color: transparent;
            color: var(--color-primary);
        }
        .boda-clasica-theme .rsvp-button.decline {
            background-color: transparent;
            color: var(--color-text);
            border: 1px solid #ccc;
        }
        .boda-clasica-theme .rsvp-button.decline:hover {
            background-color: var(--color-text);
            color: white;
            border-color: var(--color-text);
        }
        @media (min-width: 600px) {
            .boda-clasica-theme .rsvp-buttons {
                flex-direction: row;
                justify-content: center;
            }
            .boda-clasica-theme .rsvp-button {
                width: auto;
                min-width: 200px;
            }
        }
/* Boda_elegante2 - Tema Elegante Moderno */
.boda-elegante2-theme {
    --color-bg: #f8f9fa;
    --color-text: #212529;
    --color-primary: #0d2c4a;      /* Azul marino oscuro */
    --color-secondary: #bfa374;    /* Tono dorado/bronce */
    --color-light: #ffffff;
    --color-border: #e9ecef;
    --color-gray: #6c757d;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease-in-out;

    font-family: 'Garamond', 'Times New Roman', serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Tipografía y títulos */
.boda-elegante2-theme .invitation-hero h1,
.boda-elegante2-theme .invitation-content h3,
.boda-elegante2-theme .info-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    position: relative;
}

.boda-elegante2-theme .invitation-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsivo */
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.boda-elegante2-theme .invitation-content h3 {
    font-size: 1.8rem;
}

.boda-elegante2-theme .info-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-secondary);
    margin: 1rem auto 0;
}

/* Hero section */
.boda-elegante2-theme .invitation-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.boda-elegante2-theme .invitation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(16, 24, 32, 0.85), rgba(16, 24, 32, 0.3));
}

/* Contenido principal */
.boda-elegante2-theme .invitation-content {
    padding: 4rem 2rem;
    text-align: center;
}

.boda-elegante2-theme .invitation-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.boda-elegante2-theme .event-date {
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--color-primary);
    font-weight: 500;
}

/* Contador regresivo */
.boda-elegante2-theme .countdown-section {
    background-color: var(--color-light);
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.boda-elegante2-theme #clock {
    display: flex;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.boda-elegante2-theme #clock .wraper-clock {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.boda-elegante2-theme #clock .wraper-clock span {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

.boda-elegante2-theme #clock .wraper-clock div {
    font-size: 0.8rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Secciones de información */
.boda-elegante2-theme .info-section {
    padding: 3rem 2rem;
    border-top: 1px solid var(--color-border);
}

.boda-elegante2-theme .info-section-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.boda-elegante2-theme .info-section-text {
    flex: 1;
}

.boda-elegante2-theme .info-section-text p {
    margin: 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.boda-elegante2-theme .info-section-text i {
    color: var(--color-secondary);
    margin-right: 0.8rem;
    font-size: 1.2rem;
    min-width: 1.5rem;
    text-align: center;
}

.boda-elegante2-theme .info-section-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.boda-elegante2-theme .info-section-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Botones */
.boda-elegante2-theme .map-button,
.boda-elegante2-theme .rsvp-form .button-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--color-primary);
    color: white !important;
    border: 1px solid var(--color-primary);
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    margin-top: 1rem;
}

.boda-elegante2-theme .map-button:hover,
.boda-elegante2-theme .rsvp-form .button-primary:hover {
    background-color: transparent;
    color: var(--color-primary) !important;
}

/* Layout alternativo para recepción */
.boda-elegante2-theme .reception-layout {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .boda-elegante2-theme .invitation-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .boda-elegante2-theme .info-section-content,
    .boda-elegante2-theme .reception-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .boda-elegante2-theme .info-section-image {
        max-width: 100%;
    }
    
    .boda-elegante2-theme #clock {
        gap: 1rem;
    }
    
    .boda-elegante2-theme #clock .wraper-clock {
        min-width: 60px;
    }
}


/* --- ESTILOS CORREGIDOS PARA EL CONTADOR HORIZONTAL --- */
.countdown-section {
    background-color: #faf7f5;
    padding: 30px 20px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
#clock {
    display: flex;
    justify-content: center;
    gap: 30px; /* Espacio entre cada elemento */
    text-align: center;
}
#clock .wraper-clock {
    display: flex;
    flex-direction: column;
}
#clock .wraper-clock span {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}
#clock .wraper-clock div {
    font-size: 0.8em;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* --- FIN DE ESTILOS DEL CONTADOR --- */

/* Estilos para las nuevas secciones de información */
.info-section {
    padding: 30px 40px;
    border-bottom: 1px solid #f0f0f0;
}
.info-section h3 {
    font-family: 'Parisienne', cursive;
    font-size: 3em;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    text-align: center;
}
.info-section-content {
    display: flex;
    align-items: center;
    gap: 30px;
}
.info-section-text {
    flex-grow: 1;
    text-align: left;
}
.info-section-text p {
    margin: 10px 0;
    font-size: 1.1em;
}
.info-section-text i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}
.info-section-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.map-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.map-button:hover {
    filter: brightness(90%);
}
/* Estilos para la sección de Ceremonia */
.ceremony-layout {
    display: flex;
    flex-direction: row; /* Texto a la derecha de la imagen */
    align-items: center;
    gap: 20px; /* Espacio entre imagen y texto */
    padding: 20px;
}

.ceremony-layout .info-section-image {
    width: 60%; /* La imagen ocupa el 60% del ancho */
    height: auto;
    object-fit: cover; /* La imagen cubre el contenedor manteniendo su proporción */
    border-radius: 8px; /* Opcional: bordes redondeados */
}

.ceremony-layout .info-section-text {
    width: 40%; /* El texto ocupa el 40% del ancho */
}

/* Estilos para la sección de Recepción */
.reception-layout {
    display: flex;
    flex-direction: row-reverse; /* Texto a la izquierda de la imagen */
    align-items: center;
    gap: 20px; /* Espacio entre imagen y texto */
    padding: 20px;
}

.reception-layout .info-section-image {
    width: 60%; /* La imagen ocupa el 60% del ancho */
    height: auto;
    object-fit: cover; /* La imagen cubre el contenedor manteniendo su proporción */
    border-radius: 8px; /* Opcional: bordes redondeados */
}

.reception-layout .info-section-text {
    width: 40%; /* El texto ocupa el 40% del ancho */
    text-align: right; /* Alinea el texto a la derecha */
}
/* --- ESTILOS PARA PLANTILLA XV MODERNO --- */

/* --- ESTILOS CORREGIDOS Y UNIFICADOS PARA PLANTILLA XV MODERNO --- */

/* Fuente principal más moderna para toda la plantilla */
.xv-theme {
    font-family: 'Montserrat', sans-serif;
}

/* Selector unificado para todos los títulos que usan la fuente especial Y el color del tema */
.xv-theme .invitation-hero h1,
.xv-theme .info-section h3 {
    font-family: 'Dancing Script', cursive;
    color: #e83e8c; /* AHORA EL COLOR SE APLICA AQUÍ DIRECTAMENTE */
}

/* Selector para otros elementos que también usan el color del tema */
.xv-theme #clock .wraper-clock span,
.xv-theme .info-section-text i {
    color: #e83e8c; /* Un rosa vibrante y moderno */
}

/* Estilos para los botones que usan el color del tema */
.xv-theme .map-button,
.xv-theme .rsvp-form .button-primary {
    background-color: #e83e8c;
    border-color: #e83e8c;
}

.xv-theme .map-button:hover,
.xv-theme .rsvp-form .button-primary:hover {
    background-color: #d1327b;
    border-color: #d1327b;
}

/* Estilo para el fondo del contador */
.xv-theme .countdown-section {
    background-color: #fceef5; /* Un fondo rosa muy pálido */
    border-top: 1px solid #f8d7da;
    border-bottom: 1px solid #f8d7da;
}
/* --- Estilos para la Galería de Fotos de la Invitación --- */
.gallery-section {
    padding: 40px 50px;
    background-color: #faf7f5;
    text-align: center;
}
.gallery-section h3 {
    font-family: 'Parisienne', cursive;
    font-size: 3em;
    color: var(--primary-color);
    margin: 0 0 30px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Estilos para el formulario de subida en el dashboard */
.gallery-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
/* Estilo para el nuevo botón de Acomodación de Mesas */
.layout-button {
    display: inline-flex; /* Para alinear el icono y el texto */
    align-items: center;
    gap: 8px; /* Espacio entre el icono y el texto */
    padding: 10px 20px;
    background-color: #8a63d2; /* Un color púrpura elegante y llamativo */
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.layout-button:hover {
    background-color: #7955b8; /* Un tono más oscuro al pasar el cursor */
    transform: translateY(-2px); /* Un sutil efecto de elevación */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Ajuste opcional para separar los botones de acción */
.main-actions {
    display: flex;
    gap: 15px; /* Crea un espacio entre los botones */
    align-items: center;
    margin-bottom: 20px; /* Espacio debajo de la barra de acciones */
}
#music-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#play-pause-btn {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

#play-pause-btn:hover {
    transform: scale(1.1);
}
#customizer-section { border-top: 1px solid #eee; padding-top: 20px; }
.customizer-container { display: flex; gap: 20px; }
.customizer-controls { flex: 1; }
.customizer-preview { flex: 2; border: 1px solid #ccc; min-height: 500px; }
#template-preview-iframe { width: 100%; height: 100%; border: none; }
.form-group input[type="color"] { width: 100%; height: 40px; padding: 0 5px; }
/* Clase para expandir el formulario cuando el personalizador está activo */
/* Estilo base para el formulario de configuración/edición */
/* Estilo base para el formulario de configuración/edición */
#event-setup-form {
    max-width: 700px; /* Un tamaño base un poco más grande */
    margin: 20px auto; /* Centra el formulario */
    transition: max-width 0.4s ease-in-out; /* Animación suave */
}

/* Estilo para CUANDO el personalizador está activo */
#event-setup-form.is-customizing {
    max-width: 1200px; /* Nuevo tamaño expandido para dar espacio a la vista previa */
}

/* Estilos para el contenedor del personalizador */
.customizer-container {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}
.customizer-controls {
    flex: 1; /* Ocupa 1/3 del espacio */
}
.customizer-preview {
    flex: 2; /* Ocupa 2/3 del espacio */
    border: 1px solid #ccc;
    border-radius: 8px;
    min-height: 500px;
}
#template-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.form-group input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* --- Estilos para la Vista Previa Flotante --- */

/* Contenedor principal del formulario cuando la personalización está activa */
.is-customizing {
    /* Hacemos espacio para la vista previa a la derecha */
    padding-right: 450px; /* Ajusta este valor según el ancho de tu preview */
    transition: padding-right 0.3s ease-in-out;
}

/* El contenedor de la vista previa */
.floating-preview-container {
    position: fixed; /* Lo saca del flujo normal y lo fija en la ventana */
    top: 0;
    right: 0;
    width: 420px; /* Ancho del panel de vista previa */
    height: 100vh; /* Altura completa de la ventana */
    background-color: #f0f2f5; /* Un color de fondo para el panel */
    box-shadow: -4px 0px 15px rgba(0, 0, 0, 0.1); /* Sombra para que destaque */
    transform: translateX(100%); /* Lo empieza oculto fuera de la pantalla */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clase que se añadirá con JS para mostrar el panel */
.floating-preview-container.visible {
    transform: translateX(0); /* Lo mueve a su posición visible */
}

/* Contenido dentro del panel (para centrar el iframe) */
.floating-preview-content {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 8px;
    overflow: hidden; /* Para que el iframe no se salga de los bordes redondeados */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* El iframe de la vista previa */
#template-preview-iframe {
    width: 100%;
    height: 100%;
    border: none; /* Quitamos el borde feo del iframe */
}

/* Ajustes para el layout de los controles del personalizador */
#customizer-section {
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
}
/* Estilos para el encabezado de la vista previa */
.floating-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    width: 100%;
    box-sizing: border-box;
}

.floating-preview-container {
    /* Ajustamos el flexbox para el nuevo header */
    flex-direction: column;
    padding: 0; /* Quitamos el padding anterior */
}

.floating-preview-content {
    /* Hacemos que ocupe el espacio restante */
    flex-grow: 1;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}
/* Estilos para alinear los botones del dashboard */
.dashboard-header-actions {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Espacio entre los botones */
    margin-top: 20px;
}

/* Ajustes para que los enlaces se vean como botones */
a.button-primary, a.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.8rem 1.5rem; /* Ajusta el padding si es necesario */
}

a.button-primary i, button.button-primary i,
a.button-secondary i, button.button-secondary i {
    margin-right: 0.5rem;
}



/* --- Header y Navegación --- */
header {
    background-color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Botones --- */
.button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: bold;
    border: 2px solid transparent;
    cursor: pointer;
}

.button.primary {
    background-color: var(--primary-color);
    color: #fff;
}

.button.primary:hover {
    background-color: #5548b1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.button.primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.button.primary-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.button.large {
    font-size: 1.1rem;
    padding: 15px 30px;
}


/* --- Sección Principal (Hero) --- */
.hero {
    background-color: var(--secondary-color);
    padding: 5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-image {
    max-width: 45%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* --- Sección de Características (Features) --- */
.features {
    padding: 5rem 5%;
    text-align: center;
}

.features h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Sección de Llamada a la Acción (CTA) --- */
.call-to-action {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5rem 5%;
    text-align: center;
}

.call-to-action h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.call-to-action p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- Footer --- */
footer {
    background-color: #333;
    color: #eee;
    padding: 2rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

footer nav ul {
    gap: 0.5rem;
}

footer nav ul li a {
    color: #ccc;
    padding: 0.5rem;
}

footer nav ul li a:hover {
    color: #fff;
}

/* --- Diseño Responsivo --- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features h2, .call-to-action h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}
/* Estilo para la imagen del logo dentro del header */
.logo img {
    height: 80px; /* Ajusta este valor a la altura que desees para tu logo */
    width: auto;  /* Mantiene la proporción de la imagen */
    display: block; /* Elimina espacios extra debajo de la imagen */
}
.plan-badge.plan-platino {
    background-color: #333; /* O un color dorado/plateado */
    color: white;
}