body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background: #f0f8ff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: #fff;
}
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: url('images/bg01.jpg') no-repeat center center/cover;
    transform-style: preserve-3d;
    animation: wave3D 20s infinite ease-in-out, fadeBackground 10s infinite alternate;
}


.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 83, 119, 0.2),
        rgba(0, 115, 170, 0.2)
    );
    animation: colorShift 15s infinite ease-in-out;
    mix-blend-mode: color;
}

@keyframes colorShift {
    0% {
        background: linear-gradient(45deg, 
            rgba(0, 83, 119, 0.2),
            rgba(0, 115, 170, 0.2)
        );
    }
    25% {
        background: linear-gradient(45deg, 
            rgba(0, 105, 148, 0.2),
            rgba(0, 156, 219, 0.2)
        );
    }
    50% {
        background: linear-gradient(45deg, 
            rgba(0, 136, 177, 0.2),
            rgba(41, 171, 226, 0.2)
        );
    }
    75% {
        background: linear-gradient(45deg, 
            rgba(0, 147, 190, 0.2),
            rgba(64, 193, 255, 0.2)
        );
    }
    100% {
        background: linear-gradient(45deg, 
            rgba(0, 83, 119, 0.2),
            rgba(0, 115, 170, 0.2)
        );
    }
}

.wave-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 83, 119, 0.2) 0%,
        rgba(0, 115, 170, 0.4) 100%
    );
    backdrop-filter: blur(2px);
    z-index: 1;
}

.wave-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0.5;
    filter: url('#turbulence');
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    animation: floatCard 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes floatCard {
    0% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-20px) rotateX(2deg); }
    100% { transform: translateY(0) rotateX(0); }
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: glowText 3s ease-in-out infinite;
}

@keyframes glowText {
    0% { text-shadow: 0 0 10px rgba(255,255,255,0.5); }
    50% { text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 30px rgba(0,115,170,0.5); }
    100% { text-shadow: 0 0 10px rgba(255,255,255,0.5); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #fff;
    animation: slideInFromRight 1s ease-out;
}

@keyframes slideInFromRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0073aa;
    color: #fff;
    border: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
}

.btn-primary:hover {
    background: #005177;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Sección Pugberto */
.pugberto-info {
    background: #fff;
    padding: 50px 20px;
    text-align: center;
    animation: pulse 10s infinite; /* Animación en loop */
}

.pugberto-card {
    background: #e3f2fd;
    display: inline-block;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s; /* Transiciones para hover */
}

.pugberto-card:hover {
    transform: scale(1.5); /* Efecto de aumento */
    box-shadow: 0 10px 20px rgba(14, 33, 43, 0.5); /* Sombra al hacer hover */
}

.pugberto-card img {
    max-width: 150px;
    margin-bottom: 20px;
    border-radius: 100%;
    transition: transform 0.3s; /* Transición para la imagen */
}

.pugberto-card:hover img {
    transform: rotate(10deg); /* Efecto de rotación en la imagen al hacer hover */
}

.btn-whatsapp {
    background: #0073aa;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    transition: background 0.3s; /* Transición para el botón */
}

.btn-whatsapp:hover {
    background: #005177; /* Cambio de color al hacer hover */
}

.pugberto-tel {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #333;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Servicios Destacados */
.servicios-destacados {
    background: #ffffff;
    padding: 80px 30px;
    text-align: center;
    margin-bottom: 140px;
    min-height: 700px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #005177;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.servicio-item {
    height: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: none; 
}

.servicio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

.servicio-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
    color: #fff;
    transform: translateY(0); /* Se ajusta para que no haya efecto en móvil */
    transition: none; /* Se elimina la transición para evitar el efecto en móvil */
}

.servicio-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 1; /* Se ajusta para que siempre sea visible en móvil */
    transition: none; /* Se elimina la transición para evitar el efecto en móvil */
}

.servicio-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.servicio-item p {
    opacity: 1; /* Se ajusta para que siempre sea visible en móvil */
    transform: translateY(-5px); /* Se ajusta para que no haya efecto en móvil */
    transition: none; /* Se elimina la transición para evitar el efecto en móvil */
    margin-bottom: 30px;
}

.servicio-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    opacity: 1; /* Se ajusta para que siempre sea visible en móvil */
    transform: translateY(0); /* Se ajusta para que no haya efecto en móvil */
    transition: none; /* Se elimina la transición para evitar el efecto en móvil */
}

/* Efectos hover */
.servicio-item:hover {
    transform: translateY(-15px);
}

.servicio-item:hover .servicio-content {
    transform: translateY(0);
}

.servicio-item:hover .servicio-icon,
.servicio-item:hover p,
.servicio-item:hover .servicio-link {
    opacity: 1;
    transform: translateY(0);
}

.servicio-link:hover {
    background: #fff;
    color: #005177;
}

/* Responsive */
@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .servicio-item {
        height: 300px;
    }

    .servicio-content {
        transform: translateY(0);
    }

    .servicio-icon,
    .servicio-item p,
    .servicio-link {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonios */
.testimonios {
    background: linear-gradient(135deg, #f5f9fc 0%, #e3f2fd 100%);
    padding: 100px 0;
}

.testimonios h2 {
    margin-bottom: 30px;
}

.testimonios-carousel {
    position: relative;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.testimonio-item {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,115,170,0.1);
    margin: 20px;
    transition: all 0.3s ease;
}

.testimonio-item p {
    font-style: italic;
    margin-bottom: 10px;
}

/* Productos */
.productos {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
}

.productos h2 {
    margin-bottom: 30px;
}


.filtros {
    margin-bottom: 30px;
}

.filter-btn {
    background: #e3f2fd;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #0073aa;
    color: #fff;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px;
}

.producto-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    min-height: 550px;
    padding-top: 10px;
}

.producto-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,115,170,0.2);
}

.producto-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.producto-info {
    padding: 25px;
    background: linear-gradient(135deg, #fff 0%, #f5f9fc 100%);
}

.info-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left:0;top:0;width:100%;height:100%;
    background: rgba(0,83,119,0.5);
    align-items:center;justify-content:center;
}

.modal-content {
    background:#fff;
    padding:30px;
    border-radius:10px;
    max-width:500px;
    position: relative;
}

.close-modal {
    position:absolute;
    top:10px;right:10px;
    font-size:20px;
    cursor:pointer;
}

/* Fichas Técnicas */
.fichas-tecnicas {
    background: #f5f9fc;
    padding: 60px 20px;
    text-align: center;
}

.fichas-tecnicas h2 {
    margin-bottom: 30px;
}

.fichas-tecnicas ul {
    list-style: none;
    padding: 0;
}

.fichas-tecnicas li {
    background: #fff;
    margin:10px auto;
    max-width: 600px;
    padding:10px 20px;
    border-radius:5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ficha-item { 
    border: 1px solid #ddd; 
    border-radius: 10px; 
    padding: 10px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s; /* Añadir transición */
}

.ficha-item:hover {
    transform: scale(1.05); /* Aumentar el tamaño */
    box-shadow: 0 4px 20px rgba(0, 83, 119, 0.5); /* Sombra atractiva */
    background-color: #e3f2fd; /* Cambiar el color de fondo */
}

.download-btn {
    background: #0073aa;
    padding: 5px 15px;
    border-radius: 5px;
    color:#fff;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #005177;
}

/* Quiénes Somos */
.quienes-somos {
    background: #ffffff;
    padding:60px 20px;
    text-align:center;
}

.quienes-somos .historia, .quienes-somos .equipo {
    margin-bottom:50px;
}

.timeline {
    max-width:600px;
    margin:0 auto;
    position: relative;
    padding: 20px;
}

.timeline-item {
    background:#e3f2fd;
    border-radius:10px;
    margin-bottom:20px;
    padding:20px;
    position:relative;
}

.timeline-item span {
    font-weight:bold;
    display:block;
    margin-bottom:10px;
}

.equipo-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    max-width:800px;
    margin:0 auto;
}

.equipo-item {
    background:#f5f9fc;
    border-radius:10px;
    padding:20px;
    text-align:center;
    transition: transform 0.3s;
}

.equipo-item:hover {
    transform:translateY(-10px);
}

.equipo-item img {
    width:100px;
    height:100px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:10px;
}

/* Contacto */
.contacto {
    background: #f5f9fc;
    padding:60px 20px;
    text-align:center;
}

.contacto h2 {
    margin-bottom:30px;
}

#contact-form {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,115,170,0.1);
}

.form-group {
    margin-bottom:20px;
    position: relative;
}

.form-group label {
    display:block;
    margin-bottom:5px;
}

.form-group input, .form-group textarea {
    background: rgba(255,255,255,0.8);
    border: 2px solid transparent;
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 4px rgba(0,115,170,0.1);
    outline: none;
}

.error-msg {
    position:absolute;
    bottom:-20px;left:0;
    font-size:0.8rem;
    color:#005177;
    opacity:0;
    transition: opacity 0.3s;
}

.datos-contacto {
    margin-bottom:30px;
}

.mapa iframe {
    width:100%;
    max-width:600px;
    border:0;
}

footer {
    background:#222;
    color:#fff;
    text-align:center;
    padding:20px;
}

/* Animaciones */
@keyframes fadeIn {
    0% {opacity:0; transform: translateY(20px);}
    100% {opacity:1; transform: translateY(0);}
}

/* AOS Animations (la librería se encargará) */

/* Efectos hover y transiciones */
.producto-item img {
    transition: transform 0.3s;
}

.producto-item:hover img {
    transform: scale(1.1);
}

/* Estilos validados del form */
input:valid, textarea:valid {
    border-color: #0073aa;
}

input:invalid, textarea:invalid {
    border-color: #005177;
}

/* Ocultar error cuando no haya error */
.form-group.valid .error-msg {
    opacity:0;
}
.form-group.invalid .error-msg {
    opacity:1;
}

/* Testimonios activo */
.testimonio-item.active {
    opacity:1;
    position:static;
}

/* Parallax (simple, aplicamos background-attachment fixed en hero si se desea) */
.hero {
    background-attachment: fixed;
}

/* Pugberto info card */
.pugberto-card:hover {
    box-shadow: 0 0 15px rgba(0,115,170,0.1);
    transform: translateY(-5px);
    transition: all 0.3s;
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* Efecto Wave 3D mejorado para Hero */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    perspective: 10px;
}

.hero-background {
    position: absolute;
    top: -50px;  /* Extra padding para evitar bordes blancos durante la animación */
    left: -50px;
    right: -50px;
    bottom: -50px;
    /* background: url('images/bg02.jpg') no-repeat center center/cover; */
    transform-style: preserve-3d;
    animation: wave3D 10s infinite ease-in-out;
}

.wave-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 83, 119, 0.2) 0%,
        rgba(0, 115, 170, 0.4) 100%
    );
    backdrop-filter: blur(2px);
    z-index: 1;
}

.wave-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0.8;
    filter: url('#turbulence');
}

.hero-content {
    position: relative;
    z-index: 2;
    /* ... resto de los estilos existentes ... */
}

@keyframes wave3D {
    0% {
        transform: 
            rotateX(0deg) 
            rotateY(0deg) 
            translate3d(0, 0, 0)
            scale(1.1);
    }
    25% {
        transform: 
            rotateX(2deg) 
            rotateY(-1deg) 
            translate3d(10px, -10px, 30px)
            scale(1.15);
    }
    50% {
        transform: 
            rotateX(0deg) 
            rotateY(2deg) 
            translate3d(-10px, 0px, 50px)
            scale(1.2);
    }
    75% {
        transform: 
            rotateX(-2deg) 
            rotateY(1deg) 
            translate3d(10px, 10px, 30px)
            scale(1.15);
    }
    100% {
        transform: 
            rotateX(0deg) 
            rotateY(0deg) 
            translate3d(0, 0, 0)
            scale(1.1);
    }
}

/* Ajuste del contenido centrado */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    /* background: url('images/bg01.jpg') no-repeat center center/cover; */
    transform-style: preserve-3d;
    animation: wave3D 20s infinite ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    animation: floatCard 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Asegurar que los overlays cubran toda la pantalla pero no afecten el centrado */
.wave-effect,
.wave-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Ajuste responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
        margin: 0 15px;
    }
}

/* Capa adicional para el efecto de color */
.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    mix-blend-mode: color;
    opacity: 0.3;
    animation: deepBlueShift 20s infinite ease-in-out;
}
@keyframes deepBlueShift {
    0% {
        background: linear-gradient(45deg, rgba(0, 81, 119, 0.2), rgba(0, 115, 170, 0.2));
    }
    25% {
        background: linear-gradient(45deg, rgba(0, 96, 144, 0.2), rgba(0, 136, 204, 0.2));
    }
    50% {
        background: linear-gradient(45deg, rgba(0, 136, 204, 0.2), rgba(0, 160, 233, 0.2));
    }
    75% {
        background: linear-gradient(45deg, rgba(0, 96, 144, 0.2), rgba(0, 136, 204, 0.2));
    }
    100% {
        background: linear-gradient(45deg, rgba(0, 81, 119, 0.2), rgba(0, 115, 170, 0.2));
    }
}

/* Asegúrate de que los iconos sean visibles */
.datos-contacto i {
    color: #0073aa; /* Color de los iconos */
    margin-right: 8px; /* Espaciado entre el icono y el texto */
}

/* Estilos para el menú de navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 8px 0;
}

.nav-links li a:hover {
    color: #0073aa;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 10px;
}

/* Estilos específicos para móvil */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        height: calc(100vh - 60px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0.3s ease-in-out;
        gap: 40px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links li a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        position: relative;
        z-index: 2;
    }

    .menu-icon span {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    .menu-icon.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-icon.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Animación para cada elemento del menú */
    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links li:nth-child(6) { transition-delay: 0.6s; }
}

/* Estilos del Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 100px;
    height: 100px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ocultar el contenido principal hasta que esté cargado */
.content-hidden {
    opacity: 0;
}

.content-visible {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
