@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/*
font-family: 'Times New Roman', Times, serif;
font-family: 'Poppins', sans-serif;
*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body{
    font-family: 'Times New Roman', Times, serif,;
}

img{
    max-width: 100%;
    height: auto;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
}

.header{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-image: url(fondos/1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(5px);
    padding: 70px 0;
}

.menu{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0);
}

.menu .navbar ul li {
    position: relative;
    float: left;
}

.menu .navbar ul li a {
    font-size: 18px;
    color: #02290e;
    padding: 20px;
    display: block;
    text-align: center;
}

#menu {
    display: none;
}

.menu-icono{
    width: 25px;
}

.menu label{
    cursor: pointer;
    display: none;
}

.submenu{
    position: relative;
}

.submenu #carrito{
    display: none;
}

.submenu:hover #carrito{
    display: block;
    position: absolute;
    right: 0;
    backdrop-filter: blur(10px);
    top: 100%;
    z-index: 1;
    background-color: #4e4b5076;
    padding: 20px;
    min-width: 400px;
}

table{
    width: 100%;
}

th, td{
    color: #ffffff;
}

.borrar{
    background-color: #111111;
    border-radius: 50%;
    padding: 5px 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.header-content{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0 200px;
}

.header h1{
    font-size: 20px;
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
}

.header-img{
    flex-basis: 50%;
    text-align: center;
    margin-bottom: 25px;;
}

.header-txt{
    flex-basis: 50%;
    text-align: center;
}

.header-txt h1{
    display: flex;
    font-size: 90px;
    text-transform: uppercase;
    line-height: 1;
    color: #02290e;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 15px;
}

.header-txt p{
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ffffff;
}

.servicio{
    padding: 50px 0 100px 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-content: space-between;
    align-items: center;
    text-align: center;
    
}

.servicio-1{
    flex-basis: calc(33.3% - 30px);
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    padding: 25px;
    background-color: #f5f5f5;
}

.servicio-txt h3{
    font-size: 20px;
    color: #02290e;
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
    text-align: center;
}

.servicio-txt a{
    font-size: 16px;
    color: #ffffff;
    text-align: center;
}

.btn-1{
    display: inline-block;
    padding: 11px 25px;
    background-color: #02290e;
    color: #ffffff;
    border-radius: 5px;
}

.btn-2{
    display: inline-block;
    padding: 7px 10px;
    background-color: #02290e;
    color: #ffffff;
    border-radius: 5px;
    font-size: 15px;
}

.products{
    padding: 50px 0;
    text-align: center;
}

.products h2{
    color: #02290e;
    font-family: 'Times New Roman', Times, serif;
    font-size: 50px;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.product-content{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.product{
    text-align: center;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.product img{
    width: 250px;
    height: 370px;
    margin-bottom: 20px;
}

.product h3{
    font-size: 20px;
    color: #02290e;
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product .precio{
    font-size: 16px;
    color: #111111;
    margin-bottom: 5px;
}

.precio{
    font-weight: 800;
}

.icons{
    padding: 50px 0 100px 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-content: space-between;
    align-items: center;
    text-align: center;
    
}

.icon-1{
    flex-basis: calc(33.3% - 30px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    background-color: #f5f5f5;
}

.icon-txt h3{
    font-size: 20px;
    color: #02290e;
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
}

.icon-txt a{
    font-size: 16px;
    color: #ffffff;
    text-align: center;
}

.footer{
    padding: 50px 0;
    background-color: #02290e;
}

.footer-content{
    display: flex;
    justify-content: space-between;
}

.link h3{
    font-size: 18px;
    color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.link a{
    font-size: 16px;
    color: #dcdcdc;
    display: block;
    margin-bottom: 10px;
    font-family: 'Times New Roman', Times, serif;
}

@media(max-width:991px){

    .menu {
        padding: 20px;
    }

    .menu label{
        display: block;
    }

    .menu .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #181818;
        display: none;
    }

    .menu .navbar ul li{
        width: 100%;
    }
    
    .menu .navbar ul li a{
        color: #ffffff;
    }

    #menu:checked ~ .navbar{
        display: initial;
    }

    .logo{
        display: none;
    }

    .submenu:hover #carrito{
        min-height: 100%;
    }

    .header{
        min-height: 0vh;
    }

    .header-content{
        padding: 50px 0;
        flex-direction: column;
    }
    
    .header-txt{
        flex-basis: 100%;
        text-align: center;
    }

    .header-txt h1{
        font-size: 70px;
    }

    .ofert{
        padding: 30px 30px 0 30px;
        flex-direction: column;
    }

    .ofert-1{
        margin-bottom: 30px;
    }

    .products{
        padding: 0 30px 30px 30px;
    }

    .products h2{
        margin-bottom: 30px;
    }

    .product-content{
        grid-template-columns: repeat(1,1fr);
        gap: 30px;
    }

    .product img{
        width: 200px;
        height: 200px;
    }

    .icons{
        padding: 30px;
        flex-direction: column;
    }

    .icon-1{
        margin-bottom: 30px;
    }

    .footer{
        padding: 30px;
    }

    .footer-content{
        flex-direction: column;
        text-align: center;
    }

}

/* Estilos para el Modal (Lightbox) */
.modal {
    Display: none; /* Oculto por defecto */
    Position: fixed;
    z-index: 100; /* Asegura que esté por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Efecto de difuminado y oscurecimiento del fondo */
    Background-color: rgba(0, 0, 0, 0.6); 
    Backdrop-filter: blur(10px); 
    Justify-content: center;
    Align-items: center;
}

.modal-content {
    Background-color: #fefefe;
    Padding: 20px;
    Border: 1px solid #888;
    Width: 90%;
    Max-width: 900px;
    Border-radius: 10px;
    Position: relative;
}

.modal-container {
    Display: flex;
    Align-items: center;
    Justify-content: space-between;
}

.product-details {
    Display: flex;
    Gap: 30px;
    Width: 100%;
}

.product-image-area {
    Flex-basis: 50%;
    Text-align: center;
}

#modal-product-img {
    Max-width: 100%;
    Max-height: 400px;
    Object-fit: contain;
}

.product-info-area {
    Flex-basis: 50%;
    Display: flex;
    Flex-direction: column;
    Gap: 15px;
}

.close-btn {
    Color: #aaa;
    Float: right;
    Font-size: 28px;
    Font-weight: bold;
    Position: absolute;
    Top: 10px;
    Right: 20px;
    Cursor: pointer;
}

.nav-arrow {
    Background: #02290e;
    Color: white;
    Border: none;
    Padding: 10px;
    Cursor: pointer;
    Font-size: 24px;
    z-index: 110;
    margin: 0 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mostrar la modal */
.modal.open {
    Display: flex;
}

/* Media query para móviles */
@media(max-width: 768px) {
    .product-details {
        Flex-direction: column;
        Text-align: center;
    }
    .modal-content {
        Padding: 10px;
    }
    .nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}
