* {
    margin: 0px;
    padding: 0px;
}
header {
    background-color: burlywood;
    background-image: url(./assets/img/IMG_20250417_150131.jpg);
    /*background-size: contain;
    background-repeat: no-repeat;*/
    background-size: 100% 40%;
    background-size: contain;
    
}
body{
    background-color: rgb(199, 213, 119);
}
h1 {
    text-align: center;
    font-size: 52px;
    margin-bottom: 25px;
    color: rgb(49, 114, 114); 
}
h2{
    text-align: center;
    margin-top: 10px;
}

ul {
   display:flex;
    justify-content: space-around;
    flex-direction: row;
    list-style: none;
    color:rgb(178, 68, 68);
    
    li:hover{
        .na {
            display:contents;
            
        }
    }
}
li {
     flex:content;
    
}
 
     
.ico {
    width: 25px;;
    height: 25px;
}
.card {
    

    display: block;
    border: 1px  solid black;
    border-radius: 0.5rem;
    padding: 0.3rem;
    width: 350px;
    height:600px ;
    margin-top: 10px;
    margin-bottom: 20px;
    img {
        width: 100%;
    }
    video {
        width: 100%;
    }
    
}
.prod {
    border-radius: 05rem;
    width: 70%;
    height: 65%;

}
span {
    color: red;
    font-weight: bold;
    font-size: 1.25rem;
}
.btc {
    background-color: darkseagreen;
    border-radius: 0.2rem;
}

.art {
    
    display: flex;
    justify-content: space-around;
}
.conter{
    margin-bottom: 20px;
}
.slider-wrapper{
    position: relative;
    max-width: 85%;
    margin: auto;
    overflow: hidden;
}
     .slider{
    display: flex;
    aspect-ratio: 16/9;
   /* overflow-x:hidden ;c*/
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
box-shadow: 0  .25rem .5rem black;
border-radius: .5rem;
animation: autoSlider 35s infinite ease-in-out;
 }
 .slider img{
    flex: 1 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
    flex-shrink: 0;
 }

/* 4. Animación corregida para 7 imágenes */
@keyframes autoSlider {
    0%, 10% { transform: translateX(0); }
    14%, 24% { transform: translateX(-100%); }
    28%, 38% { transform: translateX(-200%); }
    42%, 52% { transform: translateX(-300%); }
    56%, 66% { transform: translateX(-400%); }
    70%, 80% { transform: translateX(-500%); }
    84%, 94% { transform: translateX(-600%); }
    100% { transform: translateX(0); }
}

/* Pausar la animación cuando el usuario pase el mouse */
.slider-wrapper:hover .slider {
    animation-play-state: paused;
}


 .slnav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    a{
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        background-color: coral;
        opacity: .75;
        transition: opacity ease 250ms;
    }
    
 } 
 .slnav a:hover{
        opacity: 100%;

    }  
form, input, textarea {
    width:90%;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    button{
        width: 40%;
        height: 2rem;
        font-size: 1rem;
        background-color: lightgreen;
    }
}
#contacto{
    background-color: rgb(255, 255, 136);
    p{
        font-size:larger;
        text-align: start;
        margin-bottom: 10px;
    }
}



footer{
    background-color: brown;
    position: relative;
    .ico{
     position: absolute;
     right: 50%;
    }
    .material-symbols-outlined{
        position: absolute;
        right: 40%;

    }
    #w{
       position: absolute;
        right: 60%;
 
    }
        
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }
    
    ul {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .slider-wrapper {
        max-width: 95%;
    }
}
/* Dispositivos Móviles (Teléfonos) */
@media only screen and (max-width: 1024px) {
    /* Ajusta el título para pantallas pequeñas */
    h1 {
        font-size: 32px;
    }

    /* Cambia el menú de horizontal a vertical */
    ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Las tarjetas ocupan el ancho completo */
    .art {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%; /* Se adapta al ancho de la pantalla */
        height: auto; /* Permite que el contenido crezca */
    }

    /* El slider ocupa más espacio en pantallas pequeñas */
    .slider-wrapper {
        max-width: 75%;
    }

    /* Centra el formulario y sus elementos */
    form, input, textarea {
        width: 100%;
    }
    
    /* Ajusta el footer para que no se encimen los iconos */
    footer {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 20px 0;
    }
    
    footer .ico, footer .material-symbols-outlined, footer #w {
        position: static; /* Quita el posicionamiento absoluto */
        transform: none;
    }
}