/* ==========================================================================
   General Layout
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4;
}

:root {
    --site-max-width: 1200px;      /* ancho máximo del contenido */
    --site-side-pad: clamp(16px, 5vw, 60px); /* padding lateral responsivo */
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.header-container {
    width: 100vw;
    position: fixed; /* Modified for fixed header */
    top: 0; /* Modified for fixed header */
    left: 50%;
    margin-left: -50vw;
    padding-left: var(--site-side-pad);
    padding-right: var(--site-side-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    box-sizing: border-box;
    z-index: 1000; /* Modified for fixed header */
}

.logo img {
    height: 40px;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   WhatsApp Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}

.whatsapp-float img {
    width: 35px;
    margin-top: 12px;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
footer {
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    font-size: 0.95rem;
    color: #6c757d;
    width: 100%;
    padding: 4rem 0 2rem;
}

/* Contenedor interno del footer */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem; /* Increased spacing between columns */
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding-left: var(--site-side-pad);
    padding-right: var(--site-side-pad);
}

/* Columnas del footer */
.footer-column {
    flex: 1 1 220px;
    min-width: 220px;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: #0E344B;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-column p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-column a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #9EC027;
}

/* SVG del logo en el Footer */
.footer-column a svg {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

/* Redes sociales */
.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-media a svg {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

.social-media a svg:hover {
    opacity: 0.8;
}

/* Colores de los íconos sociales */
.social-media a[aria-label="LinkedIn"] svg path,
.social-media a[aria-label="Facebook"] svg path {
    fill: #8dbe3f;
}

/* Copyright */
.copyright {
    text-align: center;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding-left: var(--site-side-pad);
    padding-right: var(--site-side-pad);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        padding: 1rem 0;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    nav.active {
        display: flex;
    }

    nav a {
        text-align: center;
        padding: 0.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-media {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }

    .footer-column {
        min-width: 100%;
    }

    .copyright {
        padding-top: 1rem;
    }
}

/* Custom column for logos in footer */
.footer-logo-column {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center; /* Vertically center the logo */
    justify-content: flex-end; /* Align to the right */
}

.footer-logo-column img {
    max-width: 180px; /* Increased size again */
    height: auto;
}
