/* Importar fuente Tabler Icons */
@import 'https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/dist/tabler-icons.min.css';

/* Contenedor del Mapa */
#map-container {
    width: 100%;
    height: 600px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

/* Asegurar que el mapa ocupe todo el espacio del contenedor */
#map-container > div {
    width: 100% !important;
    height: 100% !important;
    z-index: 100;
}

/* Estilos para los marcadores */
.mapboxgl-marker {
    cursor: pointer;
}

/* Popup personalizado */
.mapboxgl-popup {
    max-width: 200px;
}

.mapboxgl-popup-content {
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mapboxgl-popup-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.mapboxgl-popup-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* ===== Hero Section ===== */
.pricing-hero {
    background: linear-gradient(-84deg, #1f53bc 0%, #291fbc 100%);
    color: white;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-hero h1 {
    display: inline-block;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    padding: 0 20px 10px;
    position: relative;
    font-size: 3rem;
}

.pricing-hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #ffffff 50%, rgba(255,255,255,0) 100%);
    border-radius: 2px;
}

.pricing-hero .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2rem;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.pricing-hero .badge {
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.pricing-hero .badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

/* ===== Estilos para las tarjetas de departamentos ===== */
.department-cards {
    margin: 3rem 0;
}

.department-cards h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
    font-size: 3rem;
}

.department-cards h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border-radius: 3px;
}

.department-cards .card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.department-cards .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.department-cards .card-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
    font-size: 2rem;
    color: white !important;
}

.department-cards .card-header i {
    margin-right: 12px;
    font-size: 2rem;
    vertical-align: middle;
    color: white !important;
}

.department-cards .card-body {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Estilos específicos para cada tipo de tarjeta */
.department-cards .card-primary .card-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
}

.department-cards .card-success .card-header {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.department-cards .card-info .card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* Estilos para el contador de empresas */
.department-count {
    text-align: center;
    margin: 1.5rem 0;
}

/* Estilos para la sección de ubicación */
.department-location {
    text-align: center;
    margin-bottom: 1.5rem;
}

.department-location h5 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.2;
}

.department-location small {
    display: block;
    color: #6c757d;
    margin-top: 0.5rem;
}

.department-count .count {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.department-cards .card-primary .department-count .count {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
}

.department-cards .card-success .department-count .count {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    -webkit-background-clip: text;
}

.department-cards .card-info .department-count .count {
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
}

.department-count .label {
    color: #7f8c8d;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

/* Estilos para la lista de departamentos */
.department-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.department-list li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.department-list li:last-child {
    border-bottom: none;
}

.department-list i {
    margin-right: 10px;
    font-size: 1.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}


/* Estilos para la cuadrícula de departamentos */
.department-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.department-item {
    padding: 0.5rem 0;
}

.department-item .name {
    color: #7f8c8d;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.department-item .count {
    margin-bottom: 1.5rem;
}
    
.info-cards .card {
    height: auto;
    padding: 1.25rem;
}

.info-cards .card-title {
    font-size: 1.3rem;
}

.info-cards .card-text {
    font-size: 1rem;
}


@media (max-width: 420px) {
    .department-grid {
        grid-template-columns: 1fr;
    }
    
    .department-item {
        padding: 1rem 0.5rem;
    }
}

/* Estilos para las tarjetas inferiores */
.info-cards .card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 1.5rem;
    background: #fff;
}

.info-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-cards .card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.card-body i{
    font-size: 2.5rem !important;
}
.info-cards.card-body i{
    font-size: 3rem !important;
}

.info-cards .card-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 1.2rem 0 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.info-cards .card-title i {
    font-size: 2.5rem !important;
    margin-right: 10px;
    color: #3498db;
}

.info-cards .card-text {
    color: #6c757d;
    font-size: 1.8rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Estilos para la sección de suscripción */
.subscription-section {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 5rem 0;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.subscription-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

.subscription-section h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.subscription-section .lead {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #6c757d;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-section .btn {
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    min-width: 220px;
    margin: 0.5rem;
}

.subscription-section .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subscription-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.subscription-section .btn-outline-primary {
    color: #3498db;
    border: 2px solid #3498db;
    background: transparent;
}

.subscription-section .btn-outline-primary:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-3px);
}

/* Estilos para la lista de beneficios */
.subscription-section .text-success {
    color: #2ecc71 !important;
}

/* Estilos responsivos */
@media (max-width: 991.98px) {
    .subscription-section {
        padding: 3.5rem 0;
    }
    
    .subscription-section h2 {
        font-size: 2.2rem;
    }
    
    .subscription-section .lead {
        font-size: 1.2rem;
    }
    
    .subscription-section .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .subscription-section {
        margin: 3rem 0;
        border-radius: 0;
        padding: 3rem 1rem;
    }
    
    .subscription-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .subscription-section .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .subscription-section .btn {
        width: 100%;
        max-width: 280px;
        margin: 0.5rem auto;
    }
    
    .subscription-section .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* Efecto de olas decorativo */
.wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-decoration svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.wave-decoration .shape-fill {
    fill: #FFFFFF;
}

/* Map Container */
.map-container {
    width: 100%;
    position: relative;
    background: #f0f4f8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    min-height: 600px;
}

#map-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.map-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 400px;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-info h3 {
    margin-top: 0;
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.map-info p {
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.map-controls {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-btn {
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #2d3748;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: #f8fafc;
}

.location-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #2563eb;
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-marker:hover {
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 100;
}

.location-marker::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.3);
    border-radius: 50%;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .map-container {
        height: 60vh;
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .map-info {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
        padding: 1rem;
    }
    
    .map-controls {
        top: 1rem;
        right: 1rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
