/* Grupos NA Manager Pro - Paleta Personalizada v4.1 */

/* ===== PALETA DE COLORES ===== */
/*
Azul Oscuro (Jacksons Morado Oscuro): #1C1E8C / rgb(28, 30, 140)
Azul Brillante (Resplandor azul): #0A77ED / rgb(10, 119, 237)
*/

:root {
    --color-oscuro: #1C1E8C;
    --color-brillante: #0A77ED;
    --color-texto-claro: #ffffff;
    --color-texto-oscuro: #2c3e50;
}

.grupos-na-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== HEADER ===== */
.grupos-na-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1C1E8C 0%, #0A77ED 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 25px rgba(28, 30, 140, 0.3);
}

.grupos-na-header h2 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: white;
}

.subtitulo {
    font-size: 1.1em;
    opacity: 0.95;
    margin: 0;
    color: white;
}

/* ===== FILTROS ===== */
.grupos-na-filtros {
    background: linear-gradient(135deg, #1C1E8C 0%, #0A77ED 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 6px 20px rgba(28, 30, 140, 0.4);
}

.filtros-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filtro-item {
    flex: 1;
    min-width: 200px;
}

.filtro-item label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.filtro-item select,
.filtro-item input[type="text"] {
    width: 100%;
    padding: 12px 18px; /* Margen izquierdo aumentado de 15px a 18px */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: white;
    font-size: 1em;
    transition: all 0.3s;
    color: #2c3e50;
}

.filtro-item select:focus,
.filtro-item input[type="text"]:focus {
    outline: none;
    border-color: #0A77ED;
    box-shadow: 0 0 0 3px rgba(10, 119, 237, 0.2);
}

.filtro-busqueda {
    flex: 2;
}

.btn-limpiar,
.btn-exportar {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-limpiar {
    background: #ff6b6b;
    color: white;
}

.btn-limpiar:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.btn-exportar {
    background: #f39c12;
    color: white;
}

.btn-exportar:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.filtros-resultados {
    text-align: center;
    color: white;
    font-size: 1.1em;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.filtros-resultados strong {
    color: #ffd700;
    font-size: 1.2em;
}

/* ===== PROVINCIAS ===== */
.grupos-na-provincia {
    margin-bottom: 50px;
}

.provincia-titulo {
    background: linear-gradient(135deg, #1C1E8C 0%, #0A77ED 100%);
    color: white;
    text-transform:uppercase;
    padding: 18px 30px;
    margin: 0 0 25px 0;
    font-size: 1.8em;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(28, 30, 140, 0.3);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* ===== GRID DE CARDS ===== */
.grupos-na-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* ===== CARDS ===== */
.grupo-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
    overflow: hidden;
    border-left: 5px solid #0A77ED;
}

.grupo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(10, 119, 237, 0.25);
}

.grupo-header {
    padding: 25px;
    text-align: center;
}

/* Badge arriba, centrado */
.badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

/* Título centrado */
.grupo-nombre {
    font-weight: 700;
    color: #1C1E8C;
    font-size: 1.4em;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 20px 0;
}

/* ===== BADGES DE TIPO ===== */
.badge-tipo {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75em;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.badge-presencial {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.4);
}

.badge-virtual {
    background: linear-gradient(135deg, #0A77ED 0%, #1C1E8C 100%);
    box-shadow: 0 3px 10px rgba(10, 119, 237, 0.4);
}

.badge-hibrida {
    background: linear-gradient(135deg, #1C1E8C 0%, #0A77ED 100%);
    box-shadow: 0 3px 10px rgba(28, 30, 140, 0.4);
}

.col-horario,
.col-direccion {
    margin: 12px 0;
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}

.col-horario {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0A77ED;
}

.col-direccion {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #27ae60;
}

/* ===== BOTONES DE ACCIÓN ===== */
.col-acciones {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.btn-waze,
.btn-google-maps,
.btn-virtual {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    color: white;
}

.btn-waze {
    background: #00d4ff;
}

.btn-waze:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.btn-google-maps {
    background: #4CAF50;
}

.btn-google-maps:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-virtual {
    background: linear-gradient(135deg, #1C1E8C 0%, #0A77ED 100%);
}

.btn-virtual:hover {
    background: linear-gradient(135deg, #0A77ED 0%, #1C1E8C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 30, 140, 0.4);
}

.btn-ver-mas {
    width: 100%;
    padding: 10px;
    background: #ecf0f1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #1C1E8C;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-ver-mas:hover {
    background: #0A77ED;
    color: white;
}

/* ===== DETALLES ===== */
.grupo-detalles {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-top: 2px solid #0A77ED;
    padding: 20px 25px;
}

.detalle-item {
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #0A77ED;
}

.detalle-item:last-child {
    margin-bottom: 0;
}

.detalle-item strong {
    display: block;
    color: #1C1E8C;
    font-size: 1em;
    margin-bottom: 8px;
}

.detalle-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Link virtual especial */
.detalle-virtual {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #0A77ED;
}

.link-virtual {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0A77ED 0%, #1C1E8C 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(10, 119, 237, 0.3);
}

.link-virtual:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 119, 237, 0.5);
    background: linear-gradient(135deg, #1C1E8C 0%, #0A77ED 100%);
}

/* ===== ESTADOS ===== */
.grupo-card.oculto,
.grupos-na-provincia.oculto {
    display: none;
}

.grupos-na-no-results {
    text-align: center;
    padding: 60px 40px;
    font-size: 1.3em;
    color: #777;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1200px) {
    .grupos-na-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .grupos-na-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .grupos-na-container {
        padding: 10px;
    }
    
    .grupos-na-header h2 {
        font-size: 1.8em;
    }
    
    .grupos-na-filtros {
        padding: 20px;
    }
    
    .filtros-row {
        flex-direction: column;
    }
    
    .filtro-item {
        width: 100%;
    }
    
    .grupos-na-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .grupo-nombre {
        font-size: 1.1em;
    }
    
    .provincia-titulo {
        font-size: 1.4em;
        padding: 15px 20px;
        color:white;
    }
    
    .btn-limpiar,
    .btn-exportar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .grupos-na-header h2 {
        font-size: 1.5em;
    }
    
    .provincia-titulo {
        font-size: 1.2em;
           color:white;
    }
    
    .badge-tipo {
        font-size: 0.65em;
        padding: 4px 8px;
    }
}
