/* --- CONFIGURACIÓN GLOBAL Y VARIABLES (Basado en tu CSS Principal) --- */
:root {
    --ngc-neon: #00d4ff; 
    --ngc-glass: rgba(0, 0, 0, 0.4); 
    --ngc-blur: blur(10px);
    --ngc-border-glass: 1px solid rgba(0, 212, 255, 0.3);
    --ngc-text-muted: rgba(255, 255, 255, 0.7);
    --success-green: #28a745;
    --warning-amber: #ffcc00;
    --error-red: #ff4b2b;
    --input-bg: rgba(0, 0, 0, 0.6);
}

* { 
    box-sizing: border-box; /* ESTA ES LA REGLA QUE EVITA QUE SE CORTE LA PANTALLA */
    margin: 0; 
    padding: 0; 
}

body {
    margin: 0;
    padding: 80px 15px 15px 15px;
    background: url('fondo.png') no-repeat center center fixed, #121212;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    display: flex;
    justify-content: center; 
    color: white;
}

/* Contenedor limitador (Idéntico a tu web) */
.main-wrapper {
    width: 100%;
    max-width: 500px; 
    padding: 0px;
    display: flex;
    flex-direction: column;
}

.separador-bloque {
    width: 100%;
    margin-bottom: 12px;
}

/* --- TARJETA CENTRAL (Vuelta invisible para que los elementos usen el 100% del ancho) --- */
.ngc-card {
    width: 100%;
    margin-bottom: 20px;
    /* Se eliminó background, bordes, sombras y padding */
}



.ngc-card-title {
    color: var(--ngc-neon);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* --- BANNER DE AVISO --- */
.info-banner {
    background: var(--ngc-glass); /* Aplica el cristal oscuro */
    backdrop-filter: var(--ngc-blur); /* Aplica el esmerilado */
    -webkit-backdrop-filter: var(--ngc-blur);
    border: var(--ngc-border-glass); /* Borde cian perimetral */
    border-left: 3px solid var(--warning-amber); /* Mantiene la franja amarilla */
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0,0,0,0.5); /* Sombra 3D */
}

.banner-title {
    color: var(--warning-amber);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.banner-text {
    font-size: 0.75rem;
    color: var(--ngc-text-muted);
    line-height: 1.5;
}
.banner-text strong { color: var(--ngc-neon); font-weight: 600; }

.status-msg {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ngc-neon);
    margin-bottom: 12px;
}

/* --- INPUTS Y BÚSQUEDA --- */
.input-section { display: flex; flex-direction: column; gap: 12px; margin-bottom: 15px; }

/* --- INPUTS Y BÚSQUEDA --- */
.input-group {
    display: flex;
    flex-direction: column;
    background: var(--ngc-glass); /* Aplica el cristal oscuro */
    backdrop-filter: var(--ngc-blur); /* Aplica el esmerilado */
    -webkit-backdrop-filter: var(--ngc-blur);
    padding: 12px;
    border-radius: 12px;
    border: var(--ngc-border-glass); /* Borde cian estilo NGC */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 2px 5px rgba(0,0,0,0.5);
    transition: all 0.3s;
}


.input-group:focus-within { 
    border-color: var(--ngc-neon); 
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 0 10px rgba(0, 212, 255, 0.2); 
}

label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--ngc-neon);
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.search-box-row { 
    display: flex; 
    gap: 8px; 
    width: 100%;
}

input[type="text"] {
    flex: 1;
    min-width: 0; /* Evita que el input rompa el contenedor en móviles pequeños */
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: white;
    padding: 10px;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
}

input[type="text"]:focus { border-color: var(--ngc-neon); }
input:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-search {
    background: var(--ngc-neon);
    color: black;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap; /* Evita que el texto del botón se rompa */
}
.btn-search:hover:not(:disabled) { background: #00b4d8; box-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
.btn-search:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- RESULTADOS --- */
.results-wrapper { display: flex; flex-direction: column; gap: 10px; }

/* --- RESULTADOS --- */
.result-card {
    background: var(--ngc-glass); /* Aplica el cristal oscuro */
    backdrop-filter: var(--ngc-blur); /* Aplica el esmerilado */
    -webkit-backdrop-filter: var(--ngc-blur);
    border: var(--ngc-border-glass);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra para despegarlo del fondo */
}

/* Hover más intenso estilo NGC */
.result-card:hover { 
    border-color: var(--ngc-neon); 
    background: rgba(0, 0, 0, 0.7); 
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}


.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.result-concept { font-size: 0.9rem; font-weight: 700; color: white; line-height: 1.4; }
.result-price { font-size: 1.1rem; font-weight: 800; color: var(--success-green); white-space: nowrap; }

.result-obs {
    font-size: 0.8rem;
    color: var(--ngc-text-muted);
    margin-top: 8px;
    line-height: 1.4;
    border-left: 2px solid rgba(255,255,255,0.2);
    padding-left: 10px;
}

/* DETALLES EXPANDIBLES */
.result-details {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 212, 255, 0.3);
    font-size: 0.85rem;
    animation: fadeIn 0.3s ease;
}

.result-card.active .result-details { display: block; }

.detail-row { margin-bottom: 8px; background: rgba(0,0,0,0.4); padding: 8px; border-radius: 6px; }
.detail-label { color: var(--ngc-neon); font-weight: bold; text-transform: uppercase; font-size: 0.7rem; }

/* SECCIÓN PRESUPUESTO WSP */
.wsp-section {
    margin-top: 18px;
    text-align: center;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    padding: 15px;
    border-radius: 10px;
}

.wsp-leyenda {
    font-size: 0.9rem;
    color: white;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--success-green);
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.btn-whatsapp:hover { background: #218838; box-shadow: 0 0 15px rgba(40, 167, 69, 0.6); }

.no-results { text-align: center; color: var(--ngc-text-muted); font-size: 0.9rem; padding: 20px; font-weight: bold;}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- BOTÓN VOLVER Y FOOTER REDES --- */
.ngc-btn-back {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: var(--ngc-glass); backdrop-filter: var(--ngc-blur);
    border: var(--ngc-border-glass); border-radius: 12px; color: var(--ngc-neon);
    text-decoration: none; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    align-self: flex-start; transition: 0.3s; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.ngc-btn-back:hover { background: rgba(0, 212, 255, 0.15); transform: translateX(-5px); color: white;}

.footer-gnc-compact {
    width: 100%; 
    display: flex; justify-content: space-around; align-items: center; padding: 12px 0;
    background: var(--ngc-glass); backdrop-filter: var(--ngc-blur); border: var(--ngc-border-glass);
    border-radius: 16px; margin-top: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* AQUÍ ESTÁ LA CORRECCIÓN: text-decoration: none; agregado */
.btn-social { 
    text-decoration: none; 
    color: rgba(255,255,255,0.8); 
    font-size: 26px; 
    transition: 0.2s; 
    width: 45px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.btn-share { color: rgba(255,255,255,0.5); font-size: 20px;}
.btn-social:hover { color: var(--ngc-neon); transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));}
.whatsapp-pulse { color: #28a745; animation: intense-beat 0.7s infinite alternate;}
.whatsapp-pulse:hover { color: #34d058; filter: drop-shadow(0 0 8px rgba(40, 167, 69, 0.8));}
@keyframes intense-beat {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 2px rgba(40, 167, 69, 0.5)); }
    100% { transform: scale(1.15); filter: drop-shadow(0 0 12px rgba(40, 167, 69, 0.9)); }
                }
    
