html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #218ed1d3;
}

.header-blanco .nav-link,
.header-blanco h1,
.header-blanco i {
    color: white !important;
}

.icons {
    margin-left: 150px;
    display: flex;
}

/*apartado de css de carrito de compras */

.list-group-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.input-group .btn {
    min-width: 36px;
}

.seccion-flotante {
    background-color: rgba(255, 255, 255, 0.95); /* Fondo blanco con un poco de transparencia */
}

.category-icons img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}

    .category-icons img:hover {
        transform: scale(1.1);
    }

.main-img-container {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}
.main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

    .main-img:hover {
        transform: scale(1.03);
    }

.thumb-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .thumb-img:hover {
        transform: scale(1.1);
        border: 2px solid black;
    }

.color-box {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .color-box:hover {
        transform: scale(1.1);
    }

.size-btn.active {
    background-color: #000;
    color: #fff;
    border: none;
}

.add-to-cart {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .add-to-cart:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

.product-card img {
    height: 200px;
    object-fit: contain;
}

.fondo-pagina {
    background-image: url('../Images/PageImages/fondoPrincipal.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding-top: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.seccion-flotante {
    max-width: 1300px;
    width: 90%;
    background-color: rgba(255, 255, 255, 0.95);
}


.product-card {
    transition: transform 0.3s;
}

    .product-card:hover {
        transform: translateY(-5px);
    }

/*contacto*/
.contacto-section {
    background-color: #007bff;
    color: white;
    margin-top: 40px;
    margin-bottom: 40px;
}


textarea::placeholder {
    color: #777;
}

input::placeholder {
    color: #777;
}

/*form .btn {
    background-color: white;
    color: black;
    border: none;
    border-radius: 0.2rem;
}*/
/*--------------------------------------------*/
/*SOBRE NOSOTRSO*/
.sobre-nosotros {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0)), url('../Images/PageImages/sobreNosotros.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    flex: 1;
}

    .sobre-nosotros h2 {
        font-size: 2.5rem;
    }

    .sobre-nosotros p {
        font-size: 1rem;
        margin-top: 20px;
    }
/*--------------------------------------------------*/
/*APARTADO LOGIN ADMIN*/
.login-page {
    background-image: url('../Images/PageImages/fondoLogin.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    backdrop-filter: blur(4px);
}

.login-card {
    background: rgba(255, 255, 255, 0.671);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

    .login-card input::placeholder {
        color: #666;
        font-style: italic;
    }

.btnn-primaryy {
    background-color: #00aaff;
    border: none;
    transition: background-color 0.3s ease;
}

    .btnn-primaryy:hover {
        background-color: #008ecc;
    }
/*----------------------------------------*/


.footer {
    background-color: #218ed1d3;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

/* Contenedor del footer */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 180px;
}

/* Cada columna */
.footer-column {
    max-width: 300px;
}

    /* Títulos */
    .footer-column h5 {
        margin-bottom: 15px;
        font-size: 18px;
    }

    /* Lista de enlaces */
    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-column ul li {
            margin-bottom: 10px;
        }

    /* Enlaces */
    .footer-column a {
        color: white;
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-column a:hover {
            color: #f2c94c;
        }

/* Íconos sociales */
.social-icons a {
    color: white;
    font-size: 32px;
    margin: 0 10px;
    transition: transform 0.3s, color 0.3s;
}

    .social-icons a:hover {
        color: #f2c94c;
        transform: scale(1.2);
    }

.category-item {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
}

.category-tooltip {
    position: absolute;
    bottom: 110%; /* Coloca el recuadro encima */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 100;
}

.category-item:hover .category-tooltip {
    opacity: 1;
}
/* ------------------ RESPONSIVE DESIGN ------------------ */

/* Tablets y dispositivos medianos */
@media (max-width: 991px) {
    .footer-container {
        gap: 60px;
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        max-width: 90%;
        text-align: center;
    }

    .category-icons img {
        width: 50px;
        height: 50px;
    }

    .main-img {
        width: 100%;
        max-height: 300px;
        object-fit: contain;
    }

    .thumb-img {
        width: 70px;
        height: 70px;
    }

    .color-box {
        width: 26px;
        height: 26px;
    }

    .login-card {
        padding: 30px;
        max-width: 90%;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .seccion-flotante {
        width: 95%;
        padding: 10px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-column {
        text-align: center;
    }

    .category-icons img {
        width: 45px;
        height: 45px;
    }

    .thumb-img {
        width: 60px;
        height: 60px;
    }

    .color-box {
        width: 24px;
        height: 24px;
    }

    .main-img {
        max-height: 250px;
    }

    .product-card img {
        height: 150px;
    }

    .sobre-nosotros h2 {
        font-size: 2rem;
    }

    .sobre-nosotros p {
        font-size: 0.9rem;
    }

    .contacto-section {
        padding: 20px;
    }

    .social-icons a {
        font-size: 28px;
        margin: 0 5px;
    }

    .login-card {
        padding: 25px;
    }
}

/* Móviles muy pequeños */
@media (max-width: 480px) {
    .footer {
        padding: 30px 10px;
    }

    .footer-column h5 {
        font-size: 16px;
    }

    .category-icons {
        flex-direction: column;
        align-items: center;
    }

        .category-icons img {
            margin-bottom: 10px;
        }

    .main-img {
        max-height: 200px;
    }

    .thumb-img {
        width: 50px;
        height: 50px;
    }

    .contacto-section {
        font-size: 0.9rem;
    }
}
