:root {
    --hf-primary: #0F172A;
    --hf-secondary: #111827;
    --hf-accent: #38BDF8;
    --hf-accent-hover: #0EA5E9;
    --hf-bg: #F4F7F9;
    --hf-white: #FFFFFF;
    --hf-light-blue: #E0F2FE;
    --hf-text: #1F2937;
    --hf-muted: #64748B;
    --hf-border: #E5E7EB;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--hf-bg);
    color: var(--hf-text);
}

a {
    text-decoration: none;
    color: inherit;
}

.contenedor {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    transition: .25s ease;
}

.btn-primary {
    background: var(--hf-accent);
    color: var(--hf-primary);
}

.btn-primary:hover {
    background: var(--hf-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--hf-accent);
    color: var(--hf-white);
}

.btn-outline:hover {
    background: var(--hf-accent);
    color: var(--hf-primary);
}
/* =========================
   MAPA / UBICACIÓN
========================= */

.mapa-section {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--hf-white) 0%, var(--hf-bg) 100%);
}

.mapa-header {
    max-width: 720px;
    text-align: center;
    margin: 0 auto 45px;
}

.mapa-header h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 38px;
    color: var(--hf-primary);
    margin: 12px 0 14px;
}

.mapa-header p {
    color: var(--hf-muted);
    font-size: 16px;
    line-height: 1.7;
}


/* =========================
   CARD PRINCIPAL MAPA
========================= */

.mapa-card {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 0;
    background: var(--hf-white);
    border: 1px solid var(--hf-border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
}

.mapa-info {
    position: relative;
    padding: 38px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96)),
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 35%);
    color: var(--hf-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.mapa-info::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 180px;
    height: 180px;
    background: rgba(56, 189, 248, 0.13);
    border-radius: 50%;
}

.ubicacion-dato {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    z-index: 2;
}

.ubicacion-dato i {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.14);
    color: var(--hf-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    border: 1px solid rgba(56, 189, 248, 0.22);
}

.ubicacion-dato h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    color: var(--hf-white);
    margin-bottom: 5px;
}

.ubicacion-dato p {
    color: #CBD5E1;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================
   BOTÓN MAPA
========================= */

.btn-mapa {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    padding: 13px 18px;
    border-radius: 999px;
    background: var(--hf-accent);
    color: var(--hf-primary);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.25s ease;
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.25);
}

.btn-mapa:hover {
    background: var(--hf-accent-hover);
    color: var(--hf-white);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(14, 165, 233, 0.35);
}


/* =========================
   IFRAME MAPA
========================= */

.mapa {
    min-height: 430px;
    background: var(--hf-light-blue);
}

.mapa iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    filter: saturate(0.95) contrast(1.02);
}


/* =========================
   GALERÍA UBICACIÓN
========================= */

.galeria-ubicacion {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 18px;
    margin-top: 28px;
}

.foto-ubicacion {
    position: relative;
    height: 230px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--hf-border);
    background: var(--hf-white);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.foto-ubicacion.grande {
    height: 230px;
}

.foto-ubicacion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.foto-ubicacion::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.20),
        rgba(15, 23, 42, 0.02)
    );
    pointer-events: none;
}

.foto-ubicacion:hover img {
    transform: scale(1.06);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .mapa-card {
        grid-template-columns: 1fr;
    }

    .mapa-info {
        padding: 30px;
    }

    .mapa {
        min-height: 360px;
    }

    .mapa iframe {
        min-height: 360px;
    }

    .galeria-ubicacion {
        grid-template-columns: 1fr 1fr;
    }

    .foto-ubicacion.grande {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .mapa-section {
        padding: 45px 0;
    }

    .mapa-header {
        margin-bottom: 25px;
        text-align: left;
    }

    .mapa-header h2 {
        font-size: 26px;
        margin: 8px 0 10px;
    }

    .mapa-header p {
        font-size: 13.8px;
        line-height: 1.55;
    }

    .mapa-card {
        border-radius: 20px;
    }

    .mapa-info {
        padding: 22px;
        gap: 15px;
    }

    .ubicacion-dato {
        gap: 12px;
    }

    .ubicacion-dato i {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 13px;
        font-size: 16px;
    }

    .ubicacion-dato h3 {
        font-size: 15px;
        margin-bottom: 3px;
    }

    .ubicacion-dato p {
        font-size: 12.8px;
    }

    .btn-mapa {
        width: 100%;
        padding: 11px 14px;
        font-size: 12.8px;
    }

    .mapa {
        min-height: 280px;
    }

    .mapa iframe {
        min-height: 280px;
    }

    .galeria-ubicacion {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 16px;
    }

    .foto-ubicacion,
    .foto-ubicacion.grande {
        height: 95px;
        border-radius: 14px;
        grid-column: auto;
    }

    .foto-ubicacion:hover img,
    .btn-mapa:hover {
        transform: none;
    }
}

@media (max-width: 420px) {
    .mapa-section {
        padding: 38px 0;
    }

    .mapa-info {
        padding: 18px;
    }

    .mapa {
        min-height: 240px;
    }

    .mapa iframe {
        min-height: 240px;
    }

    .galeria-ubicacion {
        grid-template-columns: 1fr 1fr;
    }

    .foto-ubicacion,
    .foto-ubicacion.grande {
        height: 92px;
    }

    .foto-ubicacion.grande {
        grid-column: 1 / -1;
    }
}