/* ============================================================
           AGENCIAS - PÁGINA ÚNICA REDISEÑADA
           Mantiene el estilo visual trabajado en Productos/Servicios
           ============================================================ */
        html,
        body {
            width: 100%;
            margin: 0;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        #wrapper.home-page {
            width: 100%;
            max-width: none;
            overflow-x: hidden;
        }

        .hg-nosotros-page {
            font-family: 'Poppins', Arial, Helvetica, sans-serif;
            background:
                radial-gradient(circle at 8% 8%, rgba(0, 93, 204, 0.08), transparent 26%),
                radial-gradient(circle at 92% 14%, rgba(38, 179, 106, 0.10), transparent 26%),
                linear-gradient(180deg, #ffffff 0%, #eef5ff 46%, #ffffff 100%);
            color: #17395f;
        }

        .hg-nosotros-hero {
            position: relative;
            width: 100vw;
            margin: 0 calc(50% - 50vw);
            min-height: clamp(430px, 56vh, 650px);
            padding: clamp(68px, 8vw, 116px) clamp(18px, 7vw, 110px);
            overflow: hidden;
            display: flex;
            align-items: center;
            background:
                radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.18), transparent 22%),
                radial-gradient(circle at 82% 74%, rgba(255, 255, 255, 0.12), transparent 28%),
                linear-gradient(115deg, #063d83 0%, #005dcc 48%, #00a3ff 100%);
        }

        .hg-nosotros-hero::before,
        .hg-nosotros-hero::after {
            content: "";
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
        }

        .hg-nosotros-hero::before {
            width: 520px;
            height: 520px;
            left: -190px;
            top: -170px;
            background: rgba(255, 255, 255, 0.08);
        }

        .hg-nosotros-hero::after {
            width: 580px;
            height: 580px;
            right: -250px;
            bottom: -290px;
            background: rgba(255, 255, 255, 0.10);
        }

        .hg-nosotros-hero-inner {
            position: relative;
            z-index: 2;
            width: 100%;
            max-width: 1320px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
            gap: clamp(28px, 5vw, 70px);
            align-items: center;
        }

        .hg-nosotros-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            padding: 10px 16px;
            border-radius: 999px;
            background: rgba(255,255,255,0.13);
            border: 1px solid rgba(255,255,255,0.20);
            color: #ffffff;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: .6px;
            text-transform: uppercase;
        }

        .hg-nosotros-hero h1 {
            margin: 0;
            color: #ffffff;
            font-size: clamp(46px, 6.2vw, 96px);
            font-weight: 900;
            line-height: .93;
            letter-spacing: -2.2px;
            text-transform: uppercase;
        }

        .hg-nosotros-hero h1 span {
            display: block;
            color: rgba(255,255,255,0.84);
            font-size: clamp(26px, 3.3vw, 54px);
            font-weight: 500;
            letter-spacing: -.8px;
            text-transform: none;
        }

        .hg-nosotros-hero p {
            max-width: 760px;
            margin: 24px 0 0;
            color: rgba(255,255,255,0.90);
            font-size: clamp(15px, 1.2vw, 18px);
            line-height: 1.78;
        }

        .hg-nosotros-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 30px;
        }

        .hg-nosotros-actions a {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            padding: 12px 17px;
            border-radius: 999px;
            background: rgba(255,255,255,0.13);
            border: 1px solid rgba(255,255,255,0.20);
            color: #ffffff !important;
            text-decoration: none !important;
            font-size: 13px;
            font-weight: 800;
            transition: transform .25s ease, background .25s ease;
        }

        .hg-nosotros-actions a:hover {
            transform: translateY(-3px);
            background: rgba(255,255,255,0.22);
        }

        .hg-nosotros-hero-card {
            position: relative;
            min-height: 360px;
            border-radius: 34px;
            padding: 30px;
            background: rgba(255,255,255,0.13);
            border: 1px solid rgba(255,255,255,0.18);
            box-shadow: 0 28px 70px rgba(0, 23, 72, 0.22);
            backdrop-filter: blur(10px);
            overflow: hidden;
        }

        .hg-nosotros-hero-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.12), transparent 44%),
                radial-gradient(circle at 80% 20%, rgba(38,179,106,0.28), transparent 28%);
        }

        .hg-nosotros-hero-logo {
            position: relative;
            z-index: 2;
            width: min(100%, 300px);
            margin: 0 auto 26px;
            display: block;
            filter: drop-shadow(0 16px 24px rgba(0,0,0,0.20));
        }

        .hg-nosotros-hero-stat {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .hg-nosotros-hero-stat div {
            padding: 18px;
            border-radius: 22px;
            background: rgba(255,255,255,0.16);
            border: 1px solid rgba(255,255,255,0.16);
            color: #ffffff;
        }

        .hg-nosotros-hero-stat strong {
            display: block;
            font-size: 27px;
            font-weight: 900;
            line-height: 1;
        }

        .hg-nosotros-hero-stat span {
            display: block;
            margin-top: 6px;
            font-size: 12px;
            line-height: 1.4;
            color: rgba(255,255,255,0.86);
        }

        .hg-nosotros-body {
            position: relative;
            padding: 76px clamp(18px, 4vw, 74px) 90px;
        }

        .hg-nosotros-body-inner {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
        }

        .hg-nosotros-nav {
            position: sticky;
            top: 0;
            z-index: 10;
            margin: -112px auto 54px;
            padding: 14px;
            border-radius: 28px;
            background: rgba(255,255,255,0.94);
            border: 1px solid rgba(0,93,204,0.12);
            box-shadow: 0 24px 60px rgba(9, 62, 130, 0.14);
            backdrop-filter: blur(12px);
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }

        .hg-nosotros-nav a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 11px 15px;
            border-radius: 999px;
            color: #063d83 !important;
            background: #eef5ff;
            font-size: 13px;
            font-weight: 800;
            text-decoration: none !important;
            transition: background .25s ease, color .25s ease, transform .25s ease;
        }

        .hg-nosotros-nav a:hover {
            background: #005dcc;
            color: #ffffff !important;
            transform: translateY(-2px);
        }

        .hg-section {
            scroll-margin-top: 110px;
            margin-bottom: 68px;
        }

        .hg-section-head {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(240px, 430px);
            gap: 28px;
            align-items: end;
            margin-bottom: 30px;
        }

        .hg-section-kicker {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            margin-bottom: 14px;
            padding: 9px 14px;
            border-radius: 999px;
            background: rgba(0,93,204,0.10);
            color: #005dcc;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: .48px;
            text-transform: uppercase;
        }

        .hg-section-title {
            margin: 0;
            color: #063d83;
            font-size: clamp(31px, 3.6vw, 54px);
            font-weight: 900;
            line-height: 1.08;
            letter-spacing: -1.4px;
        }

        .hg-section-head p {
            margin: 0;
            color: #55687e;
            font-size: 15px;
            line-height: 1.74;
        }

        .hg-info-card,
        .hg-text-card,
        .hg-value-card {
            position: relative;
            overflow: hidden;
            border-radius: 30px;
            background: rgba(255,255,255,0.98);
            border: 1px solid rgba(0,93,204,0.12);
            box-shadow: 0 22px 54px rgba(12, 54, 105, 0.10);
        }

        .hg-info-card {
            display: grid;
            grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr);
            gap: 0;
            align-items: stretch;
        }

        .hg-info-card.is-reverse {
            grid-template-columns: minmax(0, 1.14fr) minmax(280px, .86fr);
        }

        .hg-info-media {
            position: relative;
            min-height: 360px;
            background: linear-gradient(135deg, #063d83, #00a3ff);
            overflow: hidden;
        }

        .hg-info-media img {
            width: 100%;
            height: 100%;
            min-height: 360px;
            object-fit: cover;
            display: block;
            filter: saturate(1.04) contrast(1.02);
        }

        .hg-info-media::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, transparent 40%, rgba(0, 32, 82, 0.24));
        }

        .hg-info-content {
            padding: clamp(26px, 4vw, 50px);
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .hg-info-content h3,
        .hg-text-card h3 {
            margin: 0 0 15px;
            color: #062f63;
            font-size: clamp(24px, 2.4vw, 36px);
            line-height: 1.12;
            font-weight: 900;
        }

        .hg-info-content p,
        .hg-text-card p,
        .hg-value-card p {
            margin: 0 0 16px;
            color: #526275;
            font-size: 15px;
            line-height: 1.78;
            text-align: justify;
        }

        .hg-highlight-strip {
            margin-top: 16px;
            padding: 16px 18px;
            border-left: 5px solid #26b36a;
            border-radius: 18px;
            background: rgba(38,179,106,0.10);
            color: #174f34;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.6;
        }

        .hg-card-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 24px;
        }

        .hg-text-card {
            padding: clamp(26px, 3vw, 38px);
        }

        .hg-text-card::before,
        .hg-value-card::before {
            content: "";
            position: absolute;
            inset: 0 0 auto 0;
            height: 7px;
            background: linear-gradient(90deg, #005dcc, #00a3ff, #26b36a);
        }

        .hg-card-icon {
            width: 70px;
            height: 70px;
            margin-bottom: 18px;
            border-radius: 23px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #005dcc, #0aa3ff);
            color: #ffffff;
            font-size: 29px;
            box-shadow: 0 14px 28px rgba(0, 93, 204, 0.22);
        }

        .hg-policy-box {
            padding: clamp(28px, 4vw, 46px);
            border-radius: 34px;
            background:
                radial-gradient(circle at 12% 20%, rgba(0,163,255,0.12), transparent 28%),
                linear-gradient(135deg, #063d83 0%, #005dcc 100%);
            color: #ffffff;
            box-shadow: 0 28px 70px rgba(9, 62, 130, 0.22);
        }

        .hg-policy-box h3 {
            margin: 0 0 15px;
            color: #ffffff;
            font-size: clamp(25px, 2.8vw, 40px);
            font-weight: 900;
            line-height: 1.1;
        }

        .hg-policy-box p {
            margin: 0;
            color: rgba(255,255,255,0.90);
            font-size: 16px;
            line-height: 1.78;
            text-align: justify;
        }

        .hg-principios-img-card {
            margin-top: 24px;
            padding: 24px;
            border-radius: 32px;
            background: #ffffff;
            border: 1px solid rgba(0,93,204,0.12);
            box-shadow: 0 22px 54px rgba(12, 54, 105, 0.10);
        }

        .hg-principios-img-card img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 24px;
        }

        .hg-values-layout {
            display: grid;
            grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
            gap: 24px;
            align-items: stretch;
        }

        .hg-values-photo {
            position: relative;
            min-height: 100%;
            border-radius: 30px;
            overflow: hidden;
            background: linear-gradient(135deg, #063d83, #00a3ff);
            box-shadow: 0 22px 54px rgba(12, 54, 105, 0.10);
        }

        .hg-values-photo img {
            width: 100%;
            height: 100%;
            min-height: 440px;
            object-fit: cover;
            display: block;
        }

        .hg-values-photo span {
            position: absolute;
            left: 22px;
            bottom: 22px;
            right: 22px;
            padding: 16px 18px;
            border-radius: 20px;
            background: rgba(255,255,255,0.92);
            color: #063d83;
            font-size: 17px;
            line-height: 1.35;
            font-weight: 900;
            box-shadow: 0 16px 32px rgba(0,0,0,.12);
        }

        .hg-values-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
        }

        .hg-value-card {
            padding: 26px 24px 24px;
        }

        .hg-value-card h3 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0 0 11px;
            color: #062f63;
            font-size: 18px;
            font-weight: 900;
            line-height: 1.28;
        }

        .hg-value-card h3 i {
            color: #26b36a;
        }

        .hg-value-card p {
            margin: 0;
            font-size: 13.5px;
            line-height: 1.64;
            text-align: left;
        }

        .hg-bottom-cta {
            margin-top: 58px;
            padding: clamp(28px, 4vw, 46px);
            border-radius: 34px;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 24px;
            align-items: center;
            background:
                radial-gradient(circle at 18% 24%, rgba(255,255,255,0.16), transparent 24%),
                linear-gradient(115deg, #063d83, #005dcc 55%, #00a3ff);
            box-shadow: 0 28px 70px rgba(9, 62, 130, 0.22);
            color: #ffffff;
        }

        .hg-bottom-cta h2 {
            margin: 0 0 10px;
            color: #ffffff;
            font-size: clamp(24px, 3vw, 42px);
            font-weight: 900;
            line-height: 1.1;
        }

        .hg-bottom-cta p {
            margin: 0;
            color: rgba(255,255,255,0.88);
            line-height: 1.7;
        }

        .hg-bottom-cta a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 20px;
            border-radius: 999px;
            background: #ffffff;
            color: #063d83 !important;
            font-size: 14px;
            font-weight: 900;
            text-decoration: none !important;
            white-space: nowrap;
        }

        @media (max-width: 1060px) {
            .hg-nosotros-hero-inner,
            .hg-section-head,
            .hg-info-card,
            .hg-info-card.is-reverse,
            .hg-values-layout,
            .hg-bottom-cta {
                grid-template-columns: 1fr;
            }

            .hg-info-card.is-reverse .hg-info-media {
                order: -1;
            }

            .hg-nosotros-nav {
                position: relative;
                top: auto;
                margin-top: -90px;
            }
        }

        @media (max-width: 760px) {
            .hg-nosotros-hero {
                min-height: auto;
                padding: 50px 18px 126px;
            }

            .hg-nosotros-hero h1 {
                font-size: 44px;
                letter-spacing: -1px;
            }

            .hg-nosotros-hero h1 span {
                font-size: 26px;
            }

            .hg-nosotros-hero-card {
                min-height: auto;
                padding: 22px;
                border-radius: 26px;
            }

            .hg-nosotros-hero-stat {
                grid-template-columns: 1fr;
            }

            .hg-nosotros-body {
                padding: 50px 18px 64px;
            }

            .hg-nosotros-nav {
                border-radius: 22px;
                justify-content: flex-start;
                overflow-x: auto;
                flex-wrap: nowrap;
                margin-bottom: 38px;
                padding: 10px;
            }

            .hg-nosotros-nav a {
                flex: 0 0 auto;
            }

            .hg-section {
                margin-bottom: 52px;
            }

            .hg-card-grid,
            .hg-values-grid {
                grid-template-columns: 1fr;
            }

            .hg-info-media,
            .hg-info-media img {
                min-height: 240px;
            }

            .hg-values-photo img {
                min-height: 270px;
            }

            .hg-bottom-cta a {
                width: 100%;
            }
        }

        /* ============================================================
           AGENCIAS - PÁGINA ÚNICA
           ============================================================ */
        .hg-agencias-page {
            background:
                radial-gradient(circle at 10% 7%, rgba(0, 93, 204, 0.08), transparent 25%),
                radial-gradient(circle at 90% 8%, rgba(42, 185, 117, 0.11), transparent 25%),
                linear-gradient(180deg, #ffffff 0%, #eef5ff 45%, #ffffff 100%);
        }

        .hg-agencias-hero {
            background:
                radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.18), transparent 22%),
                radial-gradient(circle at 82% 74%, rgba(255, 255, 255, 0.12), transparent 28%),
                linear-gradient(115deg, #063d83 0%, #005dcc 50%, #00a3ff 100%);
        }

        .hg-agencias-hero-card {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 24px;
            min-height: 310px;
        }

        .hg-hero-stat span {
            display: block;
            font-size: clamp(80px, 8vw, 132px);
            line-height: .82;
            font-weight: 900;
            color: #ffffff;
            letter-spacing: -5px;
        }

        .hg-hero-stat p {
            margin: 12px 0 0;
            color: rgba(255,255,255,0.86);
            font-weight: 600;
        }

        .hg-hero-list {
            display: grid;
            gap: 10px;
        }

        .hg-hero-list span {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            width: fit-content;
            padding: 10px 14px;
            border-radius: 999px;
            background: rgba(255,255,255,0.13);
            border: 1px solid rgba(255,255,255,0.18);
            color: #ffffff;
            font-size: 13px;
            font-weight: 800;
        }

        .hg-agencias-resumen,
        .hg-agencias-listado {
            width: min(100% - 32px, 1320px);
            margin: 0 auto;
        }

        .hg-agencias-resumen {
            padding: clamp(56px, 7vw, 92px) 0 28px;
        }

        .hg-agencias-mini-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 18px;
            margin-top: 34px;
        }

        .hg-agencia-mini {
            display: flex;
            align-items: center;
            gap: 13px;
            padding: 18px;
            border-radius: 24px;
            background: #ffffff;
            border: 1px solid rgba(0, 93, 204, 0.10);
            color: #17395f !important;
            text-decoration: none !important;
            box-shadow: 0 18px 50px rgba(0, 54, 115, 0.08);
            transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
        }

        .hg-agencia-mini:hover {
            transform: translateY(-5px);
            border-color: rgba(0, 93, 204, 0.22);
            box-shadow: 0 24px 60px rgba(0, 54, 115, 0.13);
        }

        .hg-agencia-mini span {
            flex: 0 0 48px;
            width: 48px;
            height: 48px;
            border-radius: 17px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #005dcc, #00a3ff);
            color: #ffffff;
            box-shadow: 0 12px 26px rgba(0, 93, 204, 0.22);
        }

        .hg-agencia-mini strong {
            display: block;
            font-size: 15px;
            font-weight: 900;
        }

        .hg-agencia-mini small {
            display: block;
            margin-top: 2px;
            color: #6c7f93;
            font-size: 12px;
            font-weight: 700;
        }

        .hg-agencias-listado {
            padding: 22px 0 clamp(64px, 7vw, 100px);
            display: grid;
            gap: clamp(34px, 5vw, 70px);
        }

        .hg-agencia-bloque {
            display: grid;
            grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr);
            gap: clamp(24px, 4vw, 56px);
            align-items: stretch;
            padding: clamp(20px, 3vw, 34px);
            border-radius: 34px;
            background: rgba(255,255,255,0.92);
            border: 1px solid rgba(0, 93, 204, 0.10);
            box-shadow: 0 26px 70px rgba(0, 54, 115, 0.10);
        }

        .hg-agencia-bloque--reverse {
            grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
        }

        .hg-agencia-bloque--sin-imagen {
            grid-template-columns: 1fr !important;
        }

        .hg-agencia-bloque--sin-imagen .hg-agencia-info {
            width: 100%;
        }

        .hg-agencia-bloque--reverse .hg-agencia-media {
            order: 2;
        }

        .hg-agencia-media {
            position: relative;
            min-height: 390px;
            border-radius: 28px;
            overflow: hidden;
            background: #dcecff;
            box-shadow: inset 0 0 0 1px rgba(0, 93, 204, 0.08);
        }

        .hg-agencia-media img {
            display: block;
            width: 100%;
            height: 100%;
            min-height: 390px;
            object-fit: cover;
            transition: transform .45s ease;
        }

        .hg-agencia-bloque:hover .hg-agencia-media img {
            transform: scale(1.04);
        }

        .hg-agencia-badge {
            position: absolute;
            left: 18px;
            right: 18px;
            bottom: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
            width: fit-content;
            max-width: calc(100% - 36px);
            padding: 12px 16px;
            border-radius: 999px;
            background: rgba(255,255,255,0.92);
            color: #005dcc;
            font-weight: 900;
            box-shadow: 0 14px 34px rgba(0, 24, 76, 0.16);
        }

        .hg-agencia-info {
            display: flex;
            flex-direction: column;
            gap: 18px;
            min-width: 0;
        }

        .hg-agencia-label {
            display: inline-flex;
            width: fit-content;
            padding: 8px 13px;
            border-radius: 999px;
            background: rgba(0, 93, 204, 0.09);
            color: #005dcc;
            font-size: 12px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: .7px;
        }

        .hg-agencia-info h2 {
            margin: 0;
            color: #063d83;
            font-size: clamp(30px, 4vw, 54px);
            font-weight: 900;
            letter-spacing: -1.4px;
        }

        .hg-agencia-cobertura {
            margin: 0;
            color: #51677d;
            font-size: 15px;
            line-height: 1.75;
        }

        .hg-agencia-grid-info {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(260px, .92fr);
            gap: 18px;
            align-items: start;
        }

        .hg-agencia-card-lista,
        .hg-agencia-servicios {
            height: 100%;
            padding: 20px;
            border-radius: 24px;
            background: #f6faff;
            border: 1px solid rgba(0, 93, 204, 0.09);
        }

        .hg-agencia-card-lista h3,
        .hg-agencia-servicios h3 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0 0 14px;
            color: #063d83;
            font-size: 16px;
            font-weight: 900;
        }

        .hg-agencia-card-lista h3 i,
        .hg-agencia-servicios h3 i {
            color: #2ab975;
        }

        .hg-agencia-card-lista ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
            gap: 9px;
        }

        .hg-agencia-card-lista li {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            color: #445d75;
            font-size: 13px;
            line-height: 1.42;
            font-weight: 700;
        }

        .hg-agencia-card-lista li i {
            margin-top: 3px;
            color: #2ab975;
            font-size: 11px;
        }

        .hg-agencia-servicios {
            display: grid;
            gap: 11px;
        }

        .hg-agencia-servicio {
            padding: 14px;
            border-radius: 18px;
            background: #ffffff;
            box-shadow: 0 12px 28px rgba(0, 54, 115, 0.06);
        }

        .hg-agencia-servicio strong {
            display: block;
            color: #005dcc;
            font-size: 14px;
            font-weight: 900;
            margin-bottom: 5px;
        }

        .hg-agencia-servicio p {
            margin: 0;
            color: #607286;
            font-size: 12px;
            line-height: 1.55;
        }

        .hg-agencia-map-wrap {
            margin-top: 22px;
            padding: 18px;
            border-radius: 26px;
            background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
            border: 1px solid rgba(0, 93, 204, 0.10);
            box-shadow: 0 18px 50px rgba(0, 54, 115, 0.06);
        }

        .hg-agencia-map-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }

        .hg-agencia-map-top h3 {
            margin: 0;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #063d83;
            font-size: 17px;
            font-weight: 900;
        }

        .hg-agencia-map-top h3 i {
            color: #e64335;
        }

        .hg-agencia-map-top p {
            margin: 4px 0 0;
            color: #607286;
            font-size: 13px;
            line-height: 1.5;
        }


        .hg-agencia-map-address {
            display: inline-flex;
            align-items: flex-start;
            gap: 8px;
            margin: 8px 0 0;
            color: #3f5368;
            font-size: 13px;
            line-height: 1.45;
            font-weight: 700;
        }

        .hg-agencia-map-address i {
            margin-top: 3px;
            color: #2ab975;
        }

        .hg-agencia-map-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 999px;
            background: #ffffff;
            border: 1px solid rgba(0, 93, 204, 0.12);
            color: #005dcc !important;
            text-decoration: none !important;
            font-size: 12px;
            font-weight: 900;
            white-space: nowrap;
        }

        .hg-agencia-map {
            height: 250px;
            border-radius: 22px;
            overflow: hidden;
            background: #dcecff;
            box-shadow: inset 0 0 0 1px rgba(0, 93, 204, 0.06);
        }

        .hg-agencia-map iframe {
            width: 100%;
            height: 100%;
            border: 0;
            display: block;
            filter: saturate(0.95) contrast(1.02);
        }

        @media (max-width: 1180px) {
            .hg-agencias-mini-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .hg-agencia-bloque,
            .hg-agencia-bloque--reverse {
                grid-template-columns: 1fr;
            }

            .hg-agencia-bloque--reverse .hg-agencia-media {
                order: 0;
            }

            .hg-agencia-grid-info {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 760px) {
            .hg-agencias-mini-grid {
                grid-template-columns: 1fr;
            }

            .hg-agencia-bloque {
                padding: 16px;
                border-radius: 26px;
            }

            .hg-agencia-media,
            .hg-agencia-media img {
                min-height: 250px;
            }

            .hg-agencia-map-wrap {
                padding: 14px;
                border-radius: 22px;
            }

            .hg-agencia-map-top {
                align-items: flex-start;
            }

    
        .hg-agencia-map-address {
            display: inline-flex;
            align-items: flex-start;
            gap: 8px;
            margin: 8px 0 0;
            color: #3f5368;
            font-size: 13px;
            line-height: 1.45;
            font-weight: 700;
        }

        .hg-agencia-map-address i {
            margin-top: 3px;
            color: #2ab975;
        }

        .hg-agencia-map-link {
                width: 100%;
                justify-content: center;
            }

            .hg-agencia-map {
                height: 280px;
            }
        }

        /* ============================================================
           AGENCIAS - LISTADO SIMPLE CON DIRECCIÓN Y CONTACTO
           ============================================================ */
        .hg-agencias-contacto-simple {
            width: min(100% - 32px, 1180px);
            margin: 0 auto;
            padding: clamp(52px, 6vw, 86px) 0 clamp(66px, 7vw, 104px);
        }

        .hg-agencias-contacto-head {
            max-width: 780px;
            margin: 0 auto 44px;
            text-align: center;
        }

        .hg-agencias-contacto-head span {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            margin-bottom: 12px;
            padding: 9px 14px;
            border-radius: 999px;
            background: rgba(0, 93, 204, 0.08);
            color: #005dcc;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: .5px;
            text-transform: uppercase;
        }

        .hg-agencias-contacto-head h2 {
            margin: 0 0 12px;
            color: #063d83;
            font-size: clamp(28px, 3.4vw, 46px);
            font-weight: 900;
            letter-spacing: -1px;
        }

        .hg-agencias-contacto-head p {
            margin: 0;
            color: #5a6f84;
            font-size: 15px;
            line-height: 1.75;
        }

        .hg-agencias-contacto-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: clamp(32px, 5vw, 64px) clamp(48px, 9vw, 120px);
            align-items: start;
        }

        .hg-agencia-contacto-item {
            text-align: center;
            padding: 12px 14px;
            border-radius: 22px;
            transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
        }

        .hg-agencia-contacto-item:hover {
            transform: translateY(-3px);
            background: rgba(255, 255, 255, 0.72);
            box-shadow: 0 18px 44px rgba(0, 54, 115, 0.08);
        }

        .hg-agencia-contacto-item h3 {
            margin: 0 0 8px;
            color: #005dcc;
            font-size: 18px;
            line-height: 1.25;
            font-weight: 900;
        }

        .hg-agencia-contacto-item p {
            margin: 4px 0;
            color: #111827;
            font-size: 14px;
            line-height: 1.55;
        }

        .hg-agencia-contacto-item .hg-contactos {
            font-size: 13px;
            color: #1f2937;
        }

        @media (max-width: 760px) {
            .hg-agencias-contacto-grid {
                grid-template-columns: 1fr;
                gap: 28px;
            }

            .hg-agencias-contacto-head {
                margin-bottom: 34px;
            }

            .hg-agencia-contacto-item {
                padding: 8px 10px;
            }
        }


    

        /* ============================================================
           AGENCIAS - MAPA UNICO INTERACTIVO
           ============================================================ */
        .hg-agencias-contacto-simple.hg-agencias-mapa-unico-section {
            width: min(100% - 32px, 1240px);
        }

        .hg-agencias-layout-mapa-unico {
            display: grid;
            grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
            gap: 28px;
            align-items: stretch;
        }

        .hg-agencias-lista-click {
            display: grid;
            gap: 14px;
        }

        .hg-sucursal-btn {
            width: 100%;
            border: 1px solid rgba(0, 93, 204, 0.12);
            border-radius: 22px;
            background: rgba(255,255,255,0.86);
            padding: 18px;
            text-align: left;
            cursor: pointer;
            box-shadow: 0 15px 35px rgba(0, 54, 115, 0.07);
            transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
            font-family: inherit;
        }

        .hg-sucursal-btn:hover,
        .hg-sucursal-btn.active {
            transform: translateY(-3px);
            border-color: rgba(0, 93, 204, 0.34);
            box-shadow: 0 22px 48px rgba(0, 54, 115, 0.13);
            background: #ffffff;
        }

        .hg-sucursal-btn.active {
            background: linear-gradient(135deg, #005dcc 0%, #00a3ff 100%);
            color: #ffffff;
        }

        .hg-sucursal-btn h3 {
            margin: 0 0 8px;
            color: #005dcc;
            font-size: 18px;
            font-weight: 900;
            line-height: 1.25;
        }

        .hg-sucursal-btn.active h3 {
            color: #ffffff;
        }

        .hg-sucursal-btn p {
            margin: 4px 0;
            color: #334155;
            font-size: 13px;
            line-height: 1.45;
        }

        .hg-sucursal-btn.active p {
            color: rgba(255,255,255,.92);
        }

        .hg-sucursal-btn .hg-contactos {
            font-weight: 700;
            color: #1f2937;
        }

        .hg-sucursal-btn.active .hg-contactos {
            color: #ffffff;
        }

        .hg-agencias-mapa-unico {
            min-height: 100%;
            border-radius: 30px;
            background: #ffffff;
            border: 1px solid rgba(0, 93, 204, 0.12);
            box-shadow: 0 24px 65px rgba(0, 54, 115, 0.12);
            overflow: hidden;
        }

        .hg-agencias-mapa-info {
            padding: 26px 28px 20px;
            background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
            border-bottom: 1px solid rgba(0, 93, 204, 0.10);
        }

        .hg-agencias-mapa-info h3 {
            margin: 0 0 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #063d83;
            font-size: 24px;
            font-weight: 900;
        }

        .hg-agencias-mapa-info h3 i {
            color: #ef4444;
        }

        .hg-agencias-mapa-info .hg-mapa-title {
            color: #005dcc;
            font-weight: 900;
            margin: 0 0 8px;
        }

        .hg-agencias-mapa-info p {
            margin: 5px 0;
            color: #34465c;
            line-height: 1.55;
            font-size: 14px;
        }

        .hg-agencias-mapa-info .hg-mapa-contact {
            font-weight: 700;
        }

        .hg-agencias-mapa-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 16px;
        }

        .hg-agencias-mapa-actions a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-radius: 999px;
            text-decoration: none !important;
            font-size: 13px;
            font-weight: 900;
            transition: transform .25s ease, box-shadow .25s ease;
        }

        .hg-agencias-mapa-actions a:hover {
            transform: translateY(-2px);
        }

        .hg-agencias-mapa-actions .hg-btn-map-primary {
            background: #005dcc;
            color: #ffffff !important;
            box-shadow: 0 14px 28px rgba(0, 93, 204, 0.18);
        }

        .hg-agencias-mapa-actions .hg-btn-map-secondary {
            background: #ffffff;
            color: #005dcc !important;
            border: 1px solid rgba(0,93,204,.18);
        }

        .hg-agencias-mapa-frame iframe {
            display: block;
            width: 100%;
            height: 420px;
            border: 0;
        }

        @media (max-width: 920px) {
            .hg-agencias-layout-mapa-unico {
                grid-template-columns: 1fr;
            }
            .hg-agencias-mapa-frame iframe {
                height: 340px;
            }
        }

        @media (max-width: 560px) {
            .hg-agencias-mapa-info {
                padding: 22px 18px 18px;
            }
            .hg-agencias-mapa-info h3 {
                font-size: 21px;
            }
            .hg-agencias-mapa-actions a {
                width: 100%;
                justify-content: center;
            }
            .hg-agencias-mapa-frame iframe {
                height: 280px;
            }
        }
        .hg-productos-banner {
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 0;
    line-height: 0;
    overflow: hidden;
    background: #005dcc;
}

.hg-productos-banner img {
    display: block;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    margin: 0;
    object-fit: cover;
    object-position: center center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 760px) {
    .hg-productos-banner,
    .hg-productos-banner img {
        width: 100vw;
        max-width: 100vw;
    }
}

/* ============================================================
   MEJORA FINAL BLOQUE AGENCIAS + IMAGEN EN UBICACION
   Mantiene el bloque de ubicacion y mejora contraste del seleccionado
   ============================================================ */
.hg-agencias-contacto-head h2 {
    color: #10264a;
    font-weight: 900;
}

.hg-agencias-layout-mapa-unico {
    align-items: start;
}

.hg-agencias-lista-click {
    gap: 18px;
}

.hg-sucursal-btn {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 93, 204, 0.14) !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 22px 24px 22px 88px !important;
    min-height: 138px;
    box-shadow: 0 18px 46px rgba(0, 54, 115, 0.08) !important;
    font-family: 'Poppins', Arial, sans-serif;
}

.hg-sucursal-btn::before {
    content: "\f3c5";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 22px;
    top: 22px;
    width: 50px;
    height: 50px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 93, 204, 0.10);
    color: #005dcc;
    font-size: 22px;
}

.hg-sucursal-btn::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(180deg, #005dcc 0%, #20b66f 100%);
    opacity: 0;
}

.hg-sucursal-btn h3 {
    color: #10264a !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    margin-bottom: 8px !important;
}

.hg-sucursal-btn p {
    color: #586b83 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
}

.hg-sucursal-btn .hg-contactos {
    color: #334155 !important;
    font-weight: 900 !important;
}

.hg-sucursal-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 93, 204, 0.30) !important;
    box-shadow: 0 24px 56px rgba(0, 54, 115, 0.14) !important;
}

.hg-sucursal-btn.active {
    background: linear-gradient(135deg, #0047a8 0%, #006fe6 55%, #0097e8 100%) !important;
    border-color: #003f98 !important;
    box-shadow: 0 26px 60px rgba(0, 93, 204, 0.28) !important;
}

.hg-sucursal-btn.active::before {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.hg-sucursal-btn.active::after {
    opacity: 1;
}

.hg-sucursal-btn.active h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.hg-sucursal-btn.active p {
    color: rgba(255, 255, 255, 0.94) !important;
}

.hg-sucursal-btn.active .hg-contactos {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.hg-agencias-mapa-unico {
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 93, 204, 0.12);
    box-shadow: 0 24px 65px rgba(0, 54, 115, 0.12);
}

.hg-agencias-mapa-info {
    display: block !important;
    padding: 32px 34px 28px !important;
    background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%) !important;
    border-bottom: 1px solid rgba(0, 93, 204, 0.10) !important;
}

.hg-mapa-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: center;
}

.hg-mapa-info-text h3 {
    margin: 0 0 16px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #10264a !important;
    font-size: 28px !important;
    font-weight: 900 !important;
}

.hg-mapa-info-text h3 i {
    color: #ef4444 !important;
}

.hg-mapa-info-text .hg-mapa-title {
    color: #52657f !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    margin-bottom: 12px !important;
}

.hg-mapa-info-text p {
    color: #5f7088 !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
}

.hg-mapa-info-text .hg-mapa-contact {
    color: #52657f !important;
    font-weight: 900 !important;
}

.hg-agencias-mapa-actions {
    margin-top: 22px !important;
}

.hg-agencias-mapa-actions .hg-btn-map-primary {
    background: #005dcc !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(0, 93, 204, 0.24);
}

.hg-agencias-mapa-actions .hg-btn-map-secondary {
    background: #ffffff !important;
    color: #005dcc !important;
    border: 1px solid rgba(0, 93, 204, 0.18) !important;
}

.hg-mapa-info-img {
    width: 100%;
    height: 190px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 93, 204, 0.10), rgba(32, 182, 111, 0.10)), #ffffff;
    border: 1px solid rgba(0, 93, 204, 0.12);
    box-shadow: 0 18px 42px rgba(0, 54, 115, 0.10);
}

.hg-mapa-info-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hg-agencias-mapa-frame iframe {
    width: 100%;
    height: 470px !important;
    border: 0;
    display: block;
}

@media (max-width: 980px) {
    .hg-mapa-info-grid {
        grid-template-columns: 1fr;
    }

    .hg-mapa-info-img {
        height: 240px;
    }
}

@media (max-width: 560px) {
    .hg-sucursal-btn {
        padding: 18px 18px 18px 76px !important;
    }

    .hg-sucursal-btn::before {
        left: 18px;
        top: 18px;
        width: 44px;
        height: 44px;
    }

    .hg-agencias-mapa-info {
        padding: 24px 20px !important;
    }

    .hg-mapa-info-text h3 {
        font-size: 24px !important;
    }

    .hg-mapa-info-img {
        height: 190px;
    }

    .hg-agencias-mapa-frame iframe {
        height: 340px !important;
    }
}
.hg-agencias-mapa-unico {
    display: flex;
    flex-direction: column;
}

.hg-agencias-mapa-frame {
    flex: 1;
    height: 100%;
    min-height: 535px;
}

.hg-agencias-mapa-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 535px;
    display: block;
}
