/* Variables de colores */
:root {
    --yellow: #F4D03F;
    --dark-blue: #0350a8;
    --gray: #95A5A6;
    --white: #FFFFFF;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/roboto-v48-latin/roboto-v48-latin-300.woff2') format('woff2');
    font-display: swap;
  }
  @font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/roboto-v48-latin/roboto-v48-latin-500.woff2') format('woff2');
    font-display: swap;
  }

  @font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/playfair-display-v39-latin/playfair-display-v39-latin-400.woff2') format('woff2');
    font-display: swap;
  }
  @font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/playfair-display-v39-latin/playfair-display-v39-latin-700.woff2') format('woff2');
    font-display: swap;
  }
  
/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-blue);
    background-color: var(--white);
}

/* Estilos del Navbar */
.navbar {
    background: rgba(3, 80, 168, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(3,80,168,0.10), 0 2px 5px rgba(0,0,0,0.08);
    padding: 0.7rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-family: unset;
    font-size: unset;
    font-weight: unset;
    letter-spacing: unset;
}

.logo span {
    display: none;
}

.logo:hover {
    text-shadow: none;
}

.logo-img {
    display: block;
    height: 50px;
    width: auto;
    margin: 0;
    padding: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    margin: 0;
    padding: 0;
}

.nav-item:not(:last-child) {
    border-right: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    opacity: 0.8;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    background: var(--white);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

.nav-link.intermediate-highlight {
    color: var(--white);
    font-weight: 550;
}

.nav-link.intermediate-highlight:hover {
    color: var(--yellow);
}

.nav-link.intermediate-highlight:hover::after {
    background: var(--yellow);
}

.nav-link.intermediate-highlight.active {
    color: var(--dark-blue) !important;
}

.nav-link.intermediate-highlight.active::after {
    background: var(--dark-blue) !important;
    transform: scaleX(1) !important;
}

/* Botón destacado para Descarga Gratis */
.nav-item:last-child .nav-link {
    background: var(--yellow);
    color: var(--dark-blue);
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(244,208,63,0.10);
    margin-left: 1.2rem;
    padding: 0.7rem 1.7rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.nav-item:last-child .nav-link:hover {
    background: #ffe066;
    color: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(244,208,63,0.20);
}

.nav-item:last-child .nav-link.active {
    background: var(--yellow) !important;
    color: var(--dark-blue) !important;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(244,208,63,0.25);
    margin-left: 1.2rem;
    padding: 0.7rem 1.7rem;
    border: 2px solid var(--white);
}

.nav-item:last-child .nav-link.active::after {
    display: none !important;
}

/* Restaurar botón hamburguesa y ajustar para móviles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    z-index: 2001;
}

.mobile-menu-btn i {
    font-size: 24px;
    color: var(--white);
    transition: transform 0.3s ease;
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}


/* Eliminar todas las reglas de pseudo-elementos y de span */
.mobile-menu-btn::before,
.mobile-menu-btn::after,
.mobile-menu-btn span,
.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 900px) {
    .nav-container {
        padding: 0 1rem;
        min-height: 56px;
    }
    .logo {
        font-size: unset;
        line-height: normal;
        display: flex;
        align-items: center;
    }
    .logo span {
        display: none;
    }
    .logo-img {
        height: 30px;
    }
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(3, 80, 168, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.2rem;
        z-index: 2000;
        transition: opacity 0.3s;
    }
    .nav-menu.active {
        display: flex;
        background: rgba(3, 80, 168, 0.99);
        animation: fadeInMenu 0.3s;
    }
    .nav-link {
        font-size: 1.15rem;
        padding: 0.7rem 1.2rem;
    }
    .nav-item:last-child .nav-link {
        margin-left: 0;
        margin-top: 0.5rem;
        font-size: 1.15rem;
        padding: 0.7rem 1.7rem;
    }
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
        backdrop-filter: blur(6px);
    }
    .nav-link {
        font-size: 1rem;
    }
    .nav-item:last-child .nav-link {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
    .logo-img {
        height: 25px;
    }
}

@media (min-width: 901px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

@keyframes fadeInMenu {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Asegurar que el subrayado del enlace activo sea correcto */
.nav-link.active::after {
    transform: scaleX(1); /* Asegurar que el subrayado sea visible para el enlace activo */
}

/* Estilos del Footer */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 20px 0;
    font-size: 0.9rem;
    width: 100%;
    position: relative;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-content p {
    margin: 0;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    footer {
        padding: 15px 0;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
} 

.footer-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

.footer-icons .icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
}

.footer-icons img {
    width: 36px;
    height: 36px;
    max-width: 100%;
    max-height: 100%;
    margin: 0 6px;
    transition: transform 0.2s, filter 0.2s;
    vertical-align: middle;
    filter: brightness(0) invert(1); /* Blanco sobre fondo oscuro */
}

.footer-icons a:hover img {
    transform: scale(1.15);
    filter: brightness(0) saturate(100%) invert(81%) sepia(61%) saturate(749%) hue-rotate(2deg) brightness(104%) contrast(101%);
}

.footer-content {
    text-align: center;
    padding: 24px 0 10px 0;
}

@media (max-width: 600px) {
    .footer-icons .icon-row {
        flex-wrap: wrap;
        gap: 18px 0;
        margin-bottom: 0;
    }
    .footer-icons .icon-row a {
        flex: 1 1 25%;
        display: flex;
        justify-content: center;
        margin-bottom: 14px;
    }
    .footer-icons img {
        width: 26px;
        height: 26px;
        margin: 0;
    }
    .footer-content > p {
        font-size: 1rem;
        margin-bottom: 18px;
    }
}