:root {
--primary: #2a4eca;
--primary-light: #3a5fda;
--primary-dark: #1a3190;
--secondary: #5ecfb1;
--secondary-light: #6edfc1;
--secondary-dark: #4ab69e;
--gradient-1: linear-gradient(135deg, var(--secondary), var(--primary));
--gradient-2: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
--map-inactive: #e2e8f0;
--map-active: var(--primary);
--map-hover: var(--primary-light);
--map-selected: var(--secondary);
}
        
.global-coverage {
    max-width: 100%;
    overflow: hidden;
    padding: 4rem 0;
    position: relative;
}

/* Elementos decorativos de fondo */
.bg-decoration {
    position: absolute;
    z-index: -1;
}

.bg-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94,207,177,0.05) 0%, rgba(94,207,177,0) 70%);
    top: 5%;
    left: -200px;
}

.bg-circle-2 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42,78,202,0.03) 0%, rgba(42,78,202,0) 70%);
    bottom: 5%;
    right: -300px;
}

.bg-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
}

/* Encabezado */
.coverage-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    position: relative;
}

.coverage-subtitle {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(94,207,177,0.3);
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.coverage-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.coverage-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    transform: translateY(30px);
    transition: all 0.6s ease 0.4s;
}

.visible .coverage-subtitle,
.visible .coverage-title,
.visible .coverage-description {
    transform: translateY(0);
    opacity: 1;
}

/* Contenedor del mapa */
.map-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 50%; /* Proporción del mapa */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    background: white;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.visible .map-wrapper {
    transform: translateY(0);
    opacity: 1;
}

.map-svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.map-svg {
    width: 100%;
    height: 100%;
    max-height: 600px;
}

/* Puedes ponerlo en map.css o custom.css */
.map-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(34, 34, 34, 0.25);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1rem;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.map-wrapper:hover .map-hint,
.map-wrapper:focus-within .map-hint {
  opacity: 1;
}

/* Estilos para los países en el mapa */
.country {
    fill: var(--map-inactive);
    stroke: white;
    stroke-width: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.country.active {
    fill: var(--map-active);
}

.country.active:hover {
    cursor: pointer;
    fill: var(--map-hover);
    transform: translateY(-2px);
}

.country.selected {
    fill: var(--map-selected);
}

/* Tooltip para hover en países */
.map-tooltip {
    position: absolute;
    background: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-size: 0.875rem;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
    max-width: 200px;
    text-align: center;
}

.map-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

.map-tooltip-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.map-tooltip-text {
    color: #64748b;
    font-size: 0.75rem;
}

/* Panel de información del país */
.country-info-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: white;
    border-radius: 0 20px 20px 0;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    overflow-y: auto;
    z-index: 10;
}

.country-info-panel.active {
    transform: translateX(0);
}

.panel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: #64748b;
}

.panel-close:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.country-flag {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.country-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.country-status {
    display: inline-flex;
    align-items: center;
    background: rgba(94,207,177,0.1);
    color: var(--secondary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.country-status i {
    margin-right: 0.5rem;
}

.features-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.features-title i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.features-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.feature-item:last-child {
    border-bottom: none;
}


.feature-icon {
    flex: 0 0 24px;
    height: 24px;
    background: rgba(94,207,177,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 0.5rem auto auto;
    color: var(--secondary);
    font-size: 0.75rem;
}

.feature-content {
    flex: 1;
}

.feature-name {
    font-weight: 600;
    color: #334155;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.feature-description {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Leyenda del mapa */
.map-legend {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    transform: translateY(30px);
    transition: all 0.6s ease 0.6s;
}

.visible .map-legend {
    transform: translateY(0);
    opacity: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.legend-active {
    background-color: var(--map-active);
}

.legend-selected {
    background-color: var(--map-selected);
}

.legend-text {
    font-size: 0.875rem;
    color: #64748b;
}

/* Controles del mapa */
.map-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 5;
}

.map-control-button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.map-control-button:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Selector de países para móvil */
.mobile-country-selector {
    display: none;
    margin: 2rem auto;
    max-width: 90%;
}

.country:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.country-select {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    font-family: inherit;
    font-size: 1rem;
    color: #334155;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Animaciones */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 4s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1200px) {
    .country-info-panel {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .coverage-title {
        font-size: 2rem;
    }

    .map-wrapper {
        padding-bottom: 60%;
    }

    .country-info-panel {
        width: 280px;
    }
}

/* Agrega esto a tu CSS, por ejemplo en map.css o custom.css */
@media (max-width: 768px) {
  .map-wrapper,
  .map-svg-container,
  #map-svg-placeholder,
  .map-controls,
  .map-legend,
  .global-coverage {
    display: none !important;
  }
}