/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    /*overflow-x: hidden;*/
    overflow-y: auto;
    scroll-behavior: smooth; 
    /*
    scrollbar-width: none; 
    -ms-overflow-style: none;*/
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /*overflow-y: auto;*/
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
}

body::-webkit-scrollbar {
    width: 6px; /* Chrome, Safari y Opera */
}

body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Contenedor general para prevenir scroll horizontal */
.page-wrapper {
    width: 100%;
    /* max-width: 100%; */
    overflow-x: hidden;
}

/* Footer container sin margen */
#footer-container {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease, all 0.3s ease;
    padding: 0.6rem 0; /* Padding más pequeño y simétrico */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

/* Sección Izquierda - Botón WhatsApp */
.nav-left {
    justify-self: start;
}

/* Ocultar logo móvil en desktop */
.mobile-logo {
    display: none;
}

.whatsapp-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.whatsapp-btn {
    background: rgba(26, 26, 46, 0.95);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
}

.whatsapp-btn:hover {
    background: rgba(26, 26, 46, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.whatsapp-text{
    font-weight: 900;
    font-size: 1.2rem;
    text-align: center;
}
.whatsapp-btn i.fa-whatsapp {
    font-size: 2.5rem;
}

.cursor-icon {
    position: absolute;
    top: 15px;
    right: -5px;
    font-size: 1.8rem;
    color: #ffffff;
    transform: rotate(-45deg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.slogan-text {
    color: #237ac6;
    font-style: italic;
    text-align: center;
    width: 100%;
    font-size:1.4rem;
}

/* Estilos para el enlace del logo */
.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
    line-height: 0; /* Eliminar el espacio de línea */
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: -2px; /* Outline hacia adentro para no agregar espacio */
}

/* Sección Centro - Logo */
.nav-center {
    justify-self: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo img {
    width: 135px;
    height: 135px;
}

.logo-text {
    display: none; /* Oculto en desktop, solo se muestra en móviles */
    flex-direction: column;
    text-align: left;
}

.logo-title {
    
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: #a0a0a0;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 0.2rem;
}


/* Sección Derecha - Menú de Navegación */
.nav-right {
    justify-self: end;
}

/* Menú desktop */
.nav-menu.desktop-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

/* Menú móvil - inicialmente oculto */
.nav-menu.mobile-menu {
    display: none;
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(35, 122, 198, 0.2);
    padding: 2rem 0;
    z-index: 1001;
    list-style: none;
    margin: 0;
}

.nav-link {
    color: #237ac6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #3979ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3979ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Media queries para pantallas pequeñas (768px hacia abajo) */
@media (max-width: 768px) and (min-width: 250px) {
    .navbar {
        padding: 0.5rem 0;
        background: #ffffff;
    }
    
    .nav-container {
        padding: 0 1rem;
        max-width: 100%;
        overflow: hidden;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 1rem;
    }
    
    /* Mostrar todas las secciones en móviles con nuevo layout */
    .nav-left {
        display: flex;
        justify-self: start;
    }
    
    .nav-right {
        display: flex;
        justify-self: end;
    }
    
    /* Centro con el texto de la empresa */
    .nav-center {
        display: flex;
        justify-content: center;
        justify-self: center;
        margin-right: 0;
    }
    
    /* Configurar sección izquierda - Solo logo en móviles */
    .nav-left .whatsapp-container {
        display: none;
    }
    
    .nav-left .mobile-logo {
        display: block;
    }
    
    .nav-left .mobile-logo img {
        width: 70px;
        height: 70px;
    }
    
    .nav-logo {
        display: none; /* Ocultar el logo original del centro */
    }
    
    /* Mostrar solo el texto en el centro */
    .nav-center .logo-text {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .nav-center .logo-title {
        font-size: 2rem;
        font-weight: 900;
        background: linear-gradient(90deg, #164f91, #33a3ef);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1;
        margin-bottom: 0.2rem;
    }
    
    .nav-center .logo-subtitle {
        font-size: 1rem;
        background: linear-gradient(90deg, #164f91, #33a3ef);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: 0.5px;
        line-height: 1;
        font-weight: bold;
    }
    
    .nav-center .slogan-text {
        color: #237ac6;
        font-style: italic;
        text-align: center;
        font-size: 0.85rem;
        line-height: 1;
    }
    
    /* Mostrar hamburger en la derecha */
    .nav-right .hamburger {
        display: flex;
        position: relative;
        z-index: 1002;
    }
    
    .bar {
        background: #237ac6;
    }
    
    /* Ocultar menú desktop */
    .nav-menu.desktop-menu {
        display: none;
    }
    
    /* Mostrar y configurar menú móvil */
    .nav-menu.mobile-menu {
        display: flex;
        position: fixed;
        left: -100%;
        top: 100px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(35, 122, 198, 0.2);
        padding: 2rem 0;
        z-index: 1001;
        list-style: none;
        margin: 0;
    }
    
    .nav-menu.mobile-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
        color: #237ac6;
    }
    
    .nav-link:hover {
        color: #3979ff;
    }
}

/* Botón WhatsApp para móviles - oculto en desktop */
.mobile-whatsapp {
    display: none;
}
@media (min-width: 641px) and (max-width: 768px) and (orientation: portrait) {
    /* Media query para tablets portrait - sin estilos específicos */
}

/* Media query específica para tablets en orientación horizontal */
@media (min-width: 641px) and (max-width: 768px) and (orientation: landscape) {
    /* Media query para tablets landscape - sin estilos específicos */
}

/* Estilos para el botón WhatsApp móvil */
@media (max-width: 768px) {
    .mobile-whatsapp {
        display: block;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .whatsapp-btn-mobile {
        background: #25d366;
        color: white;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
        max-width: 200px;
        margin: 0 auto;
    }
    
    .whatsapp-btn-mobile:hover {
        background: #22c55e;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
        text-decoration: none;
        color: white;
    }
    
    .whatsapp-btn-mobile i {
        font-size: 1.1rem;
    }
}





/* Responsive para dispositivos móviles */
@media (max-width: 480px) {
    /* Navegación móvil específica */
    .navbar {
        padding: 0.4rem 0;
    }
    
    .nav-container {
        padding: 0 0.5rem;
    }
    
    /* Ajustar tamaños para pantallas muy pequeñas */
    .nav-left .mobile-logo img {
        width: 65px;
        height: 65px;
    }
    
    .nav-center .logo-title {
        font-weight: 900;
        font-size: 1.8rem;
         background: linear-gradient(90deg, #164f91, #33a3ef);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .nav-center .logo-subtitle {
        font-size: 1rem;
        background: linear-gradient(90deg, #164f91, #33a3ef);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .nav-center .slogan-text {
        font-size: 0.85rem;
    }
    
    .nav-right .hamburger {
        margin-right: 0.5rem;
    }
    
    .nav-menu {
        top: 65px;
        padding: 1.5rem 0;
    }
    
    .nav-item {
        margin: 0.8rem 0;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0;
    }
}   
.nav-link {
        font-size: 1.2rem;
        padding: 0.4rem 0;
    }
/* Botón de scroll */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #3979ff;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #2563eb;
    transform: translateY(-3px);
}
