:root {
    /* ==========================
       PALETA DE COLORES GLOBAL
       (fusionando las variables
       de tu registrar_solicitante_diseño.css
       y las de header/footer)
    ========================== */

    /* ---------- HEADER ---------- */
    --header-bg: #FFFFFF;
    --header-border: #CCCCCC;
    --header-text: #333333;
    --header-title-text: #333333;
    --header-secondary-text: #007BFF; /* Para primer <p> en info-right */

    /* ---------- FOOTER ---------- */
    --footer-bg: #F8F9FA;
    --footer-text: #333333;
    --footer-border: #CCCCCC;

    /* ---------- LAYOUT ---------- */
    --sec-layout-bg: #F2F2F2e6; /* Fondo general del body */
    --sec-text: #333333;

    /* ---------- BOTONES / EN GENERAL ---------- */
    --sec-btn-shadow-hover: rgba(0, 0, 0, 0.2);
    --sec-focus-outline: #444444;
    --sec-shadow-input-focus: rgba(58, 58, 106, 0.5);

    /* ---------- PALETA "REGISTRAR" (banner, etc.) ---------- */
    --reg-banner-overlay: rgba(0, 0, 0, 0.7);
    --reg-light-bg: #F2F2F2e6;
    --reg-title-color: #333333;
    --reg-subtitle-color: gray;
    --reg-primary-text: #FFFFFF;
    --reg-error-text: #8B0000;

    --reg-border-color: #CCCCCC; 
    --reg-focus-outline: #444444;
    --reg-shadow-input-focus: rgba(58,58,106,0.5);

    --reg-btn-primary: #0678BF;
    --reg-btn-primary-hover: #005f99;
    --reg-btn-secondary: #353F5A;
    --reg-btn-secondary-hover: #2c2c3a;

    /* ---------- MODAL ---------- */
    --reg-modal-header-bg: #2c3e5e;
    --reg-modal-body-bg: #f5f5f5;
    --reg-modal-section-bg: #C1C6D9;
    --reg-modal-title: #1f3c87;
    --reg-modal-btn-bg: #007bff;
    --reg-modal-btn-hover: #0056b3;
}

/* ----------------------------------------------------------------
   ESTILOS GLOBALES DEL LAYOUT SECUNDARIO
----------------------------------------------------------------- */

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--sec-layout-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========== HEADER (fijo arriba) =========== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Para que quede por encima del contenido */
    color: var(--header-text);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 2px solid var(--header-border);
    background-color: var(--header-bg);
    box-sizing: border-box;
}

.header-container img {
    max-height: 60px;
}

.logo-left {
    width: 230px;
    margin-right: 20px;
}

.logo-left img {
    width: 150px;
    height: auto;
}

.title-center {
    flex: 1;
    text-align: center;
}

.title-center h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--header-title-text);
    margin: 0;
}

.info-right {
    width: 253px;
    text-align: center;
    margin-left: 20px;
}

.info-right p {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.info-right p:first-child {
    color: var(--header-secondary-text);
}

.info-right p:last-child {
    color: var(--header-text);
}

.info-right hr {
    border: 0;
    border-top: 1px solid var(--header-border);
    margin: 4px 0;
}

/* =========== MAIN CONTENT =========== */
.main-content {
    flex: 1;
    box-sizing: border-box;
    position: relative;

    /* Dejamos espacio top = altura del header + algo
       y bottom = altura del footer + algo */
    margin-top: 60px;    /* Ajusta según la altura real del header */
    margin-bottom: 80px; /* Ajusta según la altura real del footer */
    padding: 20px;
}

/* =========== FOOTER (fijo abajo) =========== */
footer {
    bottom: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    border-top: 2px solid var(--footer-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-family: 'Arial', sans-serif;
    box-sizing: border-box;
}

.footer-logo {
    width: 150px;
    margin-right: 20px;
}

.footer-logo img {
    width: 50px;
    height: auto;
}

.footer-text {
    flex: 1;
    text-align: center;
}

.footer-text p {
    margin: 0;
    font-size: 12px;
}

.footer-info-right {
    width: 150px;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .logo-left {
        width: 100%;
        margin: 0 0 10px 0;
        display: flex;
        justify-content: center;
    }

    .logo-left img {
        width: 120px;
    }

    .title-center {
        margin-bottom: 10px;
    }

    .title-center h1 {
        font-size: 20px;
    }

    .info-right {
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    .info-right p {
        font-size: 14px;
    }

    .info-right hr {
        margin: 10px auto;
        width: 80%;
    }

    .main-content {
        margin-top: 140px; /* Ajusta si el header crece en móvil */
        margin-bottom: 100px; /* Ajusta si el footer crece en móvil */
        padding: 15px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo,
    .footer-info-right {
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-logo img {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .logo-left img {
        width: 100px;
    }

    .main-content {
        margin-top: 160px;
        margin-bottom: 120px;
        padding: 10px;
    }

    .footer-logo img {
        width: 60px;
    }
}
