/* =====================================================
   ====== RESET GENERAL DEL NAVEGADOR (NO TOCAR) ======
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fuente general del sitio */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
}

/* =====================================================
   ============ HEADER PRINCIPAL DE LA WEB ==============
   ===================================================== */
.main-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 40px;
    background: rgba(47, 115, 194, 1.0);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Logo */
.logo img {
    height: 60px;
    width: auto;
}

/* =====================================================
   ================= ÁREA DEL MENÚ ======================
   ===================================================== */
.navbar {
    flex: 1;
    margin-left: 100px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 25px;
    padding: 10px;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #00b7ff;
}

/* =====================================================
   ================= BOTONES DERECHA ====================
   ===================================================== */
.right-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.inc-btn {
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: bold;
    background: #1c5aa1;
    transition: 0.3s;
}

.inc-btn:hover {
    filter: brightness(1.15);
}

/* =====================================================
   =========== BOTÓN HAMBURGUESA (BASE) =================
   ===================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Animación hamburguesa */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   ============ RESPONSIVE SOLO MÓVIL ===================
   ===================================================== */
@media (max-width: 900px) {

    .main-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 15px 20px;
    }

    /* Bloque derecho (Inicia Sesión) BIEN a la derecha */
    .right-buttons {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        order: 1;
        margin-left: auto;
    }

    .inc-btn {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Hamburguesa al lado del botón */
    .menu-toggle {
        display: flex !important;
        position: static !important;
        transform: none !important;
        order: 1;
        margin-left: 20px;
    }

    /* Menú móvil */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(47,115,194,0.97);
        padding: 20px 0;
        z-index: 2000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        padding-left: 25px;
        text-align: left;
    }
}

/* =====================================================
   OCULTAR HEADER AL HACER SCROLL
   ===================================================== */
.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.35s ease;
}

.main-header {
    transition: transform 0.35s ease;
}

/* =====================================================
   ================= BUSCADOR HEADER ===================
   ===================================================== */
.header-search {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin-right: 50px;
}

.header-search input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 14px;
}

.header-search-results {
    position: absolute;
    top: 115%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    overflow: hidden;
    z-index: 5000;
}

.header-search-result {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.header-search-result:hover {
    background: #f1f1f1;
}

/* =====================================================
   =============== BUSCADOR EN MÓVIL ====================
   ===================================================== */
@media (max-width: 900px) {
    .header-search {
        flex: 1 1 100%;
        order: 3;
        margin: 10px auto 0 auto;
        max-width: 90%;
    }
}








/* ============================================================
   FOOTER (Pie de página moderno)
   ============================================================ */

/* Contenedor principal del footer.
   - Fondo azul corporativo.
   - Texto blanco.
   - Centrado.
   - Perfecto para información de contacto y redes. */
.footer {
    background: #0b54a0;
    color: #fff;
    padding: 50px 0;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

/* Contenedor interno del footer.
   - Limita el ancho para que no se estire demasiado.
   - Centrado automático. */
.footer-container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* ============================================================
   ICONOS SOCIALES
   ============================================================ */

/* Contenedor de los iconos de redes sociales.
   - Alineados horizontalmente.
   - Con espacio entre ellos. */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 25px;
}

/* Estilo del “botón” circular que contiene cada icono.
   - Fondo transparente suave.
   - Efecto de hover.
   - Si quiere cambiar el tamaño de los círculos, editar width/height. */
.footer-social .social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: 0.25s;
}

/* Tamaño de los iconos SVG dentro del círculo.
   - Si quiere iconos más grandes o pequeños, modificar width/height. */
.footer-social svg {
    width: 22px;
    height: 22px;
    color: white;
}

/* Efecto hover en los iconos.
   - Se aclara el fondo.
   - El círculo sube ligeramente para dar sensación de interacción. */
.footer-social .social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-4px);
}

/* ============================================================
   INFORMACIÓN DEL FOOTER (texto principal)
   ============================================================ */

/* Título dentro de la info del footer. */
.footer-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Texto general del footer.
   - “opacity” se usa para suavizar un poco el color. */
.footer-info p {
    margin: 4px 0;
    opacity: 0.9;
}

/* ============================================================
   COPYRIGHT
   ============================================================ */

/* Parte inferior del footer.
   - Texto pequeño con derechos o créditos. */
.footer-copy {
    margin-top: 25px;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ============================================================
   RESPONSIVE PARA CELULARES (600px o menos)
   ============================================================ */

@media (max-width: 600px) {
    /* Reduce la separación entre iconos en pantallas pequeñas. */
    .footer-social {
        gap: 14px;
    }

    /* Hace los círculos un poco más pequeños para móvil. */
    .footer-social .social-link {
        width: 34px;
        height: 34px;
    }
}