﻿/* ---- Fondo general de la página RNA ---- */
body.rna-layout {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #1e3a8a 0, #020617 45%, #020617 100%);
    color: #0f172a;
}

/* Capa de logo/fondo tenue, siempre detrás del contenido */
.rna-background {
    position: fixed;
    inset: 0;
    background: url("/images/sis-bg.svg") center / cover no-repeat;
    opacity: 0.12; /* bajado un poco para no interferir con el contenido */
    z-index: 0;
}

/* Contenedor principal del módulo */
.rna-page {
    position: relative;
    z-index: 1; /* por encima del fondo */
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 24px;
}

/* Tarjeta grande blanca donde va todo el contenido */
.rna-card {
    width: 100%;
    max-width: 1100px;
    background: #ffffff; /* fondo sólido para evitar transparencia */
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    padding: 36px 40px 40px;
    position: relative;
    z-index: 10; /* forzar encima de cualquier fondo */
}

/* Encabezado */
.rna-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.rna-header p {
    margin: 0;
    color: #6b7280;
}

/* Bloque de estado / mensajes */
#rna-estado {
    display: none; /* se muestra desde JS */
    margin-top: 24px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.alert {
    border: 1px solid transparent;
}

.alert-ok {
    background: #ecfdf5;
    border-color: #22c55e;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Contenido dinámico que rellena inicio.js */
#rna-contenido {
    margin-top: 20px;
}

/* Tarjetita de estado */
.panel-card {
    background: #f9fafb;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
}

    .panel-card h2 {
        margin-top: 0;
        font-size: 1.2rem;
    }

/* Botón principal */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

    .btn-primary:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

/* Responsivo */
@media (max-width: 768px) {
    .rna-card {
        padding: 24px 18px 28px;
    }

    .rna-header h1 {
        font-size: 1.5rem;
    }
}
