.cobertura-fullscreen {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    display: flex;
    overflow: hidden;
    background: #1e293b;
}

#mapa-cobertura {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* CAPA DE COBERTURA CONTINUA (MANCHA UNIFICADA DE FIBRA) */
.leaflet-coveragePane-pane {
    z-index: 380 !important;
}

.leaflet-coveragePane-pane svg path {
    fill-rule: nonzero !important;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
    transition: all 0.3s ease;
}

.floating-panel {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255,255,255,0.4);
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.floating-panel::-webkit-scrollbar { width: 6px; }
.floating-panel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Buscador Autocomplete */
.search-container { position: relative; margin-bottom: 1.5rem; }
.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #1e293b;
    font-family: 'Poppins', sans-serif;
}
.search-input:focus {
    border-color: #f97316;
    outline: none;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
    background: #ffffff;
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
}

.suggestions-box {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 20;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    border: 1px solid #f1f5f9;
}
.suggestion-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #475569;
    transition: background 0.2s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: #fff7ed; color: #ea580c; }

/* Botón de Geolocalización */
.btn-geo {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-geo:hover { background: #f1f5f9; border-color: #94a3b8; }
.btn-geo i { color: #f97316; font-size: 1.1rem; }

/* MODAL CENTRADO (OVERLAY) */
.center-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.center-modal-overlay.active {
    opacity: 1;
}

.center-modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.center-modal-overlay.active .center-modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover { color: #0f172a; }

/* Animaciones del Modal */
#scan-content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.radar-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.2);
    border: 2px solid #f97316;
    animation: radar 1.2s infinite ease-out;
    margin-bottom: 1.5rem;
}
@keyframes radar {
    0% { transform: scale(0.1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.result-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Badges para los 3 Estados */
.success-badge {
    display: inline-flex; align-items: center; background: #dcfce7; color: #166534; padding: 0.5rem 1rem; border-radius: 999px; font-weight: 700; font-family: 'Poppins', sans-serif; font-size: 0.9rem; margin-bottom: 1rem;
}
.warning-badge {
    display: inline-flex; align-items: center; background: #fef9c3; color: #854d0e; padding: 0.5rem 1rem; border-radius: 999px; font-weight: 700; font-family: 'Poppins', sans-serif; font-size: 0.9rem; margin-bottom: 1rem;
}
.fail-badge {
    display: inline-flex; align-items: center; background: #fee2e2; color: #991b1b; padding: 0.5rem 1rem; border-radius: 999px; font-weight: 700; font-family: 'Poppins', sans-serif; font-size: 0.9rem; margin-bottom: 1rem;
}

.result-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #0f172a;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

/* Input Forms */
.lead-form input {
    border-radius: 10px; padding: 0.8rem; background: #f8fafc; border: 1px solid #e2e8f0; font-family: 'Poppins', sans-serif;
}
.lead-form button {
    border-radius: 10px; padding: 0.8rem; font-weight: 600; font-family: 'Poppins', sans-serif;
}

@media(max-width: 768px) {
    .cobertura-fullscreen { flex-direction: column-reverse; height: auto; min-height: 0; }
    #mapa-cobertura { position: relative; height: 50vh; min-height: 400px; }
    .floating-panel { max-width: 100%; border-right: none; border-top: 2px solid #f97316; padding: 1.5rem; box-shadow: 0 -4px 20px rgba(0,0,0,0.05); }
    .center-modal-content { padding: 2.5rem 1.5rem; }
}

/* --- COBERTURA VIEW --- */
.cobertura-hero {
    background: linear-gradient(135deg, #f85056 0%, #e32128 50%, #8f0d12 100%);
    padding: 80px 0 120px 0;
    color: white;
    text-align: center;
}

.cobertura-hero h1 {
    font-weight: 800;
    color: #fff;
    font-size: 3rem;
}

.cobertura-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 900px;
    margin: -80px auto 50px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    color: #333;
}

.custom-select-lg {
    height: 60px;
    font-size: 1.1rem;
    border-radius: 10px;
    border: 2px solid #ddd;
    background-color: #f8f9fa;
}

.custom-select-lg:focus {
    border-color: #ff8000;
    box-shadow: none;
    background-color: #fff;
}

.btn-search {
    background-color: #ff8000;
    color: white;
    height: 60px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    width: 100%;
    border: none;
    transition: background-color 0.3s;
}

.btn-search:hover {
    background-color: #e67300;
    color: white;
}

.btn-search:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.step-container {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step-container.active {
    display: block;
    opacity: 1;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.fail-icon {
    font-size: 4rem;
    color: #ff8000;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .btn-search-col {
        margin-top: 15px;
    }
}


/* --- 3. Dynamic Coverage Form (cobertura-view) --- */
.cobertura-box {
    background: var(--surface-light);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.btn-search {
    background-color: var(--gigared-blue) !important;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition-smooth);
    height: 100%;
    min-height: 50px;
    width: 100%;
}

.btn-search:hover:not(:disabled) {
    background-color: var(--gigared-red) !important;
    transform: translateY(-2px);
}

.custom-select-lg {
    height: 50px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.custom-select-lg:focus {
    border-color: var(--gigared-red);
    box-shadow: 0 0 0 0.2rem rgba(227, 33, 40, 0.25);
    background-color: #fff;
}

/* Smooth transitions for coverage results */
.step-container {
    opacity: 0;
    transform: translateY(20px);
    display: none;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.step-container.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}


/* Custom Verify Button */
.btn-verify-custom {
    background: #00155a; /* Gigared Blue */
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 21, 90, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}
.btn-verify-custom:hover {
    background: #e32128; /* Gigared Red */
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(227, 33, 40, 0.25);
    color: #ffffff;
}
