:root {
    --primary-cyan: #00A9B5;
    --border-cyan: #7FE0E6;
    --text-dark: #1E5161;
    --text-muted: #557A85;
}

/* Selector de pestañas */
.sedes-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.sedes-tab-btn {
    background-color: #ffffff;
    color: var(--primary-cyan);
    border: 2px solid var(--border-cyan);
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 169, 181, 0.15);
}

.sedes-tab-btn.active, .sedes-tab-btn:hover {
    background-color: var(--primary-cyan);
    color: #ffffff;
    border-color: var(--primary-cyan);
}

/* Grilla responsiva */
.sedes-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 24px;
}

@media (max-width: 480px) {
    .sedes-grid {
        grid-template-columns: 1fr;
    }
}

/* Tarjeta individual */
.sede-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2.5px solid var(--border-cyan);
    border-radius: 18px;
    padding: 16px;
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sede-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 169, 181, 0.18);
}

/* Imagen de la sede */
.sede-card-img {
    width: 130px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 18px;
}

/* Información de la sede */
.sede-card-info {
    flex-grow: 1;
    padding-right: 25px;
}

.sede-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-cyan);
    margin: 0 0 8px 0;
}

.sede-card-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.sede-card-item i {
    color: var(--primary-cyan);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Flecha inferior derecha */
.sede-card-arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    color: var(--primary-cyan);
    font-size: 1.1rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Overlay y Contenedor */
.sede-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.sede-modal.active {
    display: flex;
}

.sede-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.sede-modal-container {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 5px;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.sede-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: #ffffff;
    border: none;
    font-size: 2rem;
    color: #1E5161;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Cuerpo de 2 Columnas */
.sede-modal-body {
    display: flex;
    flex-wrap: wrap;
}

.sede-info-column {
    flex: 1 1 250px;
    padding: 0px;
    box-sizing: border-box;
}

.sede-map-column {
    flex: 1 1 420px;
    min-height: 350px;
    background: #f0f0f0;
}

/* Detalle de Información */
.sede-info-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 16px;
}

.sede-info-title {
    color: #0c72a0;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.sede-info-subtitle {
    color: #0c72a0;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.sede-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #557A85;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.sede-info-item i {
    color: #00A9B5;
}

.sede-info-divider {
    height: 1px;
    background: #7FE0E6;
    margin: 14px 0;
}

/* Medios de Pago */
.sede-payment-icons {
    display: flex;
    gap: 8px;
}

.badge-payment {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.75rem;
    color: white;
}
.visa { background: #1A1F71; }
.mastercard { background: #EB001B; }
.yape { background: #742284; }
.plin { background: #00A3E0; }

/* Galería Inferior */
.sede-gallery-row {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #0c72a0;
    overflow-x: auto;
}

.sede-gallery-row img {
    height: 120px;
    width: 180px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Adaptación Mobile */
@media (max-width: 768px) {
    .sede-modal-body {
        flex-direction: column;
    }
    .sede-map-column {
        height: 250px;
    }
}