/* GENERAL */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    background-image: radial-gradient(rgba(148, 69, 226, 0.301) 1px, transparent 1px);
    background-size: 10px 10px;
    color: #5e0d97;
}
/* 🔹 CONTENEDOR DEL NAVBAR */
.navbar-container {
    width: 100%;
    background: rgba(74, 0, 128, 0.95); /* Fondo morado oscuro semi-transparente */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Sombra suave */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* 🔹 NAVBAR MODERNO Y ELEGANTE */
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 🔹 LOGO CON EFECTO NEÓN Y SOMBRA */
.logo a {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

/* 🔹 MENÚ DE NAVEGACIÓN CON EFECTOS MODERNOS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* 🔹 EFECTO HOVER CON FONDO Y SOMBRA */
.nav-links li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(170, 105, 235, 0.2);
    border-radius: 8px;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.nav-links li a:hover::before {
    transform: scale(1);
}

.nav-links li a:hover {
    color: #d4b4f5;
    box-shadow: 0 0 10px rgba(170, 105, 235, 0.5);
}

/* 🔹 MENÚ HAMBURGUESA CON ANIMACIÓN */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: rgba(170, 105, 235, 0.2);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(170, 105, 235, 0.4);
}

.menu-toggle span {
    background: white;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* 🔹 ANIMACIÓN DEL MENÚ HAMBURGUESA */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 🔹 RESPONSIVE: MENÚ PARA MÓVILES */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(74, 0, 128, 0.95);
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }
}

/* 🔹 SEPARACIÓN ENTRE EL NAVBAR Y EL CONTENIDO */
.header-space {
    height: 70px;
    width: 100%;
}




/* 🔹 SEPARACIÓN ENTRE EL NAV Y EL HEADER */
.header-space {
    height: 70px; 
    width: 100%;
}

/* 🔹 HEADER MEJORADO CON NEÓN */
.header-banner {
    position: relative;
    width: 100%;
    height: 750px;
    background-image: url('images/fondo2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 50px;
    font-weight: bold;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}


.header-banner.parallax {
    background-attachment: fixed;
}


.header-banner::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
}


#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}


.header-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.header-content h1 {
    font-size: 54px;
    font-weight: bold;
    text-transform: uppercase;
    color: #d4b4f5;
    text-shadow: 0 0 10px #aa69eb, 0 0 20px #bf8ef0, 0 0 30px #d4b4f5;
    animation: glow 1.5s infinite alternate;
    margin-top: -60px;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #aa69eb, 0 0 20px #bf8ef0, 0 0 30px #d4b4f5;
    }
    to {
        text-shadow: 0 0 15px #aa69eb, 0 0 25px #bf8ef0, 0 0 35px #d4b4f5;
    }
}


.header-content p {
    font-size: 22px;
    font-weight: 300;
    margin-top: 15px;
    opacity: 0.9;
}


.header-content .cta-button {
    display: inline-block;
    margin-top: 25px;
    background: linear-gradient(90deg, #aa69eb, #bf8ef0);
    color: white;
    font-size: 20px;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px #aa69eb;
}


.header-content .cta-button:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #bf8ef0, #aa69eb);
    box-shadow: 0 0 20px #d4b4f5, 0 0 30px #aa69eb;
}


@media (min-width: 1400px) {
    .header-banner {
        height: 850px;
    }
}


@media (max-width: 768px) {
    .header-banner {
        height: 500px;
        font-size: 36px;
    }

    .header-content h1 {
        font-size: 36px;
    }

    .header-content p {
        font-size: 18px;
    }

    .header-content .cta-button {
        font-size: 16px;
        padding: 12px 24px;
    }
}



/* 🔹 SECCIÓN SERVICE MEJORADA CON PARTÍCULAS */
.service-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px;
    background: rgba(234, 217, 250, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Esta clase ahora es opcional, ya que la sección es visible por defecto */
.service-section.visible {
    opacity: 1;
    transform: translateY(0);
}


#particles-service {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}


.service-text, .service-image {
    position: relative;
    z-index: 2;
}


@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-text h2 {
    font-size: 42px;
    color: #4a0080;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 15px #aa69eb;
    opacity: 1;
    animation: fadeInSlide 1s ease-out forwards;
}


.service-text p {
    font-size: 18px;
    color: #6e33a8;
    margin-bottom: 20px;
    line-height: 1.5;
    opacity: 1;
    animation: fadeInSlide 1.2s ease-out forwards;
}


.service-text .cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #aa69eb, #bf8ef0);
    color: white;
    font-size: 18px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    animation: fadeInSlide 1.4s ease-out forwards;
}


.service-text .cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transition: left 0.5s ease;
}

.service-text .cta-button:hover::before {
    left: 100%;
}

.service-text .cta-button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #5401a8, #5f02bd);
    box-shadow: 0 0 20px #d4b4f5, 0 0 30px #aa69eb;
}


.service-image img {
    max-width: 480px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    display: block;
}


.service-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


@media (max-width: 992px) {
    .service-section {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .service-text {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .service-text h2 {
        font-size: 32px;
    }

    .service-text p {
        font-size: 16px;
    }

    .service-image img {
        max-width: 350px;
    }
}




.benefits-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #aa69eb, #bf8ef0);
    background-image: url('images/fondo-textura.jpg'); /* Asegúrate de subir la imagen */
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay; /* Mezcla la textura con el degradado */
}


/* 🔹 SECCIÓN DE BENEFICIOS */
.benefits {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1100px;
    width: 90%;
    text-align: center;
    gap: 50px;
}

/* 🔹 CADA BENEFICIO */
.benefit {
    flex: 1;
    max-width: 320px;
    text-align: center;
}

/* 🔹 ICONOS GRANDES Y EQUILIBRADOS */
.benefit i {
    font-size: 60px;
    color: white;
    margin-bottom: 15px;
}

/* 🔹 TÍTULO DEL BENEFICIO */
.benefit h3 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
    text-transform: uppercase;
    color: white;
}

/* 🔹 TEXTO DESCRIPTIVO */
.benefit p {
    font-size: 14px;
    color: #ead9fa;
    max-width: 280px;
    margin: 0 auto;
}

/* 🔹 RESPONSIVE PARA PANTALLAS PEQUEÑAS */
@media (max-width: 900px) {
    .benefits {
        flex-direction: column;
        gap: 40px;
        padding: 40px 5%;
    }

    .benefit {
        max-width: 100%;
    }

    .benefit i {
        font-size: 50px;
    }

    .benefit h3 {
        font-size: 18px;
    }

    .benefit p {
        font-size: 13px;
    }
}







/* 🔹 CONTENEDOR PRINCIPAL */
.main-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* 🔹 CONTENEDOR PRINCIPAL DE FILTROS */
.filters-container {
    width: 100%;
    max-width: 300px;
    background: #f8f2ff; /* Lila suave */
    border-radius: 16px;
    padding: 20px;
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* 🔹 TÍTULO DE FILTROS */
.filters-container h2 {
    font-size: 20px;
    color: #4a0080;
    font-weight: bold;
    text-align: center;
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* 🔹 GRUPOS DE FILTROS */
.filter-group {
    background: white;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
}

/* 🔹 TÍTULO DE CADA FILTRO */
.filter-group label {
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: #4a0080;
    margin-bottom: 6px;
}

/* 🔹 CHECKBOXES PERSONALIZADOS */
.filter-group input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #aa69eb;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
    margin-right: 8px;
    cursor: pointer;
}

/* 🔹 CHECKBOX MARCADO */
.filter-group input[type="checkbox"]:checked {
    background-color: #aa69eb;
    border-color: #bf8ef0;
}

/* 🔹 ICONO CHECK DENTRO DEL CHECKBOX */
.filter-group input[type="checkbox"]::after {
    content: "✔";
    position: absolute;
    top: -2px;
    left: 4px;
    font-size: 14px;
    color: white;
    display: none;
}

/* 🔹 MOSTRAR ICONO AL ESTAR MARCADO */
.filter-group input[type="checkbox"]:checked::after {
    display: block;
}

/* 🔹 LISTA DE OPCIONES DE FILTROS */
.checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 🔹 BOTÓN DE APLICAR FILTROS */
.apply-filters-btn {
    width: 100%;
    background: linear-gradient(90deg, #aa69eb, #bf8ef0);
    color: white;
    font-size: 16px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* 🔹 EFECTO HOVER EN EL BOTÓN */
.apply-filters-btn:hover {
    transform: scale(1.03);
    background: linear-gradient(90deg, #bf8ef0, #aa69eb);
    box-shadow: 0 0 12px #d4b4f5;
}

/* 🔹 RESPONSIVE: AJUSTES PARA PANTALLAS PEQUEÑAS */
@media (max-width: 768px) {
    .filters-container {
        max-width: 100%;
        text-align: center;
    }

    .filter-group {
        text-align: left;
    }

    .apply-filters-btn {
        font-size: 14px;
    }
}


/* 🔹 SECCIÓN DE PRODUCTOS (DERECHA) */
.products-container {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

/* 🔹 GRID DE PRODUCTOS */
.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 20px;
    padding: 20px;
}

/* 🔹 ESTILO DE LOS PRODUCTOS */
.product {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #d1b3ff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 🔹 HOVER EN LOS PRODUCTOS */
.product:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 🔹 IMÁGENES DE PRODUCTOS UNIFORMES */
.product img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 5px;
}

/* 🔹 PRECIO DEL PRODUCTO */
.price {
    font-size: 18px;
    font-weight: bold;
    color: #4a0080;
}

/* 🔹 BOTÓN DE CARRITO */
.add-to-cart {
    background: #7d3cff;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    width: 100%;
    margin-top: auto;
}

.add-to-cart:hover {
    background: #5a1fcc;
}

/* 🔹 RESPONSIVE: 2 COLUMNAS EN TABLETS */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .filters-container {
        width: 100%;
        position: relative;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 🔹 RESPONSIVE: 1 COLUMNA EN CELULARES */
@media (max-width: 600px) {
    .products {
        grid-template-columns: 1fr;
    }
}



.banner-section {
    width: 80%; /* Reduce el tamaño en ancho */
    height: 200px; /* Reduce la altura */
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}




/* 🔹 SECCIÓN DE CONTACTO */
.contact-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 5%;
    background: transparent;
    overflow-x: hidden; /* 🔹 Evita la expansión de la página */
}

/* 🔹 CONTENEDOR PRINCIPAL (Mejorado visualmente) */
.contact-container {
    display: flex;
    max-width: 1000px; /* 🔹 Mantiene el tamaño dentro de la pantalla */
    width: 100%;
    background: white;
    border-radius: 16px; /* 🔹 Bordes más suaves */
    padding: 50px; /* 🔹 Espaciado interno más equilibrado */
    gap: 40px;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1); /* 🔹 Sombra sutil */
    transition: all 0.3s ease-in-out;
}

/* 🔹 EFECTO HOVER SUAVE */
.contact-container:hover {
    transform: translateY(-3px);
    box-shadow: 0px 12px 35px rgba(0, 0, 0, 0.15);
}

/* 🔹 SECCIÓN DE TEXTO */
.contact-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

/* 🔹 ETIQUETA PEQUEÑA ARRIBA DEL TÍTULO */
.tag {
    display: inline-block;
    background: #d48ed9;
    color: white;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* 🔹 EVITAR QUE SE EXPANDA */
body, html {
    overflow-x: hidden; /* 🔹 Evita cualquier crecimiento horizontal inesperado */
    max-width: 100%; /* 🔹 Se asegura de que no crezca más de la pantalla */
}

/* 🔹 TÍTULO */
.contact-info h2 {
    font-size: 26px;
    font-weight: bold;
    color: #4a0080;
    margin-bottom: 12px;
}

/* 🔹 TEXTO DESCRIPTIVO */
.contact-info p {
    font-size: 16px;
    color: #5a3a7d;
    line-height: 1.6;
}

/* 🔹 FORMULARIO */
.contact-form {
    flex: 1;
    min-width: 0;
}

/* 🔹 CAMPOS DEL FORMULARIO */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #bf8ef0;
    border-radius: 8px; /* 🔹 Bordes más suaves */
    font-size: 16px;
    color: #4a0080;
    background: white;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
}

/* 🔹 EFECTO HOVER EN INPUTS */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #aa69eb;
    box-shadow: 0px 0px 10px rgba(170, 105, 235, 0.4);
}

/* 🔹 BOTÓN MEJORADO */
.contact-form button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #aa69eb, #bf8ef0);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

.contact-form button:hover {
    background: linear-gradient(90deg, #bf8ef0, #aa69eb);
    transform: scale(1.04);
    box-shadow: 0px 5px 15px rgba(170, 105, 235, 0.3);
}

/* 🔹 RESPONSIVE PARA MÓVILES */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .tag {
        margin: 0 auto;
    }
}


/* 🔹 ESTILOS GENERALES DEL FOOTER */
.footer {
    background: linear-gradient(135deg, #4a0080, #7d3cff);  /* Degradado morado */
    color: white;
    padding: 50px 0;
    font-family: Arial, sans-serif;
}

/* 🔹 CONTENEDOR PRINCIPAL */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

/* 🔹 SECCIONES DEL FOOTER */
.footer-section {
    flex: 1;
    margin: 0 20px;
}

/* 🔹 LOGO */
.footer-logo {
    width: 150px;
    margin-bottom: 10px;
}

/* 🔹 TITULOS */
.footer-section h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #d4b4f5;
}

/* 🔹 TEXTO */
.footer-section p {
    font-size: 14px;
    color: #ead9fa;
}

/* 🔹 ENLACES RÁPIDOS */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    text-decoration: none;
    color: #ead9fa;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #bf8ef0;
}

/* 🔹 FORMULARIO DE SUSCRIPCIÓN */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 🔹 INPUT DE EMAIL */
.subscribe-form input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #bf8ef0;
    background: white;
    color: #4a0080;
    transition: 0.3s;
}

/* 🔹 EFECTO EN INPUT */
.subscribe-form input:focus {
    border-color: #aa69eb;
    box-shadow: 0 0 10px #d4b4f5;
}

/* 🔹 BOTÓN DE SUSCRIPCIÓN */
.subscribe-form button {
    background: linear-gradient(90deg, #aa69eb, #bf8ef0);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* 🔹 EFECTO HOVER EN BOTÓN */
.subscribe-form button:hover {
    background: linear-gradient(90deg, #bf8ef0, #aa69eb);
    transform: scale(1.05);
}

/* 🔹 REDES SOCIALES */
.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: white;
    font-size: 22px;
    margin-right: 12px;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* 🔹 EFECTO HOVER EN ICONOS */
.social-icons a:hover {
    color: #bf8ef0;
    transform: scale(1.2);
}

/* 🔹 COPYRIGHT */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 🔹 RESPONSIVE PARA MÓVILES */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    .social-icons a {
        font-size: 24px;
    }
}

/* --- Language Selector Styles --- */
.language-selector {
  position: relative; /* Necesario para posicionar el menú desplegable */
  display: inline-block; /* O ajusta según tu layout */
  margin-left: 20px; /* Espacio respecto a otros elementos del nav */
}

#language-selector-button {
  background-color: transparent; /* O el color que prefieras */
  color: #fff; /* Ajusta al color de texto de tu navbar */
  border: 1px solid #ccc;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px; /* Ajusta tamaño del icono si es necesario */
  border-radius: 4px;
  line-height: 1; /* Ayuda a centrar verticalmente el icono */
}

#language-selector-button i {
    vertical-align: middle; /* Alinea mejor el icono */
}

#language-selector-button:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Efecto hover sutil */
}

.language-options {
  display: none; /* Oculto por defecto */
  position: absolute;
  background-color: white;
  min-width: 100px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1001; /* Asegura que esté sobre otros elementos, incluso navbar si es fixed */
  right: 0; /* Alinea a la derecha del botón */
  border-radius: 4px;
  border: 1px solid #ddd;
  margin-top: 5px; /* Pequeño espacio bajo el botón */
}

.language-options a {
  color: black;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.language-options a:hover {
  background-color: #f1f1f1;
}

/* Clase para mostrar el menú */
.language-options.show {
  display: block;
}

/* Ajustes para asegurar que el selector esté bien posicionado en tu navbar */
.navbar {
    display: flex; /* Asegura flexbox para alinear items */
    align-items: center; /* Centra verticalmente los items */
    /* Asegúrate que otros estilos no interfieran */
}

.nav-links {
    margin-left: auto; /* Empuja los links a la izquierda si es necesario */
    /* O ajusta márgenes como necesites */
}

/* Asegúrate de que el h1 añadido tenga espacio */
main h1, /* Si tienes main */
body > h1 { /* Si el h1 está directo en body */
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center; 
}

/* --- Nuevos estilos para el navbar y el dropdown --- */

/* Selector de idioma mejorado */
.lang-selector {
    margin-left: 20px;
    position: relative;
}

/* Estilo del dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Botón de toggle para el dropdown */
.dropdown-toggle {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    position: relative;
    z-index: 2;
}

.dropdown-toggle:hover, .dropdown-toggle:focus {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(170, 105, 235, 0.5);
    outline: none;
}

/* Menú dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1;
}

/* Mostrar el menú cuando se hace hover o focus en el dropdown */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

/* Elementos del dropdown */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #4a0080;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f2ff;
}

/* Estilo para el idioma activo */
.dropdown-item.active {
    background-color: #f0e6ff;
    font-weight: bold;
    position: relative;
}

.dropdown-item.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    color: #7d3cff;
}

/* Íconos de banderas */
.flag-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(74, 0, 128, 0.95);
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }
    
    .lang-selector {
        margin-right: 15px;
    }
}

/* Estilos para el logo en el navbar */
.navbar-logo {
    height: 45px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

