/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

/* Estilos para el Header */
header {
    width: 95%;
    height: 95vh;
    margin: 2rem auto;
    border-radius: 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: heroImageFadeIn 1s ease-out forwards;
}

@keyframes heroImageFadeIn {
    to {
        opacity: 1;
    }
}

/* Imagen específica para AidLink */
.aidlink-page header {
    background-image: url('assets/aidlinkhero.jpg');
}

/* Overlay degradado - de negro a transparente (izquierda a derecha) */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    z-index: 1;
    opacity: 0;
    animation: overlayFadeIn 1s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes overlayFadeIn {
    to {
        opacity: 1;
    }
}

/* Estilos para la Sección Hero */
#hero {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 4rem;
    padding-bottom: 5rem;
    max-width: 80%;
}

/* Animaciones Hero */
#hero > * {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease-out forwards;
}

#hero > div:first-child {
    animation-delay: 0.2s;
}

#hero h1 {
    animation-delay: 0.4s;
}

#hero h2 {
    animation-delay: 0.6s;
}

#hero > p {
    animation-delay: 0.8s;
}

#hero a {
    animation-delay: 1s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Insignia/Badge */
#hero > div:first-child {
    margin-bottom: 1rem;
}

#hero > div:first-child p {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.625rem 1.75rem;
    border-radius: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Título Principal */
#hero h1 {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* Subtítulo */
#hero h2 {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Descripción */
#hero > p {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 70%;
}

/* Botón CTA */
#hero a button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

#hero a button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Responsive Design */

/* Pantallas medianas (Laptops pequeños) */
@media (max-width: 1440px) and (min-width: 1025px) {
    header {
        width: 95%;
        height: 88vh;
        border-radius: 1.25rem;
        margin: 1.5rem auto;
    }
    
    #hero {
        padding: 1rem 3rem;
        max-width: 90%;
        padding-bottom: 3rem;
    }
    
    #hero > div:first-child p {
        font-size: 0.7rem;
        padding: 0.6rem 1rem;
    }
    
    #hero h1 {
        font-size: 2.2rem;
    }
    
    #hero h2 {
        font-size: 1.5rem;
    }
    
    #hero > p {
        font-size: 0.7rem;
        width: 100%;
    }
    
    #hero a button {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
}

/* Tablets */
@media (max-width: 1024px) and (min-width: 900px) {
    header {
        width: 95%;
        height: 85vh;
        border-radius: 1rem;
    }
    
    #hero {
        padding: 1.5rem 2rem;
        max-width: 100%;
        padding-bottom: 3rem;
    }
    #hero > div:first-child p {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    #hero h1 {
        font-size: 1.7rem;
        width: 75%;
    }
    
    #hero h2 {
        font-size: 1.5rem;
    }
    
    #hero > p {
        font-size: 0.78rem;
    }
    
    #hero a button {
        padding: 0.875rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Tablets pequeños con menú hamburguesa */
@media (max-width: 899px) and (min-width: 769px) {
    header {
        width: 95%;
        height: 90vh;
        border-radius: 0.875rem;
        margin: 1.25rem auto;
    }
    
    #hero {
        padding: 1.25rem 2rem;
        max-width: 85%;
        text-align: left;
        padding-bottom: 4rem;
    }
    
    #hero h1 {
        font-size: 1.7rem;
        line-height: 1.2;
    }
    
    #hero h2 {
        font-size: 1.3rem;
    }
    
    #hero > p {
        font-size: 0.88rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    #hero > div:first-child p {
        font-size: 0.7rem;
        padding: 0.55rem 1.4rem;
    }
    
    #hero a button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    header {
        width: 95%;
        height: 100vh;
        border-radius: 0.75rem;
        margin: 1rem auto;
        background-position: center;
    }
    
    #hero {
        padding: 0rem 2rem;
        max-width: 95%;
        text-align: left;
    }
    
    #hero h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    #hero h2 {
        font-size: 1.5rem;
    }
    
    #hero > p {
        font-size: 0.9rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    #hero > div:first-child p {
        font-size: 0.8rem;
        padding: 0.5rem 1.25rem;
    }
    
    #hero a button {
        padding: 0.75rem 1.75rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 280px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    header {
        width: 95%;
        height: 100vh;
        border-radius: 0.5rem;
        margin: 0.5rem auto;
        background-position: center;
    }
    
    #hero {
        padding: 1rem 1.5rem;
        max-width: 98%;
    }
    
    #hero h1 {
        font-size: 1.4rem;
        line-height: 1.5;
    }
    
    #hero h2 {
        font-size: 1.2em;
    }
    
    #hero > p {
        font-size: 0.72em;
        margin-bottom: 1.75rem;
    }
    
    #hero > div:first-child p {
        font-size: 0.74rem;
        padding: 0.4rem 1rem;
    }
    
    #hero a button {
        padding: 0.7rem 1.5rem;
        font-size: 0.8em;
    }
}

/* ================================================
   MEDIA QUERIES PARA ALTURA (HEIGHT) - HERO SECTION
   Optimización para pantallas con diferentes alturas
   ================================================ */

/* Pantallas muy angostas en altura (laptops con pantalla baja, tablets en landscape) */
@media (max-height: 650px) {
    header {
        height: 100vh;
        margin: 0 auto;
        width: 100%;
        border-radius: 0;
    }
    
    #hero {
        padding: 1rem 4rem;
        padding-bottom: 2rem;
        gap: 0.5rem;
    }
    
    #hero > div:first-child {
        margin-bottom: 0.5rem;
    }
    
    #hero > div:first-child p {
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem;
    }
    
    #hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        line-height: 1;
    }
    
    #hero h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        line-height: 1.1;
    }
    
    #hero > p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        max-width: 85%;
        line-height: 1.4;
    }
    
    #hero a button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* Pantallas moderadamente angostas en altura */
@media (max-height: 750px) and (min-height: 651px) {
    header {
        height: 95vh;
        margin: 1rem auto;
    }
    
    #hero {
        padding: 1.5rem 4rem;
        padding-bottom: 3rem;
    }
    
    #hero > div:first-child {
        margin-bottom: 0.8rem;
    }
    
    #hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    #hero h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    #hero > p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        max-width: 80%;
    }
    
    #hero a button {
        padding: 0.9rem 2.2rem;
        font-size: 0.95rem;
    }
}

/* Pantallas de altura normal (desktop estándar) */
@media (min-height: 850px) {
    header {
        height: 95vh;
    }
    
    #hero {
        padding: 3rem 4rem;
        padding-bottom: 6rem;
    }
    
    #hero h1 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    #hero h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    #hero > p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        max-width: 70%;
    }
    
    #hero a button {
        padding: 1.2rem 3rem;
        font-size: 1.1rem;
    }
}

/* Pantallas muy altas (monitores grandes, displays verticales) */
@media (min-height: 1080px) {
    header {
        height: 90vh;
        margin: 3rem auto;
    }
    
    #hero {
        padding: 4rem 4rem;
        padding-bottom: 8rem;
    }
    
    #hero > div:first-child {
        margin-bottom: 2rem;
    }
    
    #hero > div:first-child p {
        font-size: 1.1rem;
        padding: 0.8rem 2rem;
    }
    
    #hero h1 {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }
    
    #hero h2 {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }
    
    #hero > p {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
        max-width: 65%;
        line-height: 1.7;
    }
    
    #hero a button {
        padding: 1.3rem 3.5rem;
        font-size: 1.2rem;
    }
}

/* ================================================
   COMBINACIONES ESPECÍFICAS (ALTURA + ANCHO)
   Para casos especiales donde necesitamos ajustar ambos
   ================================================ */

/* Tablets en landscape con altura baja */
@media (max-width: 1024px) and (max-height: 650px) {
    header {
        height: 100vh;
        margin: 0;
    }
    
    #hero {
        padding: 1rem 2rem;
        padding-bottom: 1.5rem;
        max-width: 95%;
    }
    
    #hero h1 {
        font-size: 1.8rem;
        line-height: 0.9;
    }
    
    #hero h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    #hero > p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        max-width: 90%;
    }
}

/* Móviles en landscape (altura muy baja) */
@media (max-width: 768px) and (max-height: 500px) {
    header {
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    #hero {
        padding: 0.5rem 1rem;
        padding-bottom: 1rem;
        max-width: 100%;
        gap: 0.3rem;
    }
    
    #hero > div:first-child {
        margin-bottom: 0.3rem;
    }
    
    #hero > div:first-child p {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    
    #hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
        line-height: 0.9;
    }
    
    #hero h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1;
    }
    
    #hero > p {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
        max-width: 95%;
        line-height: 1.3;
    }
    
    #hero a button {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Estilos para la Navegación */
nav {
    position: relative;
    z-index: 2;
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo */
nav div:first-child a {
    display: block;
}

nav div:first-child img {
    height: 11rem !important;
    width: auto;
}

/* Enlaces de navegación */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li > a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

nav ul li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown de servicios con hover */
.services-dropdown {
    position: relative;
}

.services-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 14rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 5px;
}

.services-dropdown:hover .services-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.services-submenu a {
    display: block;
    padding: 0.875rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.services-submenu a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.services-submenu a:last-child {
    border-bottom: none;
}

/* Controles derecha (idioma y contacto) */
nav div:last-child {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Botón de idioma del navbar */
nav div:last-child button:first-child {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 3rem;
}

nav div:last-child button:first-child:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Botón de contacto */
.contact-btn {
    background: white !important;
    color: #007bff !important;
    border: 2px solid white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: 0.7rem;
}

.contact-btn:hover {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu-logo img {
    height: 6rem;
    width: auto;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: #333;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}

.mobile-menu ul li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu ul li a {
    color: #333;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
    color: #007bff;
}

.mobile-menu ul li a::after {
    content: '›';
    font-size: 1.2rem;
    color: #999;
}

/* Submenú móvil para Servicios */
.mobile-submenu {
    display: none;
    background-color: #f8f9fa;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu a {
    color: #666 !important;
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
    margin-left: 1rem;
}

.mobile-submenu a::after {
    display: none !important;
}

.mobile-menu-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* Botón de idioma con toggle */
.language-toggle {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.language-toggle:hover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.mobile-menu-controls a button {
    background: white;
    color: #007bff;
    border: 2px solid #007bff;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-menu-controls a button:hover {
    background: #007bff;
    color: white;
}

/* Responsive Design para navegación */

/* Pantallas medianas (Laptops pequeños) */
@media (max-width: 1440px) and (min-width: 1025px) {
    nav {
        padding: 1rem 3rem;
    }
    
    nav div:first-child img {
        height: 11rem;
    }
    
    nav ul li > a {
        font-size: 0.9rem;
        padding: 0.7rem 0.5rem;
    }
    
    .language-toggle {
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
    }
    
    .contact-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.75em;
        margin-left: 0.5rem;
    }
}

/* Tablets */
@media (max-width: 1024px) and (min-width: 900px) {
    nav {
        padding: 1rem 3rem;
    }
    
    nav div:first-child img {
        height: 11rem;
    }
    
    nav ul li > a {
        font-size: 0.8rem;
        padding: 0.625rem 0.4rem;
    }
    
    .language-toggle {
        padding: 0.625rem 0.8rem;
        font-size: 0.68rem;
    }
    
    .contact-btn {
        padding: 0.625rem 0.5rem;
        font-size: 0.68rem;
        margin-left: 0.5rem;
    }
}

/* Tablets pequeños con menú hamburguesa */
@media (max-width: 899px) and (min-width: 769px) {
    nav {
        padding: 1.25rem 2rem;
        justify-content: space-between;
    }
    
    /* Ocultar menú desktop y botones completamente, mostrar botón móvil */
    nav ul {
        display: none !important;
    }
    
    nav div:last-child {
        display: none !important;
    }
    
    /* Ocultar botones específicos del navbar cuando hamburguesa está activa */
    nav .language-toggle,
    nav .contact-btn {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav div:first-child img {
        height: 11rem;
    }
}

/* Móviles */
@media (max-width: 768px) {
    nav {
        padding: 1.5rem 2rem;
        justify-content: space-between;
    }
    
    /* Ocultar menú desktop y botones completamente, mostrar botón móvil */
    nav ul {
        display: none !important;
    }
    
    nav div:last-child {
        display: none !important;
    }
    
    /* Ocultar botones específicos del navbar cuando hamburguesa está activa */
    nav .language-toggle,
    nav .contact-btn {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav div:first-child img {
        height: 11rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    nav {
        padding: 1.5rem ;
    }
    
    nav div:first-child img {
        height: 11rem;
    }
}

/* ===== SECCIÓN HERO ===== */ 