@media (min-width: 769px) {
        html {
            zoom: 0.9;
        }
    }

        :root {
            --dark-orange: #E55A2B;
            --light-coral: #FF9F7D;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            overflow-x: hidden;
        }

        /* ===== HERO SECTION ===== */
        .hero-section {
            position: relative;
            min-height: 75vh;
            background: 
                linear-gradient(
                    135deg, 
                    rgba(255, 107, 53, 0.88) 0%, 
                    rgba(255, 140, 66, 0.85) 30%,
                    rgba(46, 134, 171, 0.85) 70%,
                    rgba(27, 94, 127, 0.88) 100%
                ),
                url('/img principal/delegaciones hero.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            padding: 80px 0;
            clip-path: ellipse(120% 100% at 50% 0%);
        }

        /* Overlay adicional para destacar colores */
        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                135deg, 
                rgba(255, 107, 53, 0.05) 0%, 
                rgba(255, 140, 66, 0.03) 30%,
                rgba(46, 134, 171, 0.03) 70%,
                rgba(27, 94, 127, 0.05) 100%
            );
            z-index: 1;
        }

        /* Patrón de puntos más sutil */
        .hero-section::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 80px 80px, 120px 120px;
            z-index: 1;
        }

        /* Botón de regreso mejorado */
        .back-button {
            position: absolute;
            top: 25px;
            left: 25px;
            z-index: 10;
        }

        .btn-back {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            padding: 14px 24px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1rem;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border: 2px solid rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(20px);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .btn-back:hover {
            background: rgba(255, 255, 255, 0.95);
            color: var(--primary-orange);
            transform: translateY(-5px) scale(1.05);
            box-shadow: 
                0 15px 40px rgba(0, 0, 0, 0.2),
                0 5px 15px rgba(255, 107, 53, 0.3);
            border-color: rgba(255, 255, 255, 0.8);
        }

        .btn-back i {
            font-size: 1.3rem;
            transition: transform 0.3s ease;
        }

        .btn-back:hover i {
            transform: translateX(-4px);
        }

        /* Contenido del hero */
        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            max-width: 900px;
            padding: 0 30px;
            color: white;
        }

        .hero-title {
            font-size: 4rem;
            font-weight: 900;
            margin-bottom: 15px;
            text-shadow: 
                0 6px 25px rgba(0, 0, 0, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.3);
            line-height: 1.1;
            letter-spacing: -2px;
        }

        .hero-title .highlight {
            color: #FFE5D9;
            background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 50%, #FFB07A 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: none;
            filter: 
                drop-shadow(0 6px 20px rgba(255, 107, 53, 0.7)) 
                drop-shadow(0 0 30px rgba(255, 140, 66, 0.5))
                drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
            font-weight: 950;
            text-stroke: 3px white;
            -webkit-text-stroke: 3px white;
        }

        .hero-subtitle {
            font-size: 1.6rem;
            margin-bottom: 25px;
            font-weight: 600;
            opacity: 0.95;
            text-shadow: 
                0 3px 15px rgba(0, 0, 0, 0.3),
                0 1px 4px rgba(0, 0, 0, 0.2);
            color: #E8F4F8;
        }

        .hero-description {
            font-size: 1.2rem;
            margin-bottom: 40px;
            color: rgba(255, 255, 255, 0.9);
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.5;
            text-shadow: 
                0 2px 10px rgba(0, 0, 0, 0.3),
                0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .hero-info-badge {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.25);
            border-radius: 50px;
            padding: 16px 28px;
            backdrop-filter: blur(20px);
            font-weight: 700;
            font-size: 1.1rem;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .hero-info-badge:hover {
            transform: translateY(-3px);
            box-shadow: 
                0 12px 40px rgba(0, 0, 0, 0.2),
                0 4px 15px rgba(255, 107, 53, 0.2);
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .badge-icon {
            font-size: 1.4rem;
            animation: pulse 2s ease-in-out infinite;
        }

        /* Elementos flotantes Bootstrap Icons */
        .floating-elements {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
        }

        .floating-icon {
            position: absolute;
            color: rgb(255, 255, 255);
            font-size: 3rem;
            animation: floatDelegacion 15s ease-in-out infinite;
            z-index: 1;
        }

        .floating-icon:nth-child(1) {
            top: 12%;
            left: 8%;
        }

        .floating-icon:nth-child(2) {
            top: 25%;
            left: 15%;
        }

        .floating-icon:nth-child(3) {
            top: 65%;
            left: 5%;
        }

        .floating-icon:nth-child(4) {
            bottom: 15%;
            left: 12%;
        }

        .floating-icon:nth-child(5) {
            top: 8%;
            right: 10%;
        }

        .floating-icon:nth-child(6) {
            top: 30%;
            right: 18%;
        }

        .floating-icon:nth-child(7) {
            top: 55%;
            right: 6%;
        }

        .floating-icon:nth-child(8) {
            bottom: 20%;
            right: 15%;
        }

        .floating-icon:nth-child(9) {
            top: 45%;
            left: 25%;
        }

        .floating-icon:nth-child(10) {
            top: 75%;
            right: 25%;
        }

        /* ===== ANIMACIONES ===== */

        @keyframes floatDelegacion {
            0%, 100% {
                transform: translateY(0px) translateX(0px) rotate(0deg);
                opacity: 0.15;
            }
            25% {
                transform: translateY(-15px) translateX(8px) rotate(2deg);
                opacity: 0.15;
            }
            50% {
                transform: translateY(-8px) translateX(-5px) rotate(-1deg);
                opacity: 0.15;
            }
            75% {
                transform: translateY(-20px) translateX(12px) rotate(3deg);
                opacity: 0.15;
            }
        }

        /* ===== RESPONSIVE DESIGN ===== */
        @media (max-width: 1200px) {
            .hero-title {
                font-size: 3.2rem;
            }

            .hero-subtitle {
                font-size: 1.3rem;
            }

            .hero-description {
                font-size: 1.1rem;
            }

            .floating-icon {
                font-size: 2rem;
            }
        }

        @media (max-width: 992px) {
            .hero-section {
                min-height: 65vh;
                padding: 60px 0;
            }

            .hero-title {
                font-size: 2.8rem;
                margin-bottom: 15px;
            }

            .hero-subtitle {
                font-size: 1.25rem;
                margin-bottom: 22px;
            }

            .hero-description {
                font-size: 1.05rem;
                margin-bottom: 35px;
            }

            .hero-content {
                padding: 0 25px;
            }

            .floating-icon {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 768px) {
            .hero-section {
                min-height: 55vh;
                padding: 40px 0;
                clip-path: ellipse(115% 100% at 50% 0%);
                background: 
                    linear-gradient(
                        135deg, 
                        rgba(255, 107, 53, 0.88) 0%, 
                        rgba(255, 140, 66, 0.85) 40%,
                        rgba(46, 134, 171, 0.88) 100%
                    ),
                    url('/img principal/delegaciones hero.jpg');
            }

            .hero-section::before {
                background: linear-gradient(
                    135deg, 
                    rgba(255, 107, 53, 0.02) 0%, 
                    rgba(46, 134, 171, 0.02) 100%
                );
            }

            .hero-section::after {
                background-image: 
                    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
                background-size: 60px 60px;
            }

            .back-button {
                top: 15px;
                left: 15px;
            }

            .btn-back {
                padding: 8px 16px;
                font-size: 0.85rem;
                gap: 6px;
            }

            .btn-back i {
                font-size: 1.1rem;
            }

            .hero-content {
                padding: 0 20px;
                max-width: 100%;
            }

            .hero-title {
                font-size: 2.2rem;
                margin-bottom: 12px;
                letter-spacing: -1px;
                line-height: 1.15;
            }

            .hero-title .highlight {
                -webkit-text-stroke: 2px white;
                text-stroke: 2px white;
            }

            .hero-subtitle {
                font-size: 1.1rem;
                margin-bottom: 18px;
            }

            .hero-description {
                font-size: 0.95rem;
                margin-bottom: 25px;
                line-height: 1.4;
            }

            .hero-info-badge {
                padding: 10px 18px;
                font-size: 0.9rem;
                gap: 8px;
            }

            .badge-icon {
                font-size: 1.2rem;
            }

            .floating-icon {
                font-size: 2.5rem;
                opacity: 0.12;
            }
        }

        @media (max-width: 576px) {
            .hero-section {
                min-height: 50vh;
                padding: 35px 0;
                clip-path: ellipse(120% 100% at 50% 0%);
            }

            .hero-content {
                padding: 0 15px;
            }

            .hero-title {
                font-size: 1.8rem;
                margin-bottom: 10px;
            }

            .hero-title .highlight {
                -webkit-text-stroke: 1.5px white;
                text-stroke: 1.5px white;
            }

            .hero-subtitle {
                font-size: 1rem;
                margin-bottom: 15px;
            }

            .hero-description {
                font-size: 0.9rem;
                margin-bottom: 20px;
            }

            .hero-info-badge {
                padding: 8px 15px;
                font-size: 0.85rem;
                flex-direction: column;
                gap: 5px;
                text-align: center;
            }

            .badge-icon {
                font-size: 1.1rem;
            }

            .back-button {
                top: 12px;
                left: 12px;
            }

            .btn-back {
                padding: 6px 12px;
                font-size: 0.8rem;
                gap: 4px;
            }

            .btn-back i {
                font-size: 1rem;
            }

            .floating-icon {
                font-size: 1.3rem;
                opacity: 0.05;
            }
        }

        @media (max-width: 400px) {
            .hero-section {
                min-height: 45vh;
                padding: 30px 0;
            }

            .hero-content {
                padding: 0 12px;
            }

            .hero-title {
                font-size: 1.6rem;
                margin-bottom: 8px;
            }

            .hero-subtitle {
                font-size: 0.95rem;
                margin-bottom: 12px;
            }

            .hero-description {
                font-size: 0.85rem;
                margin-bottom: 18px;
            }

            .hero-info-badge {
                padding: 6px 12px;
                font-size: 0.8rem;
            }

            .back-button {
                top: 10px;
                left: 10px;
            }

            .btn-back {
                padding: 5px 10px;
                font-size: 0.75rem;
            }

            .floating-icon {
                font-size: 1.2rem;
                opacity: 0.04;
            }
        }

    :root {
        --primary-orange: #FF6B35;
        --secondary-orange: #FF8C42;
        --primary-blue: #2E86AB;
        --secondary-blue: #044C8C;
        --accent-blue: #04A4DC;
        --light-blue: #E8F4F8;
        --warm-white: #FFF8F5;
        --dark-gray: #2C3E50;
        --medium-gray: #5D6D7E;
        --light-gray: #F8F9FA;
    }

    .delegaciones-section {
        padding: 60px 0;
        background: linear-gradient(135deg, var(--warm-white) 0%, var(--light-blue) 50%, #f0f8ff 100%);
        position: relative;
        overflow: hidden;
    }

    /* Elementos decorativos de fondo minimalista */

    .delegaciones-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
        z-index: 1;
    }

    /* Header de la sección */
    .delegaciones-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .delegaciones-title {
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--primary-blue);
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .delegaciones-title i {
        color: var(--primary-orange);
        font-size: 2.2rem;
    }

    .delegaciones-subtitle {
        font-size: 1.2rem;
        color: var(--medium-gray);
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

    /* Sugerencia del mapa mejorada */
    .mapa-suggestion {
        margin-bottom: 40px;
    }

    .mapa-card {
        background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
        border-radius: 20px;
        padding: 30px;
        display: flex;
        align-items: center;
        gap: 25px;
        color: white;
        box-shadow: 0 10px 30px rgba(4, 76, 140, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .mapa-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        animation: pulseHalo 4s ease-in-out infinite;
    }

    .mapa-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(4, 76, 140, 0.3);
    }

    .mapa-decoration {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 3rem;
        opacity: 0.1;
        animation: rotate 20s linear infinite;
    }

    .mapa-icon {
        background: rgba(255, 255, 255, 0.2);
        width: 70px;
        height: 70px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        flex-shrink: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .mapa-content h3 {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .mapa-content p {
        margin-bottom: 20px;
        opacity: 0.9;
        line-height: 1.5;
    }

    .btn-mapa {
        background: var(--primary-orange);
        color: white;
        padding: 12px 25px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }

    .btn-mapa:hover {
        background: var(--secondary-orange);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
        color: white;
        text-decoration: none;
    }

    /* Grid de delegaciones mejorado */
    .delegaciones-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
        margin-bottom: 50px;
    }

    .delegacion-card {
        background: white;
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
    }

    .delegacion-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .delegacion-card:hover::before {
        transform: scaleX(1);
    }

    .delegacion-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border-color: var(--accent-blue);
    }

    .delegacion-card.destacada {
        border: 2px solid var(--primary-orange);
        background: linear-gradient(135deg, #fff 0%, rgba(255, 107, 53, 0.02) 100%);
    }

    .delegacion-card.destacada::before {
        background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
        transform: scaleX(1);
    }

    .delegacion-card.horario-reducido {
        border-left: 4px solid var(--secondary-orange);
    }

    .delegacion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .delegacion-icon {
        background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
    }

    .delegacion-card.destacada .delegacion-icon {
        background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }

    .delegacion-badge {
        background: var(--primary-orange);
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .delegacion-badge.horario {
        background: var(--secondary-orange);
    }

    .delegacion-nombre {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--primary-blue);
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .delegacion-info {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .info-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        color: var(--medium-gray);
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .info-item i {
        color: var(--accent-blue);
        font-size: 1.1rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

    /* Botones de ubicación */
    .delegacion-actions {
        margin-top: 15px;
    }

    .btn-ubicacion {
        background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
        color: white;
        padding: 10px 20px;
        border-radius: 20px;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(4, 164, 220, 0.3);
    }

    .btn-ubicacion:hover {
        background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(4, 164, 220, 0.4);
        color: white;
        text-decoration: none;
    }

    /* Información adicional */
    .info-adicional {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        margin-bottom: 50px;
    }

    .info-card {
        background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
        color: white;
        padding: 25px;
        border-radius: 15px;
        display: flex;
        align-items: center;
        gap: 20px;
        box-shadow: 0 8px 25px rgba(4, 76, 140, 0.2);
        transition: transform 0.3s ease;
    }

    .info-card:hover {
        transform: translateY(-5px);
    }

    .info-icon {
        background: rgba(255, 255, 255, 0.2);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        flex-shrink: 0;
    }

    .info-content h4 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .info-content p {
        font-size: 0.95rem;
        opacity: 0.9;
        line-height: 1.4;
        margin: 0;
    }

    /* Sección de publicidad CAPAS Maps */
    .capas-maps-promo {
        background: linear-gradient(135deg, var(--warm-white) 0%, white 50%, var(--light-blue) 100%);
        border-radius: 25px;
        padding: 40px;
        margin-top: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 3px solid transparent;
        background-clip: padding-box;
        position: relative;
        overflow: hidden;
    }

    .capas-maps-promo::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 3px;
        background: linear-gradient(135deg, var(--primary-orange), var(--accent-blue), var(--primary-blue));
        border-radius: 25px;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: subtract;
        z-index: -1;
    }

    .promo-content {
        display: flex;
        align-items: center;
        gap: 30px;
        margin-bottom: 30px;
    }

    .promo-icon {
        background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
        color: white;
        width: 80px;
        height: 80px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        flex-shrink: 0;
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
        animation: bounce 2s ease-in-out infinite;
    }

    .promo-text h3 {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--primary-blue);
        margin-bottom: 15px;
    }

    .promo-text .highlight {
        color: var(--primary-orange);
        background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .promo-text p {
        font-size: 1.1rem;
        color: var(--medium-gray);
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .promo-features {
        display: flex;
        gap: 25px;
        flex-wrap: wrap;
    }

    .feature {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--primary-blue);
        font-weight: 600;
        font-size: 0.95rem;
    }

    .feature i {
        color: var(--accent-blue);
        font-size: 1.2rem;
    }

    .promo-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-promo-primary {
        background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
        color: white;
        padding: 15px 35px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.1rem;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s ease;
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    }

    .btn-promo-primary:hover {
        background: linear-gradient(135deg, var(--secondary-orange), var(--primary-orange));
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
        color: white;
        text-decoration: none;
    }

    /* Animaciones */

    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.15);
        }
    }

    /* Brillo del recuadro del mapa (antes compartía nombre con el del globito) */
    @keyframes pulseHalo {
        0%, 100% {
            opacity: 0.1;
            transform: scale(1);
        }
        50% {
            opacity: 0.2;
            transform: scale(1.1);
        }
    }

    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }

    @keyframes bounce {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
    }

    /* Responsive */
    @media (max-width: 768px) {
        .delegaciones-section {
            padding: 40px 0;
        }

        .delegaciones-container {
            padding: 0 15px;
        }

        .delegaciones-title {
            font-size: 2rem;
            flex-direction: column;
            gap: 10px;
        }

        .delegaciones-subtitle {
            font-size: 1.1rem;
        }

        .mapa-card {
            flex-direction: column;
            text-align: center;
            padding: 25px;
        }

        .mapa-decoration {
            display: none;
        }

        .delegaciones-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .delegacion-card {
            padding: 20px;
        }

        .info-adicional {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .info-card {
            flex-direction: column;
            text-align: center;
            padding: 20px;
        }

        .capas-maps-promo {
            padding: 30px 20px;
        }

        .promo-content {
            flex-direction: column;
            text-align: center;
            gap: 20px;
        }

        .promo-features {
            justify-content: center;
        }

        .promo-actions {
            justify-content: center;
        }

        .btn-promo-primary {
            width: 100%;
            max-width: 280px;
            justify-content: center;
        }
    }

    @media (max-width: 480px) {
        .delegaciones-title {
            font-size: 1.8rem;
        }

        .mapa-card {
            padding: 20px;
        }

        .mapa-icon {
            width: 60px;
            height: 60px;
            font-size: 1.8rem;
        }

        .delegacion-card {
            padding: 18px;
        }

        .delegacion-nombre {
            font-size: 1.2rem;
        }

        .capas-maps-promo {
            padding: 25px 15px;
        }

        .promo-text h3 {
            font-size: 1.5rem;
        }

        .promo-text p {
            font-size: 1rem;
        }

        .promo-features {
            flex-direction: column;
            gap: 15px;
        }

        .btn-promo-primary {
            padding: 12px 25px;
            font-size: 1rem;
        }
    }

  :root {
    --regreso-azul: #0066CC;
    --regreso-azul-oscuro: #004D99;
    --regreso-naranja: #FF7E33;
    --regreso-naranja-oscuro: #FF6B1A;
    --white: #FFFFFF;
  }

  .return-button-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 0 20px;
  }

  .return-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--regreso-azul), var(--regreso-naranja));
    color: var(--white);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    z-index: 1;
  }

  .return-portal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--regreso-azul-oscuro), var(--regreso-naranja-oscuro));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
  }

  .return-portal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 77, 153, 0.35);
    color: var(--white);
  }

  .return-portal-btn:hover::before {
    opacity: 1;
  }

  .return-portal-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
  }

  .return-portal-btn:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
  }

  .return-portal-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }

  .return-portal-btn:hover i {
    transform: translateX(-4px);
  }

  @keyframes ripple {
    0% {
      transform: scale(0, 0);
      opacity: 0.5;
    }
    100% {
      transform: scale(25, 25);
      opacity: 0;
    }
  }

  /* Responsive styles */
  @media (max-width: 768px) {
    .return-portal-btn {
      padding: 10px 20px;
      font-size: 0.95rem;
    }
  }

  @media (max-width: 576px) {
    .return-portal-btn {
      padding: 8px 16px;
      font-size: 0.9rem;
    }

    .return-portal-btn i {
      font-size: 1rem;
    }
  }

/* Estilos para el botón flotante de WhatsApp - Watsi */
/* Botón flotante principal */

/* Chat box */

/* Botón de acción en el chat */

/* Animaciones */

/* Responsive */

/* Ocultar en dispositivos móviles si deseas */

/* Estilos para el botón de volver arriba con ondas sutiles y periódicas (mismo diseño, nuevo nombre) */
.back-to-top-pulse {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(4, 76, 140, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 99;
}

.back-to-top-pulse svg {
    transition: transform 0.3s ease;
}

.back-to-top-pulse:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    box-shadow: 0 6px 20px rgba(4, 76, 140, 0.4);
    transform: translateY(0) scale(1.05);
}

.back-to-top-pulse:hover svg {
    transform: translateY(-3px);
}

.back-to-top-pulse.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ondas más sutiles y periódicas */
.back-to-top-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--secondary-blue);
    opacity: 0;
    z-index: -1;
    animation: subtle-ripple 4s 2s ease-out infinite;
}

@keyframes subtle-ripple {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    15% {
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Brillo periódico para el botón */
.back-to-top-pulse.visible {
    animation: subtle-glow 6s ease infinite;
}

@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(4, 76, 140, 0.3);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(4, 164, 220, 0.5);
    }
}

/* Ajustes responsivos */
@media screen and (max-width: 768px) {
    .back-to-top-pulse {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    .back-to-top-pulse {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
}

/* Estilos para el botón flotante de WhatsApp - Watsi */
/* Botón flotante principal */
.watsi__button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    user-select: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.watsi__button.watsi-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.watsi__button.watsi__button--hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    pointer-events: none;
}

.watsi__button__open {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1976d2 0%, #4caf50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.watsi__button:hover .watsi__button__open {
    transform: scale(1.1);
    background: linear-gradient(135deg, #1565c0 0%, #388e3c 100%);
    box-shadow: 0 6px 25px rgba(21, 101, 192, 0.6);
}

.watsi__button__sendtext {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1565c0 0%, #388e3c 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    user-select: none;
}

.watsi__button:hover .watsi__button__sendtext {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(10px);
}

.watsi__button__sendtext::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 8px solid #1565c0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.watsi__button__send {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.watsi__button__send i {
    font-size: 26px;
    color: white;
    transition: all 0.3s ease;
    line-height: 1;
}

.watsi__tooltip {
    position: absolute;
    bottom: 75px;
    left: 0;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    user-select: none;
}

.watsi__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

.watsi__button:hover .watsi__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Chat box */
.watsi__box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transform-origin: bottom left;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    overflow: hidden;
}

.watsi__box.watsi__box--show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.watsi__header {
    background: linear-gradient(135deg, #1565c0 0%, #00695c 100%);
    padding: 20px;
    position: relative;
    color: white;
}

.watsi__powered {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.watsi__powered svg {
    width: 60px;
    height: 12px;
    fill: white;
}

.watsi__close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.watsi__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.watsi__close::before,
.watsi__close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.watsi__close::before {
    transform: rotate(45deg);
}

.watsi__close::after {
    transform: rotate(-45deg);
}

.watsi__box__scroll {
    max-height: 300px;
    overflow-y: auto;
}

.watsi__box__content {
    padding: 25px;
}

.watsi__message {
    background: linear-gradient(135deg, #e3f2fd 0%, #e0f2f1 100%);
    padding: 18px;
    border-radius: 15px;
    border-left: 4px solid #1e88e5;
    font-size: 16px;
    line-height: 1.5;
    color: #0d47a1;
    position: relative;
    animation: watsiFadeInMessage 0.5s ease-out;
}

@keyframes watsiFadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.watsi__message::before {
    content: '💬';
    position: absolute;
    top: -8px;
    left: 15px;
    background: #1e88e5;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Botón de acción en el chat */
.watsi__action {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    display: flex;
    gap: 10px;
}

.watsi__action__button {
    flex: 1;
    background: linear-gradient(135deg, #1e88e5 0%, #26a69a 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    animation: watsiGentlePulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.watsi__action__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: watsiShimmer 2.5s infinite;
}

.watsi__action__button:hover {
    background: linear-gradient(135deg, #1565c0 0%, #00695c 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
    animation-play-state: paused;
}

.watsi__action__button--blue {
    background: #2196f3;
    animation-delay: 1.5s;
}

.watsi__action__button--blue::before {
    animation-delay: 1.2s;
}

.watsi__action__button--blue:hover {
    background: #1976d2;
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

@keyframes watsiGentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
}

@keyframes watsiShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Animaciones */
@keyframes watsiPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(30, 136, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 136, 229, 0);
    }
}

.watsi__button__open {
    animation: watsiPulse 2s infinite;
}

/* Responsive */
@media (max-width: 480px) {
    .watsi__box {
        width: calc(100vw - 20px);
        left: 10px;
        bottom: 15px;
    }

    .watsi__button {
        bottom: 15px;
        left: 15px;
    }

    .watsi__action {
        flex-direction: column;
    }

    .watsi__action__button {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* Ocultar en dispositivos móviles si deseas */
@media (max-width: 768px) {
    .watsi__button,
    .watsi__box {
        display: none !important;
    }
}

/* ===================== Cambios de la revisión (Delegaciones) ===================== */

/* 7. Teléfonos y WhatsApp que se pueden tocar: se ven igual */
a.tel { color: inherit; text-decoration: none; }
a.tel:hover { text-decoration: underline; }
@media (hover: none) { a.tel { text-decoration: underline dotted; text-underline-offset: 3px; } }

/* 23. El globito del hero ahora es enlace: mismo aspecto */
a.hero-info-badge { color: inherit; text-decoration: none; cursor: pointer; }
a.hero-info-badge:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#nuestras-delegaciones, #cercania { scroll-margin-top: 100px; }

/* 20 y 27. Abierto / cerrado y horario de hoy */
.delegacion-estado {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -10px 0 16px;
}
.estado-horario {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}
.estado-horario::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.estado-horario.abierto { background: #e6f6ec; color: #1e7a3c; }
.estado-horario.pronto { background: #fff3e0; color: #b45309; }
.estado-horario.cerrado { background: #fdecec; color: #b42318; }
.info-item.hoy { color: var(--dark-gray); font-weight: 700; }

/* 21. ¿Cuál me queda más cerca? */
.cercania {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin: -10px 0 30px;
    text-align: center;
}
.btn-cercania,
.btn-orden-original {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 25px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-cercania {
    padding: 12px 26px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-cercania:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4); }
.btn-cercania:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn-orden-original {
    padding: 10px 18px;
    background: #fff;
    color: var(--primary-blue);
    font-size: 0.9rem;
    border: 2px solid var(--light-blue);
}
.btn-orden-original:hover { border-color: var(--accent-blue); }
.btn-orden-original[hidden] { display: none; }
.cercania-estado {
    flex-basis: 100%;
    margin: 0;
    color: var(--medium-gray);
    font-size: 0.95rem;
}
.cercania-estado:empty { display: none; }
.delegacion-distancia {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
}
.delegacion-card.mas-cercana { border-color: var(--accent-blue); box-shadow: 0 10px 30px rgba(4, 164, 220, 0.25); }
.delegacion-card.mas-cercana .delegacion-distancia { color: var(--primary-orange); }

/* 22 y 25. Cómo llegar, Llamar y Copiar dirección */
.delegacion-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 2px solid var(--light-blue);
    border-radius: 20px;
    background: #fff;
    color: var(--primary-blue);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-mini:hover { border-color: var(--accent-blue); color: var(--secondary-blue); text-decoration: none; transform: translateY(-1px); }
.btn-mini.copiado { border-color: #1e7a3c; color: #1e7a3c; }
.btn-mini:focus-visible,
.btn-cercania:focus-visible,
.btn-orden-original:focus-visible,
.btn-ubicacion:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 3px; }

/* 11. Adornos en pausa fuera de pantalla y apagados si el celular pide menos movimiento */
.anim-pausada .floating-icon, .anim-pausada .badge-icon, .anim-pausada .mapa-decoration,
.mapa-card.anim-pausada::before, .anim-pausada .promo-icon { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
    .floating-icon, .badge-icon, .mapa-decoration, .mapa-card::before, .promo-icon,
    .watsi__button__open, .watsi__action__button, .watsi__action__button::before,
    .back-to-top-pulse::before, .back-to-top-pulse.visible, .capas-bubble { animation: none !important; }
    .floating-icon { opacity: 0.15; }
}
