:root {
    --brand-blue: #1c3c8c;
    --brand-blue-900: #0f2b66;
    --brand-orange: #ff6a00;
    --bg: #f5f7fb;
    --text: #1f2a44;
    --muted: #6b7a90;
    --card: #ffffff;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sedes-section {
    padding: 80px 10%;
    background: #e5e7eb;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.titulo-sedes {
    font-size: 48px;
    font-weight: 900;
    color: var(--brand-blue);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    text-align: center;
}

.titulo-sedes span {
    color: var(--brand-orange);
}

.descripcion-sedes {
    max-width: 820px;
    margin: 0 auto 36px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
    text-align: center;
}

.sedes-stats {
    margin: 24px auto 0;
    max-width: 820px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat {
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-orange), #ff8a3d);
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.2);
    color: #fff;
    border: none;
}

.stat-value {
    margin: 0;
    font-weight: 950;
    font-size: 28px;
}

.stat-label {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sedes-hint {
    max-width: 820px;
    margin: 12px auto 0;
    font-size: 13px;
    color: rgba(15, 43, 102, 0.75);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
   CARRUSEL PREMIUM - TOTALMENTE RESPONSIVO
═══════════════════════════════════════════════════════════════════ */

.carousel-container {
    position: relative;
    margin: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.carousel-root {
    flex: 1;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 24px;
}

.carousel-track {
    display: flex;
    gap: 28px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Tarjetas responsivas */
.sede-card {
    flex: 0 0 calc(33.333% - 18.60px);
    min-width: 0;
    border-radius: 24px;
    border: 3px solid #4263b7;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    position: relative;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.sede-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 45px -15px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(28, 60, 140, 0.15);
}

.card-image-wrapper {
    overflow: hidden;
    height: 220px;
    border-radius: 24px 24px 0 0;
}

.sede-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.sede-card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
    gap: 12px;
    background: linear-gradient(to bottom, #fff, #fefefe);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 800;
    color: var(--brand-blue);
    background: rgba(28, 60, 140, 0.08);
    margin-bottom: 16px;
    width: fit-content;
    backdrop-filter: blur(2px);
    letter-spacing: 0.3px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-orange);
    display: inline-block;
}

.sede-card h3 {
    margin: 0;
    color: var(--brand-blue);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.3;
}

.ciudad-nombre {
    display: block;
    color: var(--brand-blue);
    font-size: 24px;
    font-weight: 800;
}

.direccion-titulo {
    display: block;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.sede-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

.btn-ver-ubicacion {
    display: block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--brand-orange), #ff8a3d);
    color: #fff;
    border: none;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 106, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.btn-ver-ubicacion:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 106, 0, 0.3);
    background: linear-gradient(135deg, #ff7a1a, #ff6a00);
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(28, 60, 140, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-btn:hover {
    background: var(--brand-orange);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 12px 28px rgba(255, 106, 0, 0.4);
}

.carousel-btn.prev {
    left: -26px;
}

.carousel-btn.next {
    right: -26px;
}

.carousel-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(28, 60, 140, 0.6);
    transform: translateY(-50%) scale(1);
}

/* Dots de navegación */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: rgba(28, 60, 140, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 106, 0, 0.6);
    transform: scale(1.2);
}

.carousel-dot.is-active {
    width: 28px;
    background: var(--brand-orange);
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.5);
}

/* ═══════════════════════════════════
   TARJETAS INFORMATIVAS
═══════════════════════════════════ */

.sedes-grid {
    margin: 80px auto 0;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    padding: 32px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6a00 0%, #ff8a3d 100%);
    border: none;
    box-shadow: 0 15px 40px rgba(255, 106, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
    color: #fff;
}

.info-card::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -40px;
    right: -40px;
    transition: all 0.4s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(255, 106, 0, 0.3);
}

.info-card:hover::before {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -50px;
}

.info-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 950;
    position: relative;
    z-index: 1;
}

.info-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

/* ─────────────────────────
   SEDE PRINCIPAL
─────────────────────────*/

.primary-location {
    margin: 80px auto 0;
    max-width: 1200px;
}

.primary-location__card {
    text-align: center;
    border-radius: 20px;
    padding: 40px;
    background: linear-gradient(135deg, var(--brand-blue), #0f2b66);
    border: 2px solid rgba(255, 106, 0, 0.25);
    box-shadow: 0 16px 50px rgba(28, 60, 140, 0.2);
    transition: all 0.3s ease;
}

.primary-location__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 70px rgba(15, 43, 102, 0.18);
}

.primary-location__head h2 {
    margin: 0 0 12px;
   color: #fff;
    font-weight: 950;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.primary-location__head h2::before {
    content: "🏢";
    font-size: 32px;
}

.primary-location__head p {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.primary-location__address {
    margin: 0 auto 24px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    border-radius: 14px;
    padding: 24px;
    border: 2px solid rgba(28, 60, 140, 0.12);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-weight: 950;
    color: var(--brand-blue);
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.25s ease;
}

.primary-location__address:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 106, 0, 0.25);
    box-shadow: 0 16px 40px rgba(15, 43, 102, 0.15);
}

.primary-location__sub {
    display: block;
    margin-top: 8px;
    font-weight: 800;
    color: rgba(15, 43, 102, 0.75);
    font-size: 14px;
}

.primary-location__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.pill {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-orange), #ff8a3d);
    border: 1px solid rgba(255, 106, 0, 0.4);
    transition: all 0.2s ease;
}

.pill:hover {
    background: linear-gradient(135deg, #ff7a1a, #ff6a00);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 106, 0, 0.3);
}

/* ─────────────────────────
   FAQ
─────────────────────────*/

.faq {
    margin: 80px auto 0;
    max-width: 1200px;
}

.faq__title {
    margin: 0 0 28px;
    font-size: 26px;
    font-weight: 950;
    color: var(--brand-blue);
    text-align: left;
}

.faq__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.faq-item {
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(28, 60, 140, 0.1);
    box-shadow: 0 8px 20px rgba(15, 43, 102, 0.08);
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(255, 106, 0, 0.2);
    box-shadow: 0 12px 30px rgba(15, 43, 102, 0.12);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--brand-blue);
    font-size: 20px;
    user-select: none;
}

.faq-item p {
    margin: 12px 0 0;
    color: #000;
    font-size: 18px;
    line-height: 1.6;
}

/* ─────────────────────────
   MODAL MAPA
─────────────────────────*/

.map-modal {
    position: fixed;
    inset: 0;
    padding: 18px;
    background: rgba(15, 26, 54, 0.58);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.map-modal.is-open {
    display: flex;
}

.map-modal__dialog {
    width: min(980px, 96vw);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(28, 60, 140, 0.12);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.map-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(28, 60, 140, 0.11), rgba(255, 106, 0, 0.08));
    border-bottom: 1px solid rgba(28, 60, 140, 0.1);
}

.map-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 950;
    color: var(--brand-blue);
}

.map-modal__address {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.map-modal__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-modal__wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    background: #25D366;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.25);
    transition: all 0.18s ease;
}

.map-modal__wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32);
}

.map-modal__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    background: var(--brand-blue);
    box-shadow: 0 10px 22px rgba(28, 60, 140, 0.25);
    transition: all 0.18s ease;
}

.map-modal__link:hover {
    background: var(--brand-blue-900);
    transform: translateY(-1px);
}

.map-modal__close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(28, 60, 140, 0.16);
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 24px;
    color: var(--brand-blue);
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.map-modal__close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.map-modal__body {
    background: #0b1530;
}

.map-modal__body iframe {
    width: 100%;
    height: min(62vh, 520px);
    border: 0;
    display: block;
}

/* ============================================
   RESPONSIVE COMPLETO
   ============================================ */

@media (max-width: 1024px) {
    .sedes-section {
        padding: 64px 6%;
    }

    .sedes-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .carousel-container {
        gap: 15px;
    }

    .carousel-btn {
        width: 46px;
        height: 46px;
        font-size: 24px;
    }

    .carousel-btn.prev {
        left: -20px;
    }

    .carousel-btn.next {
        right: -20px;
    }

    .sede-card {
        flex: 0 0 calc(50% - 14px);
    }

    .card-image-wrapper {
        height: 200px;
    }

    .card-body {
        padding: 20px;
    }

    .sede-card h3 {
        font-size: 22px;
    }

    .sedes-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sedes-section {
        padding: 48px 16px;
    }

    .titulo-sedes {
        font-size: 36px;
    }

    .carousel-container {
        gap: 12px;
        margin: 40px 0;
        flex-wrap: nowrap;
        padding-inline: 12px;
    }

    .carousel-root {
        order: 2;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        font-size: 22px;
        background: rgba(28, 60, 140, 0.95);
        margin: 0;
        order: initial;
    }

    .carousel-btn.prev {
        left: -10px;
        right: auto;
    }

    .carousel-btn.next {
        left: auto;
        right: -10px;
    }

    .carousel-btn:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .sede-card {
        flex: 0 0 100%;
    }

    .card-image-wrapper {
        height: 180px;
    }

    .carousel-track {
        gap: 20px;
    }

    .card-body {
        padding: 18px;
    }

    .sede-card h3 {
        font-size: 20px;
    }

    .sede-card p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .btn-ver-ubicacion {
        padding: 10px 20px;
        font-size: 13px;
    }

    .carousel-dots {
        order: 3;
        margin-top: 20px;
    }

    .sedes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .info-card {
        padding: 24px;
    }

    .info-card h2 {
        font-size: 16px;
    }

    .sedes-stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .sedes-section {
        padding: 40px 12px;
    }

    .titulo-sedes {
        font-size: 28px;
    }

    .carousel-container {
        gap: 10px;
        margin: 30px 0;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .sede-card {
        flex: 0 0 100%;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .carousel-track {
        gap: 16px;
    }

    .card-body {
        padding: 20px;
    }

    .sede-card h3 {
        font-size: 22px;
    }

    .carousel-dots {
        gap: 10px;
        margin-top: 20px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dot.is-active {
        width: 24px;
    }

    .sedes-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sedes-stats {
        grid-template-columns: 1fr;
    }

    .faq__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .card-image-wrapper {
        height: 180px;
    }

    .card-body {
        padding: 16px;
    }

    .sede-card h3 {
        font-size: 20px;
    }

    .sede-card p {
        font-size: 12px;
    }

    .btn-ver-ubicacion {
        padding: 10px 16px;
        font-size: 12px;
    }

    .chip {
        font-size: 11px;
        padding: 4px 12px;
        margin-bottom: 12px;
    }
}