/* Hero Cobertura — solo la imagen de fondo (el resto lo maneja .hero-page) */
.hero-cobertura {
    background-image: url('../img/portada/portada-cobertura.jpg');
}

/* Sección combinada Verificador + Mapa */
.cobertura-combinada {
    padding: 80px 0;
    background: #f8f9fa;
}

.cobertura-combinada .container {
    max-width: 90%;
    width: 90%;
}

.cobertura-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: stretch;
}

.verificador-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 91, 159, 0.15);
    height: fit-content;
    position: sticky;
    top: 100px;
}

#map {
    height: 700px;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 91, 159, 0.25);
    border: 3px solid white;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #005B9F;
    font-size: 1.05rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #005B9F;
    box-shadow: 0 0 15px rgba(0, 91, 159, 0.15);
    background: white;
}

.btn-verificar {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-verificar:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #2ebd4e, #28a745);
}

.btn-verificar i {
    font-size: 1.3rem;
}

.resultado-cobertura {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.resultado-cobertura.disponible {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.resultado-cobertura.no-disponible {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.btn-verificar {
    animation: pulse-green 2s infinite;
}

/* Proceso de Instalación Mejorado */
.proceso-section {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.proceso-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-top: 5rem;
    padding: 0 2rem;
}

.proceso-timeline::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(0, 91, 159, 1) 0%,
        rgba(0, 91, 159, 0.8) 25%,
        rgba(0, 91, 159, 0.6) 50%,
        rgba(0, 91, 159, 0.4) 75%,
        rgba(0, 91, 159, 0.2) 100%
    );
    border-radius: 2px;
    z-index: 1;
}

.proceso-step {
    position: relative;
    width: 18%;
    text-align: center;
    z-index: 2;
    opacity: 0;
    animation: fadeInStep 0.6s ease-out forwards;
}

.proceso-step:nth-child(1) { animation-delay: 0.2s; }
.proceso-step:nth-child(2) { animation-delay: 0.4s; }
.proceso-step:nth-child(3) { animation-delay: 0.6s; }
.proceso-step:nth-child(4) { animation-delay: 0.8s; }
.proceso-step:nth-child(5) { animation-delay: 1s; }

.step-content {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 91, 159, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.proceso-step:hover .step-content {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 91, 159, 0.15);
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #005B9F, #0077CC);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1rem auto 1.5rem;
    position: relative;
    box-shadow: 0 0 0 4px white, 0 0 0 6px #005B9F;
}

.step-icon {
    font-size: 3rem;
    color: #E58E21;
    margin-bottom: 1rem;
    display: block;
}

.step-title {
    font-size: 1.3rem;
    color: #005B9F;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.step-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .proceso-timeline {
        flex-direction: column;
        gap: 3rem;
    }
    
    .proceso-timeline::before {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, 
            rgba(0, 91, 159, 1) 0%,
            rgba(0, 91, 159, 0.8) 25%,
            rgba(0, 91, 159, 0.6) 50%,
            rgba(0, 91, 159, 0.4) 75%,
            rgba(0, 91, 159, 0.2) 100%
        );
    }
    
    .proceso-step {
        width: 80%;
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .step-number {
        flex-shrink: 0;
        margin: 0;
    }
    
    .step-content {
        text-align: left;
        flex: 1;
    }
    
    .cobertura-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .verificador-card {
        position: static;
    }
}

@media (max-width: 768px) {

    
    #map {
        height: 400px;
    }
    
    .verificador-card {
        padding: 30px 20px;
    }
    
    .zonas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .proceso-step {
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
    
    .step-content {
        text-align: center;
    }
    
    .hero-cobertura {
        background-image: url('../img/portada/portada-res-cobertura.jpg');
    }
}

@media (max-width: 480px) {

    
    .zona-card {
        padding: 20px;
    }
    
    .zona-nombre {
        font-size: 1.3rem;
    }
    
    .step-icon {
        font-size: 2.5rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
}
/* Estilos para el formulario simplificado */
.formulario-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 91, 159, 0.12);
    height: 100%;
    border: 1px solid rgba(0, 91, 159, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

.btn-small {
    padding: 10px 15px;
    background: #005B9F;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-small:hover {
    background: #0077CC;
    transform: translateY(-1px);
}

.ubicacion-info {
    background: #eef7ff;
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 91, 159, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ubicacion-info > i.fa-map-marker-alt {
    color: #005B9F;
    font-size: 1.2rem;
}

#coordenadasTexto {
    font-family: monospace;
    font-size: 0.9rem;
    flex-grow: 1;
}

.mapa-container {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.mapa-instructions {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    background: rgba(0, 91, 159, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 0 0 20px 20px;
    text-align: center;
    font-size: 0.9rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Estilos para el marcador interactivo (Estilo Google Maps) */
.custom-div-icon {
    background: transparent;
    border: none;
}

.marker-wrapper {
    position: relative;
    width: 30px;
    height: 42px;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: radial-gradient(circle at 30% 30%, #ff0000, #ff0000);
    position: absolute;
    transform: rotate(-45deg);
    left: 0;
    top: 3px;
    border: 2.5px solid white;
    box-shadow: -3px 3px 6px rgba(0,0,0,0.3);
    animation: bounceMarker 0.6s cubic-bezier(0.28, 0.84, 0.42, 1);
}

.marker-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 10px;
    top: 13px;
    z-index: 10;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDot 0.8s ease-in;
}

.marker-pulse {
    position: absolute;
    width: 24px;
    height: 8px;
    background: rgba(229, 142, 33, 0.6);
    border-radius: 50%;
    left: 3px;
    bottom: 2px;
    z-index: -1;
    animation: pulseAnimation 1.5s infinite;
}

@keyframes bounceMarker {
    0% { transform: translateY(-50px) rotate(-45deg); opacity: 0; }
    50% { transform: translateY(0) rotate(-45deg); opacity: 1; }
    70% { transform: translateY(-8px) rotate(-45deg); }
    100% { transform: translateY(0) rotate(-45deg); }
}

@keyframes fadeInDot {
    0% { opacity: 0; transform: scale(0); }
    60% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulseAnimation {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Estilos para la búsqueda de direcciones */
.busqueda-container {
    position: absolute;
    top: 10px;
    left: 50px;
    right: 10px;
    z-index: 1000;
}

#searchBox {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    font-size: 1rem;
    transition: all 0.3s ease;
}

#searchBox:focus {
    outline: none;
    border-color: #005B9F;
    box-shadow: 0 10px 30px rgba(0, 91, 159, 0.2);
    width: 105%;
}

@media (max-width: 1024px) {
    .formulario-card {
        position: static;
        margin-bottom: 30px;
    }
}