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

body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* FORMULARIO */

.registro-card {
    width: 100%;
    max-width: 450px;
    margin: 80px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.registro-card h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #1f2937;
}

.subtitulo {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
}

/* CAMPOS */

.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #374151;
}

.campo input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.campo input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* BOTÓN */

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

/* MENSAJES */

.mensaje {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
}

.mensaje.exito {
    background: #dcfce7;
    color: #166534;
}

.mensaje.error {
    background: #fee2e2;
    color: #991b1b;
}

/* DASHBOARD */

.dashboard-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #2563eb;
    text-decoration: none;
}

.dashboard-link:hover {
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 500px) {

    .registro-card {
        margin: 30px auto;
        padding: 25px;
    }

    .registro-card h1 {
        font-size: 25px;
    }

}

/* =========================================
   SEPARADOR
   ========================================= */

.separador {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
    color: #9ca3af;
    font-size: 14px;
}

.separador::before,
.separador::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.separador span {
    white-space: nowrap;
}


/* =========================================
   BOTÓN ADMINISTRADOR
   ========================================= */

.admin-button {
    background: #374151;
}

.admin-button:hover {
    background: #1f2937;
}
/* =========================================
   DASHBOARD - DISEÑO PROFESIONAL
   ========================================= */

.dashboard-container {
    width: 92%;
    max-width: 1200px;
    margin: 50px auto;
}

/* ENCABEZADO */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 32px;
    font-weight: 700;
}

.dashboard-header p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}


/* BOTÓN CERRAR SESIÓN */

.logout-button {
    display: inline-block;
    padding: 11px 20px;
    background: #dc2626;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.logout-button:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}


/* TARJETAS */

.dashboard-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    margin-bottom: 25px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}


/* ESTADÍSTICA */

.estadistica {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.estadistica-numero {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    color: #2563eb;
}

.estadistica-texto {
    color: #6b7280;
    font-size: 15px;
}


/* TÍTULO DE TABLA */

.dashboard-card h2 {
    margin: 0 0 22px;
    color: #111827;
    font-size: 21px;
    font-weight: 700;
}


/* CONTENEDOR DE TABLA */

.tabla-contenedor {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}


/* TABLA */

table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

td {
    color: #4b5563;
    font-size: 14px;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover td {
    background: #f9fafb;
}


/* MENSAJE SIN REGISTROS */

.sin-registros {
    margin: 0;
    padding: 20px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
}


/* VOLVER AL REGISTRO */

.volver {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 0;
    color: #2563eb;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.volver:hover {
    color: #1d4ed8;
    text-decoration: underline;
}


/* =========================================
   DASHBOARD EN CELULARES
   ========================================= */

@media (max-width: 700px) {

    .dashboard-container {
        width: 94%;
        margin: 25px auto;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .dashboard-header h1 {
        font-size: 28px;
    }

    .logout-button {
        width: 100%;
        text-align: center;
    }

    .dashboard-card {
        padding: 20px;
        border-radius: 12px;
    }

    .estadistica-numero {
        font-size: 36px;
    }

    .dashboard-card h2 {
        font-size: 19px;
    }

    th,
    td {
        padding: 12px;
        font-size: 13px;
    }
}
