/* ============================================================
   GLOBAL.CSS — Estilos compartidos entre todas las páginas
   Basado en la estética de inicio.html
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --verde: #1a6b3a;
    --verde-claro: #27ae60;
    --verde-oscuro: #0d3d21;
    --crema: #f5f0e8;
    --gris: #8a8a8a;
    --texto: #1a1a1a;
    --blanco: #ffffff;
    --borde: #e0e0e0;
    --sombra: 0 2px 12px rgba(0,0,0,0.06);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--crema);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--texto);
}

/* ============================================================
   HEADER UNIFICADO
   ============================================================ */

.gh-header {
    background-color: var(--verde-oscuro);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.gh-header-logo {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gh-header-titulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--crema);
    letter-spacing: 2px;
    line-height: 1;
    text-decoration: none;
}

.gh-header-subtitulo {
    font-size: 10px;
    color: rgba(245,240,232,0.45);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

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

.gh-btn-volver {
    background: rgba(245,240,232,0.1);
    border: 1px solid rgba(245,240,232,0.2);
    color: rgba(245,240,232,0.75);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    transition: all 0.2s;
}

.gh-btn-volver:hover {
    background: rgba(245,240,232,0.2);
    color: var(--crema);
}

.gh-btn-logout {
    background: rgba(245,240,232,0.08);
    border: 1px solid rgba(245,240,232,0.15);
    color: rgba(245,240,232,0.5);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}

.gh-btn-logout:hover {
    background: rgba(245,240,232,0.15);
    color: var(--crema);
}

/* ============================================================
   BOTONES GLOBALES
   ============================================================ */

.gh-btn {
    font-family: 'DM Sans', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    transition: all 0.2s;
}

.gh-btn-primary {
    background: var(--verde-claro);
    color: white;
}
.gh-btn-primary:hover { background: #219a52; }

.gh-btn-secondary {
    background: white;
    color: var(--texto);
    border: 1px solid var(--borde);
}
.gh-btn-secondary:hover { background: #f0f0f0; }

.gh-btn-danger {
    background: #e74c3c;
    color: white;
}
.gh-btn-danger:hover { background: #c0392b; }

/* ============================================================
   MODALES GLOBALES
   ============================================================ */

.gh-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.gh-modal.abierto,
.gh-modal:not(.modal-oculto) {
    display: flex;
}

.gh-modal.modal-oculto {
    display: none !important;
}

.gh-modal-contenido {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.gh-modal-contenido h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--verde-oscuro);
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.gh-modal-contenido label {
    display: block;
    margin-top: 14px;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gh-modal-contenido input[type="text"],
.gh-modal-contenido input[type="date"],
.gh-modal-contenido input[type="email"],
.gh-modal-contenido input[type="password"],
.gh-modal-contenido input[type="number"],
.gh-modal-contenido select,
.gh-modal-contenido textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--borde);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--texto);
    background: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.gh-modal-contenido input:focus,
.gh-modal-contenido select:focus,
.gh-modal-contenido textarea:focus {
    outline: none;
    border-color: var(--verde-claro);
}

.gh-modal-botones {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
}
