/* ==========================================================================
   MÓDULO BLINDADO DE ACCESO UNIVERSAL (ANTI-COLISIÓN)
   ========================================================================== */

/* Contenedor Principal: Limpia márgenes externos y define la tipografía base */
#article-section {
    width: 100%;
    margin: 0;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
}

/* Forzar que todos los elementos internos hereden el box-sizing correcto */
#article-section *, 
#article-section *::before, 
#article-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Requerimiento C: Contenedor de una sola columna centralizada */
#article-section .wrapper {
    max-width: 800px;
    margin: 0 auto; /* Centra el bloque entero en la pantalla */
    display: flex;
    flex-direction: column; /* Alineación vertical en una sola columna */
    align-items: center;    /* Centra horizontalmente los hijos directos */
    gap: 30px;              /* Espaciado controlado entre bloques */
}

/* Requerimiento D: Textos de la sección central perfectamente alineados al centro */
#article-section .central {
    text-align: center;
    width: 100%;
    color: #334155;
    line-height: 1.6;
}

#article-section .central h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 15px;
}

#article-section .central h3 {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px auto;
    padding: 6px 12px;
    background-color: #f1f5f9;
    border-radius: 6px;
    max-width: 400px; /* Acota los h3 para que luzcan como ítems de lista centrados */
}

/* Requerimiento E: Componentes del Formulario (.column) en el centro de la página */
#article-section .column {
    width: 100%;
    max-width: 450px; /* Ancho elegante para el formulario en escritorio */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los textos, enlaces e inputs internos */
    text-align: center;
}

#article-section .texto_translator {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 20px;
}

/* Botón estilizado de redirección SaaS */
#article-section .link-saas {
    display: inline-block;
    padding: 10px 24px;
    background-color: #d35400; /* Color corporativo EnergyNer */
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

#article-section .link-saas:hover {
    background-color: #b94400;
}

/* Caja contenedora del verificador de disponibilidad */
#article-section #content {
    width: 100%;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-top: 25px;
}

#article-section .container-access h1 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 15px;
}

/* Controles de formulario adaptables y centrados */
#article-section #user {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 12px;
    outline: none;
    text-align: center; /* Centra el placeholder y el texto que escribe el usuario */
}

#article-section #user:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
}

#article-section #btnVerify {
    width: 100%;
    padding: 10px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#article-section #btnVerify:hover {
    background-color: #219653;
}

#article-section #result {
    margin-top: 12px;
    font-weight: 500;
}

/* Bloque exterior inferior de estatus */
#article-section .box {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

#article-section .centered-text {
    text-align: center;
    font-size: 1rem;
}

/* ==========================================================================
   A) CARÁCTER RESPONSIVE (Media Queries)
   ========================================================================== */
@media (max-width: 600px) {
    #article-section {
        padding: 20px 12px;
    }
    #article-section .central h2 {
        font-size: 1.6rem;
    }
    #article-section .central h3 {
        max-width: 100%; /* En móviles aprovecha todo el ancho del dispositivo */
    }
}