/* VARIABLES GLOBALES (Tus colores corporativos) */
:root {
    --primary-color: rgb(50, 132, 132); /* Color logo claro */
    --primary-dark: rgb(15, 73, 76);  /* Color logo oscuro */
    --primary-hover: rgb(22, 107, 111);
    --bg-brand: rgb(228, 252, 252);      /* Color fondo de logo */
    --white: rgb(255, 255, 255);
    --bg-light: rgb(242, 242, 242);     /* Gris muy clarito para alternar fondos */
    --bg-grey: rgb(230, 230, 230);
    --text-body: rgb(51, 51, 51);     /* Gris oscuro para leer cómodamente textos largos */
    --text-body-light: rgb(183, 216, 216);
}

html {
    /* El menú mide 80px y el banner unos 40px. Dejamos 130px para que respire bien */
    scroll-padding-top: 50px; 

    /* Efecto de desplazamiento suave al hacer clic en los enlaces del menú */
    scroll-behavior: smooth; 
}

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   TIPOGRAFÍA GLOBAL Y ESCALA DE TAMAÑOS
   ========================================= */
/* Escala de tamaños para Escritorio (Desktop) */
h1 { font-size: 3.00rem; }
h2 { font-size: 2.50rem; }
h3 { font-size: 1.40rem; }
h4 { font-size: 1.20rem; }
p { font-size: 1.10rem; }

/* Estilo base para los encabezados */
h1, h2, h3, h4 {
    font-family: 'Gemunu Libre', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 20px;
}

h4 {
    font-weight: 600;
}

/* Texto base para párrafos */
p {
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    color: var(--text-body);
    line-height: 1.6;
}

/* BOTONES */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.20rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Botón secundario para "Rechazar" */
.btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 10px 25px;
    border: 1px solid var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.10rem;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.100); /* Fondo blanco semitransparente */
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.white-section {
    background-color: var(--white);
    padding: 70px 0;
}

.light-section {
    background-color: var(--bg-light);
    padding: 70px 0;
}

.libra-section {
    background-color: rgba(228, 252, 252, 0.700) ;
    padding: 70px 0;
}

/* #####################
   CABECERA Y NAVEGACIÓN
   ##################### */
.header-section {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.100); /* Sombra para todo el bloque */
}

/* BARRA DE NAVEGACIÓN */
.logo img {
    max-height: 75px;
}

.navbar {
    background-color: var(--bg-brand);
    padding: 8px 10px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    line-height: 1.1;
}

.nav-links a {
    font-family: 'Gemunu Libre', sans-serif;
    text-decoration: none;
    color: var(--text-body);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.8px; /* Un poco de aire entre las letras */
    /* text-transform: uppercase; */
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Estado ACTIVO en el menú */
.nav-links a.active {
    color: var(--primary-color);
    position: relative; /* Necesario para posicionar la barrita debajo */
}

/* La barrita subrayada del elemento activo */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Separación respecto a la palabra */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.nav-links-contacto {
    background-color: var(--primary-color); /* Un verde profesional que transmite acción y confianza */
    color: var(--white) !important; /* Texto en blanco (el !important evita que coja el color negro de los otros enlaces) */
    padding: 6px 12px !important; /* Le damos forma rectangular de botón */
    border-radius: 4px; /* Bordes ligeramente redondeados */
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-links-contacto:hover {
    background-color: var(--primary-hover);
    color: var(--white) !important;
}

/* #####################
   FOOTER (PIE DE PÁGINA)
   ##################### */
.footer-section {
    background-color: var(--primary-dark);
    color: var(--bg-brand);
    padding-top: 60px;
}

.footer-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-content {
    flex: 1;
}

.footer-content h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-content p {
    color: var(--text-body-light);
}

.footer-content ul li {
    list-style: none;
    margin-bottom: 8px;
}

.footer-content a {
    color: var(--text-body-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: var(--white);
}

.footer-content-logo {
    max-width: 200px;
    margin-bottom: 10px;
    /* Si tu logo es oscuro, aplicamos un filtro para que se vea blanco sobre el fondo oscuro */
    /* filter: brightness(0) invert(1);  */
}

.footer-content-item {
    color: var(--text-body-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

/* BANNER APLICACION REMOTO */
.banner-app-remoto {
    background-color: rgba(255, 255, 255, 0.100); /* Aclaramos un poco más la base */
    padding: 10px 0;
    text-align: center;
}

.banner-app-remoto-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.banner-app-remoto-link:hover {
    color: var(--bg-brand);
}

/* BANNER DERECHOS RESERVADOS */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.150); /* Oscurecemos un poco más la base */
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--bg-brand);
    font-size: 0.8rem;
    margin: 0;
}
