/* Estilos generales del header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, rgb(107, 160, 198), #021c43f0);
    padding: 10px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.5s;
    z-index: 1000;
}

/* Logo */
.logo img {
    height: 60px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Estilos para la navegación */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: rgb(208, 212, 208);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 25px;
    transition: background 0.3s, color 0.3s;
}
/* Ocultar los submenús por defecto */
.nav-links .dropdown {
    display: none;
    position: absolute;
    background: linear-gradient(180deg, #6898cb, #002f6c);
    top: 100%;
    left: 0;
    width: 180px;
    padding: 10px 10px;
    list-style: none;
    border-radius: 5px;
}

/* Mostrar el menú cuando el mouse está encima */
.nav-links li:hover .dropdown {
    display: block;
}

.nav-links .dropdown li {
    padding: 5px 10px;
}

.nav-links .dropdown li a {
    color: rgb(255, 255, 255);
    display: block;
    transition: background 0.3s;
}

.nav-links .dropdown li a:hover {
    background: #0056b3;
    border-radius: 3px;
}

.nav-links li a:hover {
    background: #78bed3;
    color: rgb(34, 44, 52);
    border-radius: 5px;
}

/* Estilos para el menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 10px;
    transition: 0.4s;
}

/* Animaciones del menú hamburguesa */
.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menú desplegable para móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Mostrar icono del menú en móviles */
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: linear-gradient(180deg, #6898cb, #002f6c);
        flex-direction: column;
        align-items: center;
        display: none; /* Ocultar menú por defecto */
        padding: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 10px;
    }
}



/* Cuando el header sea transparente */
header.transparent {
    background: rgba(0, 0, 0, 0.3); /* Se vuelve más transparente al hacer scroll */
}

.products-section {
    text-align: center;
    padding: 60px 5%;
    background-color: #f9f9f9;
    width: 100%;
    margin: 0 auto;
}
.products-section {
    margin-top: 120px; /* O el valor que necesites */
}
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.product-card {
    position: relative; /* Necesario para que el badge se posicione dentro */
}

.product-image img {
    width: 100%;
    max-width: 220px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content h3 {
    font-size: 1.4rem;
    color: #345c8c;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #62c4e1;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.product-btn:hover {
    background: #48b0ce;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    width: 100%;
}
.product-badge {
    position: absolute;
    bottom: 15px; /* ABAJO */
    left: 15px;   /* IZQUIERDA */
    top: auto;    /* Anula cualquier top anterior */
    background: #ff5e5e;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: bold;
}
.category-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #6c93bc;
    text-align: center;
}
.product-grid {
    display: grid;
    grid-template-areas:
        "item1 item2"
        "item3 item3"
        "item4 item5"
        "item6 item6";
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}
.product-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 380px;
}
.product-item:hover {
    transform: translateY(-5px);
}
.product-item img {
    width: 100%;
    max-width: 220px;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}
.product-info {
    font-size: 16px;
    color: #878787;
    text-align: center;
    max-width: 80%;
}
.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
.product-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #de19b4;
    text-align: center;
    width: 100%;
}
@media (max-width: 768px) {
    .product-grid {
        grid-template-areas:
            "item1"
            "item2"
            "item3"
            "item4"
            "item5"
            "item6";
        grid-template-columns: 1fr;
    }
}




/* Estilos de cada columna del footer */
.footer-column {
    flex: 1;
    min-width: 250px; /* Asegura que no sean demasiado pequeñas */
    padding: 10px;
    text-align: left;
}

/* Estilos para los títulos h3 */
.footer-column h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffde59; /* Amarillo para resaltar */
    margin-bottom: 15px;
    text-align: left; /* Asegura alineación izquierda */
}

/* Estilos para listas dentro del footer */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-column ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ffde59;
}

/* ===== ÍCONOS SOCIALES EN EL FOOTER ===== */
.social-icons {
    display: flex;
    justify-content: flex-start; /* Alinea los íconos a la izquierda */
    gap: 15px;
    margin-top: 10px;
}

.social-icons a img {
    height: 30px;
    width: 30px;
    transition: transform 0.3s;
}

.social-icons a img:hover {
    transform: scale(1.2);
}

/* ===== SECCIÓN INFERIOR DEL FOOTER ===== */
.footer-bottom {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #f5f5f5;
    background: linear-gradient(90deg, rgb(107, 160, 198), #021c43f0);
    padding: 10px 0;
    text-align: center;
}

/* ===== DISEÑO RESPONSIVO PARA MÓVILES ===== */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-column {
        text-align: left;
        width: 100%;
    }

    .social-icons {
        justify-content: flex-start;
    }
}