/* ============================================
   VARIABLES GLOBALES
============================================ */
:root {
    --color-primario: #007bff;
    --color-primario-hover: #0056b3;
    --color-texto: #333;
    --color-borde: #ddd;

    --radius: 10px;
    --shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ============================================
   RESET
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f5f5;
    font-family: 'Segoe UI', sans-serif;
}

/* ============================================
   GRID GLOBAL DEL DASHBOARD
============================================ */
.layout-Dash {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        "header-Dash"
        "nav-Dash"
        "content-Dash"
        "footer-Dash";
    min-height: 100vh;
}

/* ============================================
   ÁREAS DEL GRID
============================================ */
.header-Dash {
    grid-area: header-Dash;
}

.nav-Dash {
    grid-area: nav-Dash;
}

.content-Dash {
    grid-area: content-Dash;
}

.footer-Dash {
    grid-area: footer-Dash;
}

/* ============================================
   HEADER GLOBAL
============================================ */

.header-Dash {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* logo - saludo - espacio */
    align-items: center;
    background: var(--color-primario);
    padding: 20px 0;
    box-shadow: var(--shadow);
}

/* Logo alineado hacia el centro pero un poco más a la izquierda */
.logo-Dash {
    grid-column: 1;
    display: flex;
    justify-content: flex-end; /* lo acerca al centro */
    align-items: center;
}

.logo-Dash img {
    width: 120px;
    height: auto;
    border-radius: 12px;
}

/* Saludo perfectamente centrado */
.saludo-Dash {
    grid-column: 2;
    background: var(--color-primario);
    padding: 10px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.saludo-Dash h2,
.saludo-Dash h3 {
    color: white;
    margin: 0;
}


/* ============================================
   NAV GLOBAL
============================================ */

.nav-Dash {
    background-color: #f8f8f8;
    padding: 8px 20px;
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
}

.nav-Dash ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-Dash a {
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 6px; /* espacio para la línea */
}

/* Línea invisible por defecto */
.nav-Dash a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background: var(--color-primario);
    transition: width 0.25s ease-in-out;
}

/* Hover: aparece la línea */
.nav-Dash a:hover::after {
    width: 100%;
}

/* Click (active): línea permanente */
.nav-Dash a.active::after {
    width: 100%;
}


/* ============================================
   CONTENIDO GLOBAL
============================================ */
.content-Dash {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================
   FOOTER GLOBAL
============================================ */
.footer-Dash {
    width: 100%;
    background: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--color-texto);
    box-shadow: var(--shadow);
}

.footer-Dash a {
    color: var(--color-primario);
    font-weight: 600;
}

/* ============================================
   TARJETA BASE GLOBAL
============================================ */
.card-base {
    width: 90%;
    max-width: 900px;
    background: #fff;
    padding: 28px 34px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 180px;
    gap: 22px;
}

/* ============================================
   BOTONES GLOBALES
============================================ */
.btn {
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-ver {
    background: var(--color-primario);
    color: #fff;
}

.btn-ver:hover {
    background: var(--color-primario-hover);
}

.btn-eliminar {
    background: #dc3545;
    color: #fff;
}

.btn-eliminar:hover {
    background: #b52a36;
}
