@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   CSS Global y Sistema de Diseño Premium - 50 Aniversario Beto y Rosa
   Estilo: Minimalista, Moderno, Ligero y Accesible (+60 años)
   ========================================================================== */

:root {
    /* Paleta de Colores Inspirada en la Invitación */
    --gold: #967527;          /* Oro medio legible en fondos claros */
    --gold-dark: #73581c;     /* Oro oscuro para texto de alto contraste */
    --gold-light: #f5edd8;    /* Crema dorada suave */
    --gold-rgb: 150, 117, 39;
    
    --sage: #5c705a;          /* Verde eucalipto/salvia para acentos y estados exitosos */
    --sage-dark: #41503f;
    --sage-light: #f0f4ef;
    
    --bg-body: #FAF8F5;       /* Fondo crema/lino suave y cálido */
    --bg-card: #FFFFFF;       /* Tarjetas de fondo blanco puro para contraste */
    --bg-input: #FFFFFF;
    --bg-light: #FAF9F6;
    
    --border-color: #E6E2D8;  /* Bordes suaves en tono piedra/crema */
    --border-hover: #967527;
    
    /* Colores del Sistema */
    --text-dark: #1F2220;     /* Carbón muy oscuro (casi negro) para textos principales */
    --text-muted: #606662;    /* Gris carbón medio para textos secundarios */
    --text-light: #FAF8F5;    /* Texto claro en botones oscuros */
    
    --success: #388e3c;       /* Verde accesible */
    --warning: #f57f17;       /* Naranja/Amarillo accesible */
    --danger: #d32f2f;        /* Rojo accesible */
    --info: #0288d1;          /* Azul accesible */

    /* Tipografía */
    --font-sans: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Cinzel', 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;
    --font-script: 'Alex Brush', cursive;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 14px;
}

/* Reset y Estilos Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(circle at 5% 5%, rgba(150, 117, 39, 0.03) 0%, transparent 35%),
        radial-gradient(circle at 95% 95%, rgba(92, 112, 90, 0.03) 0%, transparent 35%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Helper para Flex y Layout */
.full-height {
    min-height: 100vh;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mr-2 { margin-right: 0.5rem; }

/* Enlaces */
a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--sage);
}

/* Tarjetas Minimalistas (Textura premium de papel algodón/lino) */
.glass-card {
    background: var(--bg-card) url('texture.png') repeat;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(150, 117, 39, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px rgba(150, 117, 39, 0.08), 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Botones Accesibles y Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.8rem;
    font-size: 1.05rem; /* Fuente más grande para legibilidad */
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    min-height: 52px; /* Altura mínima para accesibilidad táctil */
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--text-light) !important;
    box-shadow: 0 4px 15px rgba(150, 117, 39, 0.2);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(150, 117, 39, 0.35);
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
}

.btn-gold:disabled {
    background: var(--border-color);
    color: var(--text-muted) !important;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold-dark) !important;
}

.btn-outline:hover:not(:disabled) {
    background: rgba(150, 117, 39, 0.05);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}

.btn-outline:disabled {
    border-color: var(--border-color);
    color: var(--text-muted) !important;
    cursor: not-allowed;
}

.btn-danger {
    background: var(--danger);
    color: var(--text-light) !important;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.15);
}

.btn-danger:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.25);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: 38px;
    border-radius: 8px;
}

/* Alertas */
.alert {
    padding: 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    border: 1px solid transparent;
    font-weight: 500;
}

.alert-danger {
    background: #fdf2f2;
    border-color: #f8b4b4;
    color: #c81e1e;
}

.alert-success {
    background: #f3faf5;
    border-color: #def7ec;
    color: #03543f;
}

/* Controles de Formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.95rem 1.2rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    transition: var(--transition);
    min-height: 52px;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(150, 117, 39, 0.08);
    background: #ffffff;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control option {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* Login Layout */
.login-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 1.5rem;
}

.login-card {
    position: relative;
    padding: 3.5rem 2.5rem;
    border-top: 5px solid var(--gold);
}

.login-header {
    margin-bottom: 2.5rem;
}

.anniversary-rings {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.8rem;
    animation: goldPulse 3.5s infinite ease-in-out;
}

@keyframes goldPulse {
    0%, 100% { filter: drop-shadow(0 0 1px rgba(150, 117, 39, 0.2)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 6px rgba(150, 117, 39, 0.45)); transform: scale(1.03); }
}

.serif-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: normal;
    color: var(--gold-dark);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0.4rem;
}

.form-instruction {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.form-footer {
    margin-top: 1.8rem;
}

.link-muted {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: underline;
}

.link-muted:hover {
    color: var(--gold-dark);
}

/* NAVEGACIÓN Y ESTRUCTURA DE PÁGINAS */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand .logo-text {
    font-family: var(--font-script);
    font-size: 2.2rem;
    font-weight: normal;
    color: var(--gold-dark);
    margin-left: 0.6rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 1.8rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover, 
.nav-links li.active a {
    color: var(--gold-dark);
    background: var(--gold-light);
}

.nav-user {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.nav-user span {
    margin-right: 1.2rem;
    color: var(--text-dark);
}

/* Container de la App */
.app-container {
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* KPIs / Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
}

.stat-card:hover {
    border-color: var(--gold-light);
    box-shadow: 0 8px 25px rgba(150, 117, 39, 0.05);
}

.stat-info h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.stat-info .stat-value {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--gold-dark);
    line-height: 1.2;
}

.stat-icon {
    font-size: 2.4rem;
    opacity: 0.8;
}

/* Kanban / Lista de Tareas */
.dashboard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters-wrapper {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    outline: none;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 40px;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(150, 117, 39, 0.05);
}

/* Estilo Kanban/Tablero de Tareas */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kanban-column {
    background: #f5f3ed; /* Fondo ligeramente contrastado y cálido */
    border-radius: var(--radius);
    border: 1px solid rgba(150, 117, 39, 0.05);
    padding: 1.2rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(150, 117, 39, 0.15);
}

.kanban-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dark);
    font-weight: 700;
}

.column-count {
    background: var(--gold-dark);
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.tasks-list-container {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Tarea Card */
.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.015);
}

.task-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(150, 117, 39, 0.06);
}

.task-card.blocked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--danger);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}

.task-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.task-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
}

.task-date {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.task-assignees {
    display: flex;
    gap: 4px;
}

.assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-card);
    text-transform: uppercase;
}

.assignee-avatar.other {
    background: var(--border-color);
    color: var(--text-muted);
}

.lock-icon {
    font-size: 0.9rem;
    color: var(--danger);
}

/* DIAGRAMA DE GANTT (Visualización de Cronograma) */
.gantt-section {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.gantt-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.gantt-chart {
    min-width: 900px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}

.gantt-header-label, 
.gantt-header-timeline {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-dark);
}

.gantt-header-timeline {
    display: flex;
    justify-content: space-between;
    padding-left: 1rem;
}

.timeline-unit {
    flex: 1;
    text-align: center;
    border-left: 1px dashed var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gantt-row {
    display: contents;
}

.gantt-row-label {
    grid-column: 1;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-row-bar-container {
    grid-column: 2;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    background-image: linear-gradient(to right, #FAF9F6 1px, transparent 1px);
    background-size: calc(100% / 12) 100%;
}

.gantt-bar {
    height: 28px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(150, 117, 39, 0.7) 0%, rgba(115, 88, 28, 0.7) 100%);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.gantt-bar:hover {
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(150, 117, 39, 0.3);
}

.gantt-bar.finalizado {
    background: linear-gradient(90deg, rgba(56, 142, 60, 0.75) 0%, rgba(46, 125, 50, 0.75) 100%);
    border-color: var(--success);
}
.gantt-bar.en_tramite {
    background: linear-gradient(90deg, rgba(2, 136, 209, 0.75) 0%, rgba(1, 119, 181, 0.75) 100%);
    border-color: var(--info);
}
.gantt-bar.tramitado {
    background: linear-gradient(90deg, rgba(245, 127, 23, 0.75) 0%, rgba(230, 81, 0, 0.75) 100%);
    border-color: var(--warning);
}

/* LISTA DE INVITADOS PANEL */
.guests-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.guests-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 1rem;
}

.guests-table th {
    background: #fcfbfa;
    padding: 1.2rem 1rem;
    font-weight: 700;
    color: var(--gold-dark);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.guests-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.guests-table tr:hover td {
    background: #faf8f5;
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pendiente { background: #fffde7; color: #f57f17; border: 1px solid #fff59d; }
.badge-confirmado { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.badge-cancelado { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* VISTA DE CONFIRMACIÓN PÚBLICA (RSVP) */
.rsvp-body {
    padding: 1.5rem 1rem;
}

.invitation-image-wrapper {
    margin-left: -2.5rem;
    margin-right: -2.5rem;
    margin-top: -2.5rem;
    width: calc(100% + 5rem);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.invitation-img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    border-bottom: 1px solid var(--border-color);
    display: block;
}

.rsvp-wrapper {
    width: 100%;
    max-width: 580px;
    padding: 1.5rem;
}

.rsvp-card {
    position: relative;
    border-top: 6px solid var(--gold);
    box-shadow: 0 15px 45px rgba(150, 117, 39, 0.08), 0 2px 8px rgba(0,0,0,0.02);
}

.rsvp-card::before, .login-card::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(150, 117, 39, 0.18);
    pointer-events: none;
    border-radius: calc(var(--radius) - 4px);
    z-index: 1;
}

/* Divisor Dorado Elegante */
.gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    gap: 15px;
}
.gold-divider::before,
.gold-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
    max-width: 120px;
}
.gold-divider .diamond {
    transform: rotate(45deg);
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--gold);
}

/* Badge de Pase Estilo Ticket */
.ticket-badge {
    background: var(--sage-light);
    border: 1px dashed var(--sage);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.ticket-badge::before,
.ticket-badge::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    border-radius: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--sage);
    z-index: 2;
}
.ticket-badge::before {
    left: -8px;
}
.ticket-badge::after {
    right: -8px;
}

/* Elementos Botánicos Decorativos */
.botanical-decor {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    opacity: 0.16;
    width: 280px;
    height: auto;
    transition: var(--transition);
}
.botanical-decor.left {
    bottom: -60px;
    left: -60px;
    transform: rotate(45deg);
}
.botanical-decor.right {
    top: -60px;
    right: -60px;
    transform: rotate(-135deg);
}

/* Checkboxes Grandes y Premium (Accesibilidad) */
input[type="checkbox"].diet-option {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    cursor: pointer;
    vertical-align: middle;
}
input[type="checkbox"].diet-option:checked {
    background: var(--sage);
    border-color: var(--sage);
}
input[type="checkbox"].diet-option:checked::before {
    content: "✓";
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
}

.attendance-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.attendance-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: var(--bg-light);
}

.attendance-option:hover {
    border-color: var(--gold);
    background: #ffffff;
}

.attendance-option.active {
    border-color: var(--sage);
    background: var(--sage-light);
    box-shadow: 0 4px 15px rgba(92, 112, 90, 0.1);
}

.attendance-option .opt-icon {
    font-size: 2.8rem;
    margin-bottom: 0.6rem;
    display: block;
}

.attendance-option .opt-label {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
}

/* Checkboxes Grandes para Accesibilidad */
input[type="checkbox"].diet-option {
    width: 24px !important;
    height: 24px !important;
    cursor: pointer;
    accent-color: var(--sage);
}

/* VENTANAS MODALES (POP-UPS) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 34, 32, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 100%;
    max-width: 620px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.8rem;
}

.modal-header h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--gold-dark);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

/* HISTORIAL DE NOTAS */
.notes-timeline {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.2rem;
    background: #fbfaf8;
    margin-top: 1.2rem;
}

.notes-timeline .note-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.95rem;
}

.notes-timeline .note-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gold-dark);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.note-text {
    color: var(--text-dark);
    line-height: 1.5;
}

.note-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem 0;
}

/* Import / Export block */
.import-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gold-light);
    border: 1px dashed var(--gold);
    border-radius: var(--radius);
}

.import-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

/* Subtareas */
.subtask-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.2rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.subtask-item:hover {
    background: var(--sage-light);
    border-color: var(--sage);
    box-shadow: 0 4px 12px rgba(92, 112, 90, 0.05);
}

.status-badge {
    display: inline-flex;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.sin_iniciar {
    background: #faf9f6;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.status-badge.en_tramite {
    background: #e1f5fe;
    color: var(--info);
    border: 1px solid #b3e5fc;
}

.status-badge.tramitado {
    background: #fff3e0;
    color: var(--warning);
    border: 1px solid #ffe0b2;
}

.status-badge.finalizado {
    background: #e8f5e9;
    color: var(--success);
    border: 1px solid #a5d6a7;
}

/* Responsivo */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-wrapper {
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .filter-select {
        flex: 1;
        min-width: 130px;
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
    }
    
    .import-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }
    
    .import-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .attendance-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .glass-card {
        padding: 1.8rem 1.2rem;
    }
    
    .rsvp-body {
        padding: 0 !important;
    }
    
    .rsvp-wrapper {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    .rsvp-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: none;
        min-height: 100vh;
    }
    
    .invitation-image-wrapper {
        margin-left: -1.2rem;
        margin-right: -1.2rem;
        margin-top: -1.8rem;
        width: calc(100% + 2.4rem);
        margin-bottom: 1.5rem;
    }
    
    .invitation-img {
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .botanical-decor {
        width: 150px;
    }
    .botanical-decor.left {
        bottom: -20px;
        left: -20px;
    }
    .botanical-decor.right {
        top: -20px;
        right: -20px;
    }
    
    .rsvp-card::before, .login-card::before {
        top: 6px;
        left: 6px;
        right: 6px;
        bottom: 6px;
        border-radius: 0;
    }
}

/* Título caligráfico de alta gama */
.script-title {
    font-family: var(--font-script);
    font-size: 3.5rem;
    font-weight: normal;
    color: var(--gold-dark);
    line-height: 1;
    margin-bottom: 0.2rem;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .script-title {
        font-size: 2.8rem;
    }
}
