/* CSS Específico para la Agenda - Sin Conflictos */

/* Google Calendar Style - Complete Redesign */
.gcal-container {
    display: flex;
    height: calc(100vh - 120px);
    background: #fff;
    overflow: visible; /* Cambiar a visible para que se vean todos los eventos */
}

/* Left Sidebar - Google Calendar Style */
.gcal-sidebar {
    width: 300px;
    background: #fff;
    border-right: 1px solid #dadce0;
    padding: 16px;
    overflow-y: auto;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

/* Mini Calendar */
.gcal-mini-calendar {
    margin-bottom: 24px;
}

.gcal-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.gcal-mini-header h3 {
    font-size: 16px;
    font-weight: 400;
    color: #3c4043;
    margin: 0;
}

.gcal-nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcal-nav-btn:hover {
    background-color: #f1f3f4;
}

.gcal-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #dadce0;
    border: 1px solid #dadce0;
    border-radius: 8px;
    overflow: hidden;
}

.gcal-mini-day-header {
    background: #f8f9fa;
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #5f6368;
}

.gcal-mini-day {
    background: #fff;
    padding: 8px 4px;
    text-align: center;
    font-size: 13px;
    color: #3c4043;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcal-mini-day:hover {
    background-color: #f1f3f4;
}

.gcal-mini-day.selected {
    background-color: #87ceeb; /* Celeste claro para día seleccionado */
    color: #333;
    border-radius: 50%;
}

.gcal-mini-day.other-month {
    color: #dadce0;
}

.gcal-mini-day.today {
    background-color: #1a73e8; /* Azul para día actual */
    color: white;
    border-radius: 50%;
    font-weight: 500;
}

/* Main Calendar Area */
.gcal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    position: relative; /* Limita elementos absolutos (línea roja) al recuadro principal */
}

/* Calendar Header */
.gcal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #dadce0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gcal-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.gcal-header-left h1 {
    font-size: 22px;
    font-weight: 400;
    color: #3c4043;
    margin: 0;
}

.gcal-view-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 2px;
}

.gcal-view-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    color: #5f6368;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
}

.gcal-view-tab.active {
    background: #fff;
    color: #1a73e8;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.gcal-view-tab:hover:not(.active) {
    background: rgba(255,255,255,0.5);
}

.gcal-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gcal-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.gcal-search-input {
    width: 280px;
    padding: 8px 12px 8px 40px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.2s;
}

.gcal-search-input:focus {
    outline: none;
    background: #fff;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.gcal-search-icon {
    position: absolute;
    left: 12px;
    color: #5f6368;
    font-size: 16px;
}

.gcal-settings-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.gcal-settings-btn:hover {
    background-color: #f1f3f4;
}

/* Ocultar reloj textual en header */
.gcal-clock {
    display: none;
}

/* Calendar Grid Container */
.gcal-grid-container {
    display: flex;
    position: relative;
    overflow-y: auto;
    background: #fff;
    max-height: calc(100vh - 200px); /* Limitar altura para scrollbar */
    border: 1px solid #dadce0; /* Borde para delimitar el área */
    width: 100%; /* Usar todo el ancho disponible */
}

/* Time Column */
.gcal-time-column {
    width: 55px;
    background: #fff;
    border-right: 1px solid #dadce0;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gcal-timezone {
    padding: 12px 8px;
    font-size: 11px;
    color: #5f6368;
    text-align: center;
    border-bottom: 1px solid #dadce0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 70px;
    flex-shrink: 0;
}

.gcal-time-slots {
    position: relative;
    background-image: linear-gradient(to bottom, #dadce0 1px, transparent 1px);
    background-size: 100% 60px;
    background-position: 0 0;
    margin-top: 0;
    padding-top: 0;
    height: 540px; /* 9 horas * 60px = 540px */
    display: flex;
    flex-direction: column;
}

.gcal-time-slot {
    height: 60px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 500;
    color: #5f6368;
    text-align: center;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    line-height: 1.2;
    box-sizing: border-box;
    margin: 0;
    border: none;
    flex-shrink: 0;
}

/* Days Container */
.gcal-days-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Days Header */
.gcal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fff;
    border-bottom: 1px solid #dadce0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gcal-day-header {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #dadce0;
    background: #f8f9fa;
}

.gcal-day-header:last-child {
    border-right: none;
}

.gcal-day-name {
    font-size: 11px;
    font-weight: 500;
    color: #5f6368;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.gcal-day-number {
    font-size: 16px;
    font-weight: 400;
    color: #3c4043;
}

.gcal-day-header.today .gcal-day-number {
    background: #1a73e8; /* Azul para día actual */
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcal-day-header.selected .gcal-day-number {
    background: #87ceeb; /* Celeste claro para día seleccionado */
    color: #333;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Days Grid */
.gcal-days-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    position: relative;
    background-image: 
        linear-gradient(to right, #dadce0 1px, transparent 1px),
        linear-gradient(to bottom, #dadce0 1px, transparent 1px);
    background-size: calc(100% / 7) 60px;
    background-position: 0 0;
    height: 540px; /* 9 horas * 60px = 540px */
}

.gcal-day-column {
    border-right: 1px solid #dadce0;
    position: relative;
}

.gcal-day-column:last-child {
    border-right: none;
}

.gcal-day-slots {
    position: relative;
    height: 540px; /* 9 horas * 60px = 540px */
    overflow: visible; /* Permitir que eventos se muestren incluso si están fuera del rango */
}

.gcal-day-slots .gcal-time-slot {
    height: 60px;
    border-bottom: none;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.gcal-time-slot:hover {
    background-color: #f8f9fa;
}

/* Calendar Events - Google Calendar Style */
.gcal-event {
    position: absolute !important;
    left: 1px;
    right: 1px;
    background: #1a73e8;
    color: white;
    border-radius: 3px;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    overflow: hidden; /* Ocultar texto que se sale */
    text-overflow: ellipsis;
    white-space: normal; /* Permitir múltiples líneas */
    word-wrap: break-word; /* Romper palabras largas */
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: all 0.2s;
    border-left: 3px solid #1a73e8;
    line-height: 1.3;
    z-index: 1;
    min-height: 20px;
    box-sizing: border-box; /* Incluir padding en el tamaño */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gcal-event:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
    transform: scale(1.01);
}

.gcal-event.test-drive {
    background: #1a73e8;
    border-left-color: #1a73e8;
}

.gcal-event.meeting {
    background: #34a853;
    border-left-color: #34a853;
}

.gcal-event.other {
    background: #ea4335;
    border-left-color: #ea4335;
}

.gcal-event.purple {
    background: #9c27b0;
    border-left-color: #9c27b0;
}

/* Current Time Line */
.gcal-current-time {
    display: none;
}

.gcal-current-time::before {
    content: '';
    position: absolute;
    left: -6px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: #ea4335;
    border-radius: 50%;
}

/* Responsive Google Calendar */
@media (max-width: 768px) {
    .gcal-container {
        flex-direction: column;
        height: calc(100vh - 80px);
    }
    
    .gcal-sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #dadce0;
        padding: 12px;
    }
    
    .gcal-mini-calendar {
        margin-bottom: 16px;
    }
    
    .gcal-mini-header h3 {
        font-size: 14px;
    }
    
    .gcal-main {
        flex: 1;
        overflow: hidden;
    }
    
    .gcal-header {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .gcal-header-left {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .gcal-header-left h1 {
        font-size: 18px;
    }
    
    .gcal-view-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .gcal-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .gcal-search-input {
        width: 200px;
    }
    
    .gcal-time-column {
        width: 45px;
    }
    
    .gcal-days-header {
        grid-template-columns: repeat(7, 110px);
    }
    
    .gcal-days-grid {
        grid-template-columns: repeat(7, 110px);
        background-size: 110px 50px;
    }
    
    .gcal-time-slot {
        height: 50px;
        font-size: 10px;
    }
    
    .gcal-day-header {
        padding: 8px 4px;
    }
    
    .gcal-day-name {
        font-size: 10px;
    }
    
    .gcal-day-number {
        font-size: 14px;
    }
    
    .gcal-event {
        font-size: 10px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .gcal-sidebar {
        max-height: 150px;
        padding: 8px;
    }
    
    .gcal-mini-grid {
        gap: 0;
    }
    
    .gcal-mini-day {
        min-height: 24px;
        font-size: 11px;
    }
    
    .gcal-header {
        padding: 8px 12px;
    }
    
    .gcal-header-left h1 {
        font-size: 16px;
    }
    
    .gcal-view-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .gcal-search-input {
        width: 150px;
        font-size: 12px;
    }
    
    .gcal-time-column {
        width: 35px;
    }
    
    .gcal-days-header {
        grid-template-columns: repeat(7, 90px);
    }
    
    .gcal-days-grid {
        grid-template-columns: repeat(7, 90px);
        background-size: 90px 40px;
    }
    
    .gcal-time-slot {
        height: 40px;
        font-size: 9px;
    }
    
    .gcal-day-header {
        padding: 6px 2px;
    }
    
    .gcal-day-name {
        font-size: 9px;
    }
    
    .gcal-day-number {
        font-size: 12px;
    }
    
    .gcal-event {
        font-size: 9px;
        padding: 1px 2px;
    }
}

/* Estilos para eventos pasados */
.gcal-event.past-event {
    opacity: 0.6;
    background: #9aa0a6 !important;
    border-left-color: #9aa0a6 !important;
    color: #5f6368 !important;
    position: absolute !important;
}

.gcal-event.past-event::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    pointer-events: none;
}

.gcal-event.past-event:hover {
    opacity: 0.8;
    transform: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Estilos específicos para eventos pasados por tipo */
.gcal-event.past-event.test-drive {
    background: #9aa0a6 !important;
    border-left-color: #9aa0a6 !important;
}

.gcal-event.past-event.meeting {
    background: #9aa0a6 !important;
    border-left-color: #9aa0a6 !important;
}

.gcal-event.past-event.other {
    background: #9aa0a6 !important;
    border-left-color: #9aa0a6 !important;
}

.gcal-event.past-event.purple {
    background: #9aa0a6 !important;
    border-left-color: #9aa0a6 !important;
}

/* Vista de Lista y Resumen */
.agenda-view {
    padding: 20px;
    background: #fff;
    min-height: calc(100vh - 120px);
}

.list-container {
    max-width: 1200px;
    margin: 0 auto;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.list-header h2 {
    margin: 0;
    color: #3c4043;
    font-size: 24px;
}

.list-filters {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #3c4043;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.event-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.event-item.completed {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

.event-item.pending {
    border-left: 4px solid #3b82f6;
    background: #eff6ff;
}

.event-item.overdue {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.event-item.today {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.event-item.in-progress {
    border-left: 4px solid #8b5cf6;
    background: #faf5ff;
}

.event-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.event-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #f3f4f6;
}

.event-icon.testdrive {
    background: #dbeafe;
    color: #1d4ed8;
}

.event-icon.meeting {
    background: #dcfce7;
    color: #16a34a;
}

.event-icon.quotation {
    background: #fef3c7;
    color: #d97706;
}

.event-icon.call {
    background: #fce7f3;
    color: #be185d;
}

.event-info {
    flex: 1;
}

.event-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
}

.event-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.event-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.event-status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.event-status-badge.pending {
    background: #dbeafe;
    color: #1e40af;
}

.event-status-badge.overdue {
    background: #fee2e2;
    color: #991b1b;
}

.event-status-badge.today {
    background: #fef3c7;
    color: #92400e;
}

.event-status-badge.in-progress {
    background: #e0e7ff;
    color: #3730a3;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-time {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.event-location {
    font-size: 14px;
    color: #6b7280;
}

.event-description {
    font-size: 14px;
    color: #374151;
    background: #f9fafb;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #d1d5db;
}

.event-email,
.event-rut {
    font-size: 14px;
    color: #6b7280;
    margin-top: 5px;
}

.event-client .registered-indicator {
    color: #10b981;
    font-weight: 500;
}

/* Vista de Resumen */
.summary-container {
    max-width: 1200px;
    margin: 0 auto;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.summary-header h2 {
    margin: 0;
    color: #3c4043;
    font-size: 24px;
}

.summary-period {
    display: flex;
    gap: 10px;
    align-items: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.summary-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-value {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.summary-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-container {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin: 0 0 20px 0;
    color: #3c4043;
    font-size: 18px;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 20px;
}

/* Agenda Calendar Styles */
.agenda-nav {
    background: #fff;
    border-bottom: 1px solid #dadce0;
    padding: 0 20px;
}

.nav-tabs {
    display: flex;
    gap: 0;
}

.nav-tab {
    background: none;
    border: none;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-tab:hover {
    color: #1a73e8;
    background: #f8f9fa;
}

.nav-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
    background: #f8f9fa;
}

.agenda-main {
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

.calendar-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dadce0;
    background: #fff;
}

.calendar-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    color: #3c4043;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-nav span {
    font-size: 16px;
    font-weight: 500;
    color: #3c4043;
    min-width: 120px;
    text-align: center;
}

.google-calendar-wrapper {
    padding: 20px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.google-calendar-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    z-index: 10;
    pointer-events: none;
}

.google-calendar-wrapper iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: -50px;
    height: 650px;
}

.events-container,
.completed-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.events-header,
.completed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dadce0;
    background: #fff;
}

.events-header h2,
.completed-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    color: #3c4043;
}

.events-filters,
.completed-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select,
.search-input {
    padding: 8px 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.search-input {
    width: 200px;
}

.events-list,
.completed-list {
    padding: 20px;
    min-height: 400px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #e8f0fe;
    border-radius: 20px;
    font-size: 12px;
    color: #1a73e8;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #1a73e8;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #5f6368;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #3c4043;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Estilos para elementos de contacto en eventos */
.event-meta-item,
.event-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 14px;
}

.event-meta-item span:first-child,
.event-detail span:first-child {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.event-meta-item span:last-child,
.event-detail span:last-child {
    flex: 1;
    color: var(--text);
}

/* Estilos específicos para teléfono y email */
.event-phone {
    color: #6b7280;
    font-weight: 500;
}

.event-email {
    color: var(--text);
    font-weight: 500;
}

/* ===== Agenda Modals (Responsive) ===== */
#event-details-modal,
#event-modal {
    display: none;
}

#event-details-modal.show,
#event-modal.active {
    display: flex !important;
}

.event-modal-dialog {
    width: 92%;
    max-width: 640px;
}

@media (max-width: 768px) {
    .event-modal-dialog {
        width: 96%;
        max-width: 560px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .event-modal-dialog {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    .event-modal-body {
        max-height: calc(100vh - 120px);
        overflow: auto;
    }
}

/* Loading spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}