/* ARCHIVO STYLE.CSS OPTIMIZADO PARA MÓVIL Y LEGAL (VERIDIA PRO) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #06090f;
    color: #e0e6ed;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Fundamental para que en móvil fluya hacia abajo */
}

/* Contenedor Principal */
.dashboard {
    display: flex;
    flex-direction: row; /* En PC uno al lado del otro */
    width: 100%;
    min-height: 100vh;
}

/* Panel Lateral - Se adapta en móvil */
.sidebar {
    width: 260px;
    background-color: #0a0e17;
    border-right: 1px solid #1c2333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    flex-shrink: 0;
}

.logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid #1c2333;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

.sidebar h1 {
    font-size: 22px;
    letter-spacing: 5px;
    color: #ffffff;
    text-align: center;
}

.version {
    font-size: 10px;
    color: #4a5568;
    letter-spacing: 1px;
    margin-top: auto;
}

/* Contenido Principal */
.main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 100%; /* Evita que se estire más de la cuenta */
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1c2333;
    padding-bottom: 20px;
}

.status-badge {
    border: 1px solid #059669;
    color: #10b981;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap; /* Evita que el texto se parta en móvil */
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    margin-right: 5px;
}

/* Tarjetas y Certificado */
.card {
    background-color: #0f141e;
    border: 1px solid #1c2333;
    border-radius: 12px;
    padding: 25px;
    width: 100%;
    max-width: 700px;
}

.card h3 {
    color: #3b82f6;
    margin-bottom: 15px;
    font-weight: 500;
}

.card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 25px;
}

.highlight-text {
    color: #e2e8f0;
}

.certificate-box {
    border-left: 4px solid #2563eb;
    background-color: #151b28;
    padding: 20px;
    margin-bottom: 20px;
}

.certificate-box h3 {
    color: #f8fafc;
    letter-spacing: 2px;
}

.status-line {
    font-weight: bold;
    color: #cbd5e1 !important;
}

.status-green {
    color: #10b981;
}

.analysis-text {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
}

/* Botones */
.btn-primary, .btn-outline {
    width: 100%; /* En móvil es mejor que ocupen todo el ancho para el pulgar */
    max-width: 300px;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    text-align: center;
}

.btn-primary { background: #2563eb; color: white; border: none; }
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { background: #475569; cursor: not-allowed; }

.btn-outline { background: transparent; border: 1px solid #e0e6ed; color: white; }
.btn-outline:hover { background: #1e293b; }

/* Utilidades */
.hidden {
    display: none !important;
}

/* MODALES GLOBALES */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.modal-content {
    background: #0f141e;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #ef4444; /* Borde rojo por defecto (Pago) */
    width: 100%;
    max-width: 400px;
}

.modal-content h3 {
    color: #ef4444;
    margin-bottom: 15px;
}

/* MODALES LEGALES (Estilo profesional) */
.legal-box {
    border: 1px solid #2563eb; /* Borde azul de seguridad */
    max-width: 500px;
    text-align: left; /* Mejor para leer textos largos */
}

.legal-box h3 {
    color: #2563eb;
    text-align: center;
}

.legal-scroll {
    max-height: 50vh; /* Si el texto es largo, se puede hacer scroll */
    overflow-y: auto;
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    padding-right: 10px;
}

.legal-scroll::-webkit-scrollbar { width: 4px; }
.legal-scroll::-webkit-scrollbar-thumb { background: #1c2333; border-radius: 4px; }

/* FOOTER LEGAL */
.footer-legal {
    text-align: center;
    padding: 20px 0 0 0;
    font-size: 11px;
    color: #4a5568;
    border-top: 1px solid #1c2333;
    margin-top: auto; /* Empuja el footer siempre abajo del todo */
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #2563eb;
}

/* --- MEDIA QUERY: AJUSTE PARA MÓVILES --- */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column; /* El menú se pone ARRIBA y el contenido ABAJO */
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #1c2333;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .main-content {
        padding: 20px;
    }

    .top-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .card {
        padding: 20px;
    }

    .btn-primary, .btn-outline {
        max-width: 100%; /* Botones grandes y fáciles de pulsar en el móvil */
    }
}