/* =========================
   RESET
========================= */

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

/* =========================
   BODY
========================= */

body {
    font-family: 'Roboto', sans-serif;
    background: #F4F6FA;
}

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

.main-header {
    width: 100%;
    min-height: 72px;
    background: #121E52;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px 8px;
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    flex: 1;
}

/* LOGO */
.logo {
    width: 132px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* NAVEGACIÓN */
.main-nav {
    display: flex;
    align-items: center;
    margin-left: 130px;
    gap: 88px;
    flex: 1;
}

.nav-link {
    color: #FBFBFB;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* BOTÓN LOGIN - Versión Desktop */
.btn-login--desktop {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #FBFBFB;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400; 
    line-height: 24px;
    transition: opacity 0.2s ease;
    text-decoration: none;
    margin-left: auto;
}


.btn-login--desktop:hover {
    opacity: 0.8;
}

.btn-login--desktop svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* BOTÓN LOGIN - Versión Mobile */
.btn-login--mobile {
    display: none;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #FBFBFB;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400; 
    line-height: 24px;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.btn-login--mobile:hover {
    opacity: 0.8;
}

.btn-login--mobile svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* MENÚ HAMBURGUESA */
.menu-hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #FBFBFB;
    font-size: 32px;
    line-height: 1;
}

/* =========================================================
   RESPONSIVE HEADER
========================================================= */

@media (max-width: 1100px) {
    .main-nav {
        margin-left: 60px;
        gap: 40px;
    }
    
    .btn-login--desktop {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 16px 20px;
        min-height: 72px;
    }
    
    .logo {
        width: 120px;
        height: auto;
    }
    
    /* Ocultar botón desktop en mobile */
    .btn-login--desktop {
        display: none;
    }
    
    /* Mostrar botón mobile dentro del menú */
    .btn-login--mobile {
        display: flex;
        margin-top: 8px;
    }
    
    /* Menú mobile */
    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: #121E52;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px 20px;
        margin-left: 0;
        z-index: 100;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .menu-hamburger {
        display: block;
    }
}

/* =========================================================
   FOOTER
========================================================= */

.main-footer {
    width: 100%;
    background: #121E52;
    padding: 48px 80px;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

/* =========================
   PARTE IZQUIERDA (Logo + Menús)
========================= */

.footer-left {
    display: flex;
    flex-direction: row;
    gap: 80px;
    align-items: flex-start;
}

/* Logo - 168x48 */
.footer-logo {
    position: relative;
    width: 168px;
    height: 48px;
    min-width: 168px;
    margin-right: 50px;
}

.footer-logo__image {
    width: 168px;
    height: 48px;
    display: block;
    object-fit: contain;
}

/* Menú de navegación footer */
.footer-nav {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
    margin-top: 46px;
}

.footer-nav__column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-nav__link {
    color: #FBFBFB;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: 0.25px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.footer-nav__link:hover {
    opacity: 0.8;
}

/* =========================
   NEWSLETTER
========================= */

.footer-newsletter {
    max-width: 583px;
    width: 100%;
}

.footer-newsletter__title {
    color: #FBFBFB;
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0.25px;
    margin: 0 0 8px 0;
}

.footer-newsletter__subtitle {
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.25px;
    margin: 0 0 24px 0;
}

/* Formulario newsletter */
.footer-newsletter__form {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-newsletter__input-wrapper {
    width: 320px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid #FBFBFB;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.footer-newsletter__input-wrapper:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #FF8A2A;
}

.footer-newsletter__input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.25px;
    outline: none;
}

.footer-newsletter__input::placeholder {
    color: #FFFFFF;
    opacity: 0.6;
}

.footer-newsletter__button {
    background: #FF8A2A;
    border-radius: 4px;
    padding: 12px 24px;
    height: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-newsletter__button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 138, 42, 0.3);
}

.footer-newsletter__button:active {
    transform: translateY(0);
}

.footer-newsletter__button span {
    color: #FBFBFB;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.25px;
}

/* =========================
   REDES SOCIALES 
========================= */

.footer-social {
    display: flex;
    flex-direction: row;
    gap: 12px;  
    align-items: center;
    margin-top: 8px;
}

.footer-social__link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D9D9D9;  
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social__link:hover {
    background: #FF8A2A;  
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 138, 42, 0.3);
}

.footer-social__link:active {
    transform: translateY(0);
}

.footer-social__link img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-social__link:hover img {
    filter: brightness(0) invert(1);  
    transform: scale(1.05);
}

/* =========================================================
   RESPONSIVE FOOTER
========================================================= */

/* Tablet */
@media (max-width: 1100px) {
    .main-footer {
        padding: 48px 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 48px;
    }
    
    .footer-left {
        flex-wrap: wrap;
        gap: 48px;
    }
    
    .footer-logo {
        margin-left: 0;
    }
    
    .footer-social__link {
        width: 44px;
        height: 44px;
    }
    
    .footer-social__link img {
        width: 24px;
        height: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-footer {
        padding: 48px 20px;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-logo {
        margin-left: 0;
    }
    
    .footer-nav {
        margin-top: 0;
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-nav__column {
        gap: 16px;
    }
    
    .footer-newsletter__form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-newsletter__input-wrapper {
        width: 100%;
        max-width: 320px;
    }
    
    .footer-newsletter__title {
        font-size: 20px;
        line-height: 28px;
    }
    
    .footer-newsletter__subtitle {
        font-size: 14px;
        line-height: 22px;
    }
    
    .footer-social {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-social__link {
        width: 40px;
        height: 40px;
    }
    
    .footer-social__link img {
        width: 22px;
        height: 22px;
    }
}