/* ============================================================
   RED CONECTA SAN JUAN - ESTILOS GLOBALES
   Paleta: azules, blancos y grises. Tipografía: Inter.
   Mobile first: estilos base para móvil y luego media queries
   para tablet y desktop.
   ============================================================ */

/* ============================================================
   0) VARIABLES Y RESET
   ============================================================ */
:root {
    --azul-900: #0a1f44;
    --azul-800: #12356e;
    --azul-700: #14509c;
    --azul-600: #0b6bd8;
    --azul-500: #1d8cf0;
    --azul-400: #38a9ff;
    --azul-100: #e3f1ff;
    --verde: #10b981;
    --rojo: #e11d48;
    --gris-900: #1f2937;
    --gris-600: #5b6b7b;
    --gris-400: #9aa8b8;
    --gris-200: #e6ebf2;
    --gris-100: #f4f7fb;
    --blanco: #ffffff;
    --gradiente-primario: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --gradiente-hero: linear-gradient(160deg, #0a1f44 0%, #12356e 55%, #0b6bd8 100%);
    --sombra: 0 10px 30px rgba(10, 31, 68, 0.08);
    --sombra-hover: 0 16px 40px rgba(10, 31, 68, 0.14);
    --radio: 16px;
    --radio-chico: 10px;
    --max-w: 1120px;
    --max-w-estrecho: 720px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--gris-900);
    background: var(--blanco);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--azul-600);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

.container-estrecho {
    max-width: var(--max-w-estrecho);
}

/* ============================================================
   1) BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primario {
    background: var(--gradiente-primario);
    color: var(--blanco);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-primario:hover {
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.btn-secundario {
    background: var(--blanco);
    color: var(--azul-700);
    border-color: var(--azul-400);
}

.btn-secundario:hover {
    background: var(--azul-100);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--blanco);
    color: var(--rojo);
    border-color: #fecdd3;
}

.btn-danger:hover {
    background: #fff1f2;
}

.btn-enlace {
    background: none;
    border: none;
    color: var(--azul-600);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
}

.btn-enlace:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

/* Botón con spinner durante el envío */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading .spinner {
    display: inline-block;
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: girar 0.7s linear infinite;
}

.spinner-oscuro {
    border: 2px solid rgba(11, 107, 216, 0.25);
    border-top-color: var(--azul-600);
}

@keyframes girar {
    to { transform: rotate(360deg); }
}

/* ============================================================
   2) ENCABEZADO
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gris-200);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-texto {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--azul-900);
    white-space: nowrap;
}

.logo-texto strong {
    color: var(--azul-600);
}

.header-nav {
    display: none;
    align-items: center;
    gap: 22px;
}

.header-nav > a:not(.btn) {
    color: var(--gris-900);
    font-weight: 500;
    font-size: 0.95rem;
}

.header-nav > a:not(.btn):hover {
    color: var(--azul-600);
}

.btn-header {
    padding: 9px 18px;
    font-size: 0.85rem;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid var(--gris-200);
    border-radius: 10px;
    font-size: 1.3rem;
    color: var(--azul-900);
    cursor: pointer;
}

@media (min-width: 900px) {
    .header-nav {
        display: flex;
    }
    .nav-toggle {
        display: none;
    }
}

/* Menú móvil desplegado (se activa por JS) */
.header-nav.abierto {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco);
    border-bottom: 1px solid var(--gris-200);
    box-shadow: var(--sombra);
    padding: 16px 20px;
}

/* ============================================================
   3) HERO
   ============================================================ */
.hero {
    background: var(--gradiente-hero);
    color: var(--blanco);
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #dbeafe;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 18px;
}

.hero-titulo {
    font-size: clamp(2.4rem, 8vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.hero-eslogan {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #bfdbfe;
    margin-bottom: 16px;
}

.hero-texto {
    max-width: 560px;
    color: #dbeafe;
    margin-bottom: 28px;
    font-size: 1rem;
}

.hero-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero .btn-secundario {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blanco);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-secundario:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-grafico {
    max-width: 340px;
    width: 100%;
}

.hero-grafico svg {
    width: 100%;
    height: auto;
}

@media (min-width: 900px) {
    .hero {
        padding: 96px 0;
    }
    .hero-inner {
        flex-direction: row;
        justify-content: space-between;
        gap: 40px;
    }
    .hero-grafico {
        max-width: 440px;
    }
}

/* ============================================================
   4) SECCIONES GENÉRICAS
   ============================================================ */
.seccion {
    padding: 64px 0;
}

.seccion-gris {
    background: var(--gris-100);
}

.seccion-formulario {
    background: linear-gradient(180deg, var(--blanco) 0%, var(--gris-100) 100%);
    padding-bottom: 80px;
}

.seccion-titulo {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--azul-900);
    text-align: center;
    margin-bottom: 14px;
}

.resaltado {
    color: var(--azul-600);
}

.seccion-intro {
    text-align: center;
    color: var(--gris-600);
    max-width: 680px;
    margin: 0 auto 44px;
    font-size: 1.02rem;
}

/* ============================================================
   5) BLOQUES "¿QUÉ ES?"
   ============================================================ */
.grid-bloques {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.bloque {
    background: var(--blanco);
    border: 1px solid var(--gris-200);
    border-radius: var(--radio);
    padding: 32px 28px;
    box-shadow: var(--sombra);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bloque:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.bloque-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: var(--azul-100);
    font-size: 2rem;
    margin-bottom: 18px;
}

.bloque h3 {
    color: var(--azul-900);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.bloque p {
    color: var(--gris-600);
    font-size: 0.95rem;
}

@media (min-width: 700px) {
    .grid-bloques {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   6) TARJETAS DE PERFIL "¿QUIÉNES PUEDEN REGISTRARSE?"
   ============================================================ */
.grid-tarjetas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.tarjeta-perfil {
    background: var(--blanco);
    border: 1px solid var(--gris-200);
    border-radius: var(--radio);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--sombra);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta-perfil:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.tarjeta-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--azul-100), #f0f9ff);
    font-size: 1.7rem;
    margin-bottom: 14px;
}

.tarjeta-perfil h3 {
    color: var(--azul-900);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.tarjeta-perfil p {
    color: var(--gris-600);
    font-size: 0.9rem;
}

@media (min-width: 560px) {
    .grid-tarjetas {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .grid-tarjetas {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   7) LISTA DE OPORTUNIDADES
   ============================================================ */
.lista-oportunidades {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.oportunidad {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--blanco);
    border: 1px solid var(--gris-200);
    border-radius: var(--radio-chico);
    padding: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oportunidad:hover {
    border-color: var(--azul-400);
    box-shadow: var(--sombra);
}

.oportunidad-icono {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--azul-100);
    font-size: 1.3rem;
}

.oportunidad h3 {
    color: var(--azul-900);
    font-size: 1.02rem;
    margin-bottom: 4px;
}

.oportunidad p {
    color: var(--gris-600);
    font-size: 0.9rem;
}

@media (min-width: 700px) {
    .lista-oportunidades {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   8) BANNER CTA
   ============================================================ */
.cta-banner {
    margin-top: 40px;
    text-align: center;
    background: var(--gradiente-hero);
    color: var(--blanco);
    border-radius: var(--radio);
    padding: 40px 24px;
    box-shadow: var(--sombra-hover);
}

.cta-banner p {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ============================================================
   9) FORMULARIO MULTI-PASO
   ============================================================ */
.formulario {
    background: var(--blanco);
    border: 1px solid var(--gris-200);
    border-radius: 22px;
    box-shadow: var(--sombra);
    padding: 28px 22px;
}

/* --- Indicador de progreso --- */
.progreso {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin: 0 0 32px;
    padding: 0;
}

.progreso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.progreso-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    right: calc(50% + 14px);
    left: calc(-50% + 14px);
    height: 3px;
    background: var(--gris-200);
    border-radius: 2px;
    z-index: 0;
}

.progreso-numero {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gris-200);
    color: var(--gris-600);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.progreso-etiqueta {
    font-size: 0.7rem;
    color: var(--gris-600);
    text-align: center;
    white-space: nowrap;
}

.progreso-item.activo .progreso-numero {
    background: var(--gradiente-primario);
    color: var(--blanco);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.progreso-item.activo .progreso-etiqueta {
    color: var(--azul-700);
    font-weight: 600;
}

.progreso-item.completado .progreso-numero {
    background: var(--verde);
    color: var(--blanco);
}

.progreso-item.completado:not(:last-child)::after {
    background: var(--verde);
}

@media (min-width: 700px) {
    .progreso-etiqueta {
        font-size: 0.8rem;
    }
    .progreso-numero {
        width: 36px;
        height: 36px;
    }
}

/* --- Pasos --- */
.paso-titulo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--azul-900);
    margin-bottom: 6px;
}

.paso-subtitulo {
    color: var(--gris-600);
    margin-bottom: 24px;
    font-size: 0.98rem;
}

/* Transición de pasos */
.paso {
    animation: aparecer 0.35s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Selección de perfil (paso 1) --- */
.grid-perfiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.opcion-perfil {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--blanco);
    border: 2px solid var(--gris-200);
    border-radius: var(--radio-chico);
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.opcion-perfil:hover {
    border-color: var(--azul-400);
    transform: translateY(-2px);
}

.opcion-perfil.seleccionada {
    border-color: var(--azul-600);
    background: var(--azul-100);
    box-shadow: 0 0 0 3px rgba(29, 140, 240, 0.18);
}

.opcion-icono {
    font-size: 1.9rem;
}

.opcion-nombre {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--azul-900);
}

@media (min-width: 700px) {
    .grid-perfiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Campos de formulario --- */
.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;
    font-weight: 600;
    color: var(--azul-900);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.campo-etiqueta {
    display: block;
    font-weight: 600;
    color: var(--azul-900);
    margin-bottom: 10px;
    font-size: 0.98rem;
}

.opcional {
    font-weight: 400;
    color: var(--gris-400);
    font-size: 0.85rem;
}

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="tel"],
.campo select,
.campo textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gris-200);
    border-radius: var(--radio-chico);
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--gris-900);
    background: var(--blanco);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--azul-500);
    box-shadow: 0 0 0 3px rgba(29, 140, 240, 0.15);
}

.campo select {
    appearance: auto;
}

.campo.invalido input,
.campo.invalido select {
    border-color: var(--rojo);
}

.campo-error {
    display: none;
    color: var(--rojo);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 6px;
}

.campo.invalido .campo-error {
    display: block;
}

.campo-error-perfil {
    color: var(--rojo);
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 14px;
}

/* --- Checkboxes --- */
.lista-check {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

/* Opciones tipo radio (experiencia, etc.) */
.grupo-opciones {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.radio-opcion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--gris-200);
    border-radius: var(--radio-chico);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.radio-opcion:hover {
    background: var(--gris-100);
}

.radio-opcion input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 0;
    accent-color: var(--azul-600);
    flex-shrink: 0;
    cursor: pointer;
}

.radio-opcion span {
    font-size: 0.95rem;
    color: var(--gris-900);
}

@media (min-width: 700px) {
    .grupo-opciones {
        grid-template-columns: repeat(2, 1fr);
    }
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--gris-200);
    border-radius: var(--radio-chico);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.check:hover {
    background: var(--gris-100);
}

.check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--azul-600);
    flex-shrink: 0;
    cursor: pointer;
}

.check span {
    font-size: 0.95rem;
    color: var(--gris-900);
}

.check-autorizacion span {
    font-size: 0.9rem;
    color: var(--gris-600);
}

@media (min-width: 700px) {
    .lista-check {
        grid-template-columns: repeat(2, 1fr);
    }
    .check-autorizacion {
        grid-column: span 2;
    }
}

/* --- Zona de archivo (paso 4) --- */
.zona-archivo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 36px 20px;
    border: 2px dashed var(--gris-400);
    border-radius: var(--radio);
    background: var(--gris-100);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.zona-archivo:hover {
    border-color: var(--azul-500);
    background: var(--azul-100);
}

.zona-archivo.dragging {
    border-color: var(--azul-600);
    background: var(--azul-100);
}

.zona-icono {
    font-size: 2.2rem;
}

.zona-titulo {
    font-weight: 700;
    color: var(--azul-700);
}

.zona-hint {
    font-size: 0.85rem;
    color: var(--gris-600);
}

.archivo-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--azul-100);
    border: 1px solid var(--azul-400);
    border-radius: var(--radio-chico);
    font-weight: 600;
    color: var(--azul-800);
    margin-top: 12px;
}

.nota {
    font-size: 0.9rem;
    color: var(--gris-600);
    background: var(--gris-100);
    border-left: 4px solid var(--azul-500);
    padding: 12px 16px;
    border-radius: 0 var(--radio-chico) var(--radio-chico) 0;
}

/* --- Éxito (paso 6) --- */
.exito {
    text-align: center;
    padding: 24px 8px;
}

.exito-icono {
    font-size: 3.4rem;
    display: inline-block;
    animation: latido 1.4s ease infinite;
}

@keyframes latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.exito-titulo {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--azul-900);
    margin: 16px 0 14px;
}

.exito-texto {
    color: var(--gris-600);
    max-width: 520px;
    margin: 0 auto 12px;
}

.exito-redes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

/* --- Navegación del formulario --- */
.formulario-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gris-200);
}

.formulario-mensaje {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radio-chico);
    font-weight: 500;
    font-size: 0.95rem;
}

.formulario-mensaje.error {
    background: #fff1f2;
    color: var(--rojo);
    border: 1px solid #fecdd3;
}

.formulario-mensaje.exito {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* ============================================================
   10) PIE DE PÁGINA
   ============================================================ */
.footer {
    background: var(--azul-900);
    color: #cbd5e1;
    padding: 48px 0 32px;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blanco);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-logo strong {
    color: #7dd3fc;
}

.footer-logo .logo-img {
    filter: brightness(0) invert(1);
}

.footer-eslogan {
    color: #94a3b8;
    margin-bottom: 20px;
}

.footer-redes {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.footer-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.2rem;
    color: var(--blanco);
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-red:hover {
    background: var(--azul-500);
    transform: translateY(-2px);
}

.footer-credito {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-credito a {
    color: #94a3b8;
}

.footer-credito a:hover {
    color: var(--blanco);
}

/* ============================================================
   11) ADMIN - PÁNEL DE REGISTROS
   ============================================================ */
.auth-panel {
    max-width: 440px;
    margin: 40px auto;
    background: var(--blanco);
    border: 1px solid var(--gris-200);
    border-radius: 22px;
    box-shadow: var(--sombra);
    padding: 32px 28px;
}

.auth-panel h2 {
    color: var(--azul-900);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-align: center;
}

.auth-subtitulo {
    color: var(--gris-600);
    text-align: center;
    margin-bottom: 22px;
    font-size: 0.95rem;
}

.mensaje {
    display: none;
    padding: 12px 16px;
    border-radius: var(--radio-chico);
    font-weight: 500;
    font-size: 0.93rem;
    margin-bottom: 16px;
}

.mensaje.visible {
    display: block;
}

.mensaje-error {
    background: #fff1f2;
    color: var(--rojo);
    border: 1px solid #fecdd3;
}

.mensaje-exito {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.mensaje-info {
    background: var(--azul-100);
    color: var(--azul-800);
    border: 1px solid var(--azul-400);
}

.admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-titulo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--azul-900);
}

.table-wrap {
    overflow-x: auto;
    background: var(--blanco);
    border: 1px solid var(--gris-200);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
}

.tabla-admin {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    font-size: 0.9rem;
}

.tabla-admin th,
.tabla-admin td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--gris-200);
    vertical-align: top;
}

.tabla-admin th {
    background: var(--gris-100);
    color: var(--azul-800);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.tabla-admin tr:last-child td {
    border-bottom: none;
}

.tabla-admin tr:hover td {
    background: var(--gris-100);
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-perfil {
    background: var(--azul-100);
    color: var(--azul-800);
}

.badge-nuevo {
    background: #ecfdf5;
    color: #047857;
}

.celda-descripcion {
    max-width: 260px;
    font-size: 0.85rem;
    color: var(--gris-600);
}

.acciones-cell {
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--gris-600);
}

.empty-state .empty-icono {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 12px;
}

.header-usuario-nombre {
    font-weight: 600;
    color: var(--azul-900);
    margin-right: 12px;
}

#admin-panel {
    padding: 40px 0 64px;
}

/* ============================================================
   12) UTILIDADES
   ============================================================ */
[hidden] {
    display: none !important;
}

/* Ajuste de scroll para anclas bajo header sticky */
#registro {
    scroll-margin-top: 80px;
}
