:root {
    --primary-color: #86ff05;
    --primary-dark: #6ad000;
    --secondary-color: #a0f42a;
    --dark-bg: #000000;
    --darker-bg: #000000;
    --card-bg: #101010;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-light: rgba(255, 255, 255, 0.1);
    --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: all 0.35s cubic-bezier(0.19, 1.15, 0.22, 1);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.3);
    --glow-primary: 0 0 20px rgba(134, 255, 5, 0.4);
    --font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.37, 0, 0.45, 0.99);
}

*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    background: #000000;
}

img {
    max-width: 100%;
    height: auto;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animación del GPS */
@keyframes driving {
    0% {
        transform: translateY(-650px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Contenedor principal */
.map-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
    position: relative;
}

/* Hero con animación GPS mejorada full-width sin cortes laterales */
.hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 100vh;
    max-height: 820px;
    min-height: 640px;
    overflow: hidden;
    margin-bottom: 60px;
    background: #000000;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 50%, #000000 100%);
    pointer-events: none;
    z-index: 5;
}

.hero__content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 24px 20px;
    text-align: center;
    margin-top: 5px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    position: relative;
    text-align: center;
}

.hero__title-sub {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 16px;
    position: relative;
    text-shadow: none;
}

.hero__title-sub::before,
.hero__title-sub::after {
    content: '';
    display: inline-block;
    width: 38px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color));
    border-radius: 2px;
}

.hero__title-sub::after {
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.hero__title-main {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #ffffff;
    text-shadow: none;
    position: relative;
}

.hero__title-accent {
    background: linear-gradient(135deg, #b8ff4a 0%, #86ff05 50%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
    font-weight: 900;
    position: relative;
    display: inline-block;
    text-shadow: none;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    max-width: 760px;
    line-height: 1.65;
    text-shadow: none;
}

.hero__search {
    position: relative;
    width: 100%;
    max-width: 660px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    background: rgba(14, 18, 16, 0.88);
    border: 1.5px solid rgba(134, 255, 5, 0.35);
    border-radius: 60px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(134, 255, 5, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
}

.hero__search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(134, 255, 5, 0.35);
    background: rgba(20, 26, 22, 0.95);
}

.hero__search-icon {
    position: static;
    transform: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 14px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__search-input {
    flex: 1;
    width: 100%;
    padding: 12px 10px 12px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--text-light);
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    box-shadow: none;
}

.hero__search-input:focus {
    outline: none;
    border: none;
    background: transparent;
    box-shadow: none;
}

.hero__search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.98rem;
}

.hero__search-clear {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.hero__search-clear:hover {
    color: #ff5555;
}

.hero__search-button {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #86ff05 0%, #6cd100 100%);
    color: #000000;
    border: none;
    border-radius: 50px;
    padding: 12px 26px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(134, 255, 5, 0.35);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
}

.hero__search-button:hover {
    background: linear-gradient(135deg, #a4ff3b 0%, #7ee600 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(134, 255, 5, 0.5);
}

.hero__search-button i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.hero__search-button:hover i {
    transform: translateX(3px);
}

/* Quick Tags / Pills interactivas limpias */
.hero__quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.quick-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.quick-tag:hover {
    background: rgba(134, 255, 5, 0.15);
    border-color: rgba(134, 255, 5, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.quick-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000000;
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(134, 255, 5, 0.4);
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero__action-btn:hover {
    background: rgba(134, 255, 5, 0.12);
    border-color: rgba(134, 255, 5, 0.5);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(134, 255, 5, 0.15);
}

.hero__action-btn--primary {
    background: rgba(134, 255, 5, 0.12);
    border-color: rgba(134, 255, 5, 0.4);
    color: var(--primary-color);
}

.hero__action-btn--primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000000;
}

.hero__action-btn i {
    font-size: 1.05rem;
}

/* Fondo de Mapa 3D Digital con rastro dinámico de ruta */
.map-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.map-3d__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #030604;
    background-image:
        radial-gradient(circle at 50% 40%, rgba(134, 255, 5, 0.12) 0%, transparent 70%),
        radial-gradient(circle at 10% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 90% 45%, rgba(134, 255, 5, 0.08) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, transparent 35%, transparent 65%, #000000 100%);
}

.map-3d__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
}

/* Difuminado envolvente de 360° y máscara suave */
.map-3d__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.78) 75%, #000000 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 30%, rgba(0, 0, 0, 0.6) 70%, #000000 100%);
    pointer-events: none;
    z-index: 2;
}

.map-3d__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.map-3d__particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.65;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.65;
    }

    90% {
        opacity: 0.65;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Encabezado del mapa */
.map-header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    padding: 0 20px;
}

.map-header h1 {
    font-size: 2.5rem;
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, var(--text-light), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 3px;
}

.map-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* Barra de controles interactiva de Ubicación y Cobertura */
.map-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(14, 20, 16, 0.9);
    border: 1px solid rgba(134, 255, 5, 0.25);
    border-radius: 16px;
    padding: 12px 20px;
    margin: 0 auto 24px;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(134, 255, 5, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.map-controls-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e5ffe0;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary-color);
    animation: status-blink 2s infinite ease-in-out;
}

@keyframes status-blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.map-branch-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-branch-selector label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-select {
    background: #080c09;
    color: #ffffff;
    border: 1px solid rgba(134, 255, 5, 0.35);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.map-select:focus,
.map-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(134, 255, 5, 0.25);
}

.map-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(134, 255, 5, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(134, 255, 5, 0.3);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.map-tool-btn:hover {
    background: var(--primary-color);
    color: #000000;
    box-shadow: 0 0 18px rgba(134, 255, 5, 0.4);
}

/* Contenedor del mapa */
.map-wrapper {
    position: relative;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(134, 255, 5, 0.12);
    border: 1.5px solid rgba(134, 255, 5, 0.3);
    transition: var(--transition);
    margin-bottom: 60px;
    background: #111813;
}

.map-wrapper:hover {
    border-color: rgba(134, 255, 5, 0.5);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(134, 255, 5, 0.22);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Tarjeta flotante de cobertura */
.map-floating-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    max-width: 320px;
    background: rgba(10, 15, 12, 0.92);
    border: 1.5px solid rgba(134, 255, 5, 0.35);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(134, 255, 5, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 5;
    pointer-events: auto;
    transition: var(--transition);
}

.map-floating-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.map-floating-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.map-floating-card__desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.map-floating-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b8ff4a;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.map-floating-card__link:hover {
    color: #ffffff;
    gap: 10px;
}

/* Sección de sucursales con amplio espaciado */
.branch-list {
    margin-top: 40px;
    margin-bottom: 60px;
    position: relative;
    padding-top: 70px;
    padding-bottom: 80px;
}

.branch-list::before {
    display: none;
}

.branch-section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.branch-section-pill {
    display: none;
}

.branch-list h2 {
    margin-bottom: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 0.95;
    letter-spacing: -2px;
    text-align: center;
}

.branch-list h2 .h2-light {
    display: block;
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1.2px;
    margin: 0;
    text-shadow: none;
    line-height: 0.95;
}

.branch-list h2 .h2-accent {
    display: block;
    font-size: 6.6rem;
    font-weight: 900;
    letter-spacing: -3.5px;
    background: linear-gradient(135deg, #b8ff4a 0%, #86ff05 45%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
    text-shadow: none;
    line-height: 0.92;
    margin-top: -10px;
}

.branch-section-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 680px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* Pestañas de Filtro Interactivas */
.branch-tabs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.branch-tabs-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 auto;
    width: 100%;
}

.branch-tab-btn {
    background: rgba(18, 24, 18, 0.7);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.branch-tab-btn:hover {
    color: #ffffff;
    border-color: rgba(134, 255, 5, 0.4);
    background: rgba(25, 36, 22, 0.85);
    transform: translateY(-2px);
}

.branch-tab-btn.active {
    background: var(--primary-color);
    color: #000000;
    border-color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(134, 255, 5, 0.35);
}

/* Grid de sucursales simétrico, centrado y con dimensiones consistentes */
.branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 390px));
    gap: 28px;
    margin-top: 30px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

/* Tarjetas de sucursales */
.branch-card {
    background: linear-gradient(180deg, #121814 0%, #0d120e 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 26px 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    opacity: 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #22c55e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.branch-card:hover::before {
    transform: scaleX(1);
}

.branch-card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(134, 255, 5, 0.15);
    border-color: rgba(134, 255, 5, 0.45);
    background: linear-gradient(180deg, #151e18 0%, #0f1510 100%);
}

/* Animaciones de Entrada y Salida para las Cards */
@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.92);
    }

    65% {
        opacity: 0.95;
        transform: translateY(-4px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardExit {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(22px) scale(0.92);
    }
}

.branch-card.card-entering {
    animation: cardEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}

.branch-card.card-exiting {
    animation: cardExit 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Header de la tarjeta */
.branch-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.branch-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(134, 255, 5, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(134, 255, 5, 0.28);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
    animation: status-blink 2s infinite ease-in-out;
}

.branch-zone-tag {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Título de la tarjeta y Avatar */
.branch-card__title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.branch-avatar {
    width: 48px;
    height: 48px;
    background: rgba(134, 255, 5, 0.12);
    border: 1px solid rgba(134, 255, 5, 0.32);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease;
}

.branch-card:hover .branch-avatar {
    background: var(--primary-color);
    color: #000000;
    transform: scale(1.06);
}

.branch-title-text {
    flex: 1;
}

.branch-name {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.branch-card:hover .branch-name {
    color: var(--primary-color);
}

.branch-badge-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    display: inline-block;
}

/* Información de sucursal con máxima nitidez, distribución y orden */
.branch-info {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
}

.info-row:hover {
    background: rgba(134, 255, 5, 0.04);
    border-color: rgba(134, 255, 5, 0.25);
    transform: translateX(3px);
}

.info-icon {
    width: 34px;
    height: 34px;
    background: rgba(134, 255, 5, 0.1);
    border: 1px solid rgba(134, 255, 5, 0.22);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.92rem;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.25s ease;
}

.info-row:hover .info-icon {
    background: var(--primary-color);
    color: #000000;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(134, 255, 5, 0.35);
}

.info-data {
    flex: 1;
    min-width: 0;
}

.info-data strong {
    display: block;
    color: #88fa0d;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
    transition: color 0.2s ease;
}

.info-row:hover .info-data strong {
    color: var(--primary-color);
}

.info-data span {
    display: block;
    color: #f1f5f9;
    font-size: 0.93rem;
    font-weight: 500;
    line-height: 1.45;
}

.branch-phone-link {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.branch-phone-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Botones de acción */
.branch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.branch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.branch-button--map {
    flex: 1;
    background: linear-gradient(135deg, #b8ff4a 0%, #86ff05 100%);
    color: #000000;
    border: 1px solid #86ff05;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 0 16px rgba(134, 255, 5, 0.4);
}

.branch-button--map i,
.branch-button--map span {
    color: #000000;
}

.branch-button--map:hover {
    background: linear-gradient(135deg, #c7ff6b 0%, #86ff05 100%);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(134, 255, 5, 0.65);
}

.branch-button--call {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.branch-button--call:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}

.branch-button--wa {
    background: linear-gradient(135deg, #b8ff4a 0%, #86ff05 100%);
    color: #000000;
    border: 1px solid #86ff05;
    padding: 11px 15px;
    border-radius: 14px;
    box-shadow: 0 0 16px rgba(134, 255, 5, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.branch-button--wa i {
    color: #000000;
    font-size: 1.05rem;
}

.branch-button--wa:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 24px rgba(134, 255, 5, 0.7);
    color: #000000;
}

/* Animación de pulso para el indicador */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(134, 255, 5, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(134, 255, 5, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(134, 255, 5, 0);
    }
}

/* Elementos flotantes */
.floating-element {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 255, 5, 0.1) 0%, transparent 70%);
    opacity: 0.5;
    filter: blur(50px);
    pointer-events: none;
    z-index: -1;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: -100px;
    animation: float 15s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    bottom: 30%;
    right: -100px;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 30px);
    }
}

/* Footer */
.map-footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    line-height: 1.8;
}

.map-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.map-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.map-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.map-footer a:hover::after {
    width: 100%;
}

.map-footer p {
    margin-bottom: 15px;
}

.map-footer p:last-child {
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Tooltip para los marcadores */
.marker-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 20;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(134, 255, 5, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.map-3d__marker:hover .marker-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Loader para el mapa */
.map-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.5s ease;
    border-radius: 16px;
}

.map-loader__spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(134, 255, 5, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Indicador de pulso para las tarjetas */
.pulse-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse 2s infinite;
}

/* Filtros para las sucursales */
.branch-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.branch-filter {
    background: rgba(134, 255, 5, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(134, 255, 5, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.branch-filter:hover {
    background: rgba(134, 255, 5, 0.2);
    transform: translateY(-3px);
}

.branch-filter.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    font-weight: 600;
}

/* Contador de resultados */
.results-count {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.results-count span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mensaje de no resultados */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    margin-top: 30px;
    display: none;
}

.no-results i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.no-results p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero__title {
        font-size: 3rem;
    }

    .hero__subtitle {
        font-size: 1.3rem;
    }

    .map-header h1 {
        font-size: 2.2rem;
    }

    .branch-list h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .branches {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .branch-card {
        padding: 25px;
    }

    .branch-name {
        font-size: 1.3rem;
    }

    .map-wrapper {
        height: 450px;
    }
}

@media (max-width: 768px) {

    .hero__content {
        position: relative;
        z-index: 10;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
        text-align: center;
        margin-top: 10px;
    }

    .hero {
        height: auto;
        min-height: 85vh;
        max-height: none;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero__title {
        gap: 4px;
        margin-bottom: 16px;
    }

    .hero__title-sub {
        font-size: 1.35rem;
        letter-spacing: 5px;
    }

    .hero__title-sub::before,
    .hero__title-sub::after {
        width: 28px;
    }

    .hero__title-main {
        font-size: 3.65rem;
        line-height: 1.05;
    }

    .hero__subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
        margin: 0 auto 24px;
        max-width: 540px;
        padding: 0 16px;
    }

    .hero__search {
        padding: 4px 6px 4px 16px;
        margin-bottom: 20px;
    }

    .hero__search-input {
        font-size: 0.95rem;
        padding: 10px 5px 10px 0;
    }

    .hero__search-button {
        padding: 10px 18px;
        font-size: 0.88rem;
    }

    .hero__quick-tags {
        margin-bottom: 24px;
        gap: 8px;
    }

    .quick-tag {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 12px;
        margin-bottom: 20px;
    }

    .hero__action-btn {
        width: 100%;
        justify-content: center;
    }

    .map-header h1 {
        font-size: 1.9rem;
    }

    .map-header p {
        font-size: 1rem;
    }

    .map-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 14px;
    }

    .map-branch-selector {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .map-select {
        width: 100%;
    }

    .map-tool-btn {
        width: 100%;
        justify-content: center;
    }

    .map-floating-card {
        bottom: 12px;
        left: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
        padding: 12px 14px;
    }

    .map-wrapper {
        height: 440px;
    }

    .branch-list {
        padding-top: 40px;
        padding-bottom: 50px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .branch-list h2 .h2-light {
        font-size: 2.35rem;
    }

    .branch-list h2 .h2-accent {
        font-size: 4.8rem;
    }

    .branch-tabs-bar {
        gap: 8px;
    }

    .branch-tab-btn {
        padding: 7px 13px;
        font-size: 0.8rem;
    }

    .branches {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .branch-card {
        padding: 22px;
        max-width: 100%;
    }

}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        max-height: none;
        padding-top: 165px;
        padding-bottom: 50px;
        margin-bottom: 30px;
    }

    .hero__content {
        height: auto;
        padding: 0 20px;
        margin-top: 15px;
    }

    .hero__title {
        gap: 6px;
        margin-bottom: 14px;
    }

    .hero__title-sub {
        font-size: 1.15rem;
        letter-spacing: 5px;
        font-weight: 700;
    }

    .hero__title-sub::before,
    .hero__title-sub::after {
        width: 22px;
    }

    .hero__title-main {
        font-size: 3.75rem;
        font-weight: 900;
        line-height: 1.03;
        letter-spacing: -1.8px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__title-accent {
        padding-bottom: 2px;
        margin-top: -3px;
    }

    .hero__subtitle {
        font-size: 1.05rem;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.88);
        margin: 0 auto 20px;
        max-width: 360px;
        padding: 0 8px;
    }

    .hero__search {
        margin: 0 auto 14px;
        padding: 5px 6px 5px 14px;
        border-radius: 50px;
        width: 100%;
        max-width: 360px;
    }

    .hero__search-icon {
        font-size: 1rem;
        margin-right: 8px;
    }

    .hero__search-input {
        font-size: 0.88rem;
        padding: 8px 4px 8px 0;
        min-width: 0;
    }

    .hero__search-button {
        padding: 8px 15px;
        font-size: 0.82rem;
        border-radius: 40px;
        gap: 6px;
    }

    .hero__quick-tags {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding: 6px 16px;
        margin: 0 auto 20px;
        max-width: 100%;
        width: 100%;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
    }

    .hero__quick-tags::-webkit-scrollbar {
        display: none;
    }

    .quick-tag {
        flex-shrink: 0;
        scroll-snap-align: start;
        font-size: 0.8rem;
        padding: 6px 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.85);
        white-space: nowrap;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 330px;
        gap: 10px;
        margin: 0 auto;
    }

    .hero__action-btn {
        width: 100%;
        padding: 11px 18px;
        font-size: 0.88rem;
        border-radius: 50px;
        justify-content: center;
    }

    .map-header h1 {
        font-size: 1.55rem;
    }

    .map-wrapper {
        height: 320px;
    }

    .branch-section-title-wrap {
        padding: 0 12px;
        margin-bottom: 24px;
        text-align: center;
    }

    .branch-list h2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 12px;
    }

    .branch-list h2 .h2-light {
        font-size: 1.65rem;
        letter-spacing: -0.5px;
        line-height: 1.05;
        margin: 0 0 2px 0;
    }

    .branch-list h2 .h2-accent {
        font-size: 3.55rem;
        letter-spacing: -1.8px;
        white-space: nowrap;
        line-height: 0.94;
        margin-top: -2px;
    }

    .branch-section-subtitle {
        font-size: 0.92rem;
        margin: 0 auto 20px;
        line-height: 1.42;
        max-width: 380px;
        padding: 0 4px;
        color: rgba(255, 255, 255, 0.78);
    }

    .branch-tabs-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 22px;
        display: flex;
        align-items: center;
    }

    .branch-tabs-bar {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
        gap: 10px;
        padding: 6px 16px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
    }

    .branch-tabs-bar::-webkit-scrollbar {
        display: none;
    }

    .branch-tab-btn {
        flex-shrink: 0;
        scroll-snap-align: center;
        padding: 9px 18px;
        font-size: 0.84rem;
        font-weight: 600;
        white-space: nowrap;
        border-radius: 50px;
        background: rgba(18, 24, 18, 0.75);
        color: rgba(255, 255, 255, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.12);
        transition: all 0.25s ease;
    }

    .branch-tab-btn.active {
        background: var(--primary-color);
        color: #000000;
        border-color: var(--primary-color);
        font-weight: 750;
        box-shadow: 0 4px 16px rgba(134, 255, 5, 0.4);
    }

    .branches {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }

    .branch-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .branch-actions {
        flex-direction: row;
        gap: 8px;
    }

    .branch-button {
        padding: 10px 12px;
        font-size: 0.84rem;
    }

    .back-button {
        top: 75px;
        left: 10px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(134, 255, 5, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(134, 255, 5, 0.8);
    }
}


body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #000000;
    overflow-x: hidden;
    line-height: 1.6;
}