*{
    margin:0;
    padding:0;
    font-family: "Roboto", sans-serif;
}
/* Fondo general de la página */
body {
    background-image: url('images/background-image.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Estilo general para las secciones */
section {
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
    margin: 20px auto; /* Espaciado entre secciones */
    padding: 20px; /* Espaciado interno */
    /*border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.5); /* Sombra difusa */
    backdrop-filter: blur(10px); /* Difumina el fondo detrás de la sección */
    -webkit-backdrop-filter: blur(10px); /* Soporte para Safari */
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Transición suave */
}

/* Ajuste opcional para encabezados */
section h1, section h2 {
    margin-bottom: 20px; /* Espacio inferior adicional debajo de los encabezados */
}

/* Espaciado para contenedores internos */
section .container {
    padding: 20px;
}
.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)), url(images/background-image.png);
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 150px;

}
.nav-links{
    flex:1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px;
    position: relative;
}
.nav-links ul a{
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}
.nav-links ul li::after{
    content: "";
    width: 0px;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;

}
.text-box h1{
    font-size: 62px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 40px;
    color: #fff; 
}
.btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 10px;
    font-size: 14px;
    background: transparent;
    position: relative;
    cursor: pointer;
    
    text-align: center;
}
.btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}
nav .fa{
    display: none;
}

/*Seccion Slider*/
/* Ajustes para la sección Slider */
.slider {
    margin-top: 80px; /* Agrega un margen superior para separar del navbar */
    position: relative;
    width: 95%; /* Asegura que ocupe toda la anchura */
    height: 75vh; /* Ocupa toda la pantalla vertical */
    overflow: hidden;
}

/* Elimina bordes y ajusta la presentación */
.slider-container {
    margin-top: 0; /* Sin margen adicional */
    width: 100%; /* Asegura que ocupe todo el ancho */
    height: 50%; /* Asegura que ocupe todo el alto */
}

/* Estilo de cada imagen del slider */
.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta las imágenes al contenedor sin distorsionarlas */
    opacity: 0; /* Las imágenes están ocultas inicialmente */
    transition: opacity 1s ease-in-out;
}

/* La primera imagen será visible inicialmente */
.slider-image:first-child {
    opacity: 1;
}
/* Estilos para los botones de navegación */
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0); /* Fondo semitransparente */
    color: rgba(255, 255, 255, 0.418);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.prev-button {
    left: 20px; /* Posición izquierda */
}

.next-button {
    right: 20px; /* Posición derecha */
}

/* Sección de Productos Destacados */
.productos-destacados {
    text-align: center; /* Centra el título */
    margin: 40px 0; /* Espaciado alrededor de la sección */
}
.products-section h1 {
    text-align: center; /* Centra el texto horizontalmente */
    margin-bottom: 20px; /* Añade un espacio debajo del título */
    font-size: 2em; /* Ajusta el tamaño del texto (opcional) */
    color: #333; /* Cambia el color (opcional) */
}

.productos-destacados h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px; /* Espacio entre el título y los productos */
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px #0001;
    overflow: hidden;
    justify-content: flex-start;
    min-height: 380px; /* Ajustá a tu gusto, hace que todas sean iguales */
    position: relative;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Imagen arriba, bien proporcionada: */
.image-container {
    width: 100%;
    aspect-ratio: 1/1; /* Hace la imagen cuadrada y nunca cortada en altura */
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* o contain si preferís que no corte nunca nada */
    display: block;
}

/* Info del producto: */
.info-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;  /* El info-container toma el resto de la tarjeta */
    align-items: center;
    padding: 16px 8px 18px 8px;
    background: #fff;
    justify-content: flex-start;
    min-height: 120px;
}
/* Asegura que el botón SIEMPRE esté abajo de todo: */
.product-actions {
    margin-top: auto;   /* Lo empuja al fondo del info-container */
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Botón ancho y bonito: */
.more-details {
    width: 90%;
    padding: 11px 0;
    font-size: 16px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 auto 0 auto;
    box-shadow: 0 1px 5px #0002;
    transition: background 0.2s;
}
.more-details:hover {
    background: #1158b0;
}

/* Sección Nosotros */
.nosotros {
    padding: 20px 0;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nosotros-container {
    display: flex;
    width: 100%;
    max-width: 1200px; /* Limita el ancho máximo de las imágenes */
    height: 210px; /* Altura máxima total de la sección */
    gap: 10px; /* Espaciado entre imágenes */
}

/* Estilo para cada item */
.nosotros-item {
    flex: 1; /* Divide el espacio igualmente entre las imágenes */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 100%;
}

/* Imágenes con difuminado */
.nosotros-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen al contenedor sin distorsionarla */
    filter: blur(2px); /* Difuminado del 30% */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nosotros-item:hover .nosotros-img {
    transform: scale(1.05); /* Efecto de zoom al pasar el mouse */
    filter: blur(20%); /* Reducir el difuminado al hacer hover */
}

/* Botón con fondo negro y texto blanco */
.btn-filled {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: white;
    border: 2px solid white; /* Contorno blanco */
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-filled:hover {
    background: white;
    color: black;
    border-color: black;
}

/* Texto informativo */
.info-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7); /* Fondo semitransparente negro */
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* ---- Tutorial ----*/
.tutorial{
    width: auto;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
.tutorial h1{
    font-size: 36px;
    font-weight: 600;
}
.tutorial p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.tutorial .row{
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap onto multiple lines */
    gap: 20px; /* Adjust the gap size as needed */
}
.tutorial-col{
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 2%;
    padding: 20px 20px 12px 12px;
    box-sizing: border-box;
}
.tutorial h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.tutorial-col:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

/*---------------- Productos -------------------*/
.sub-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)), url(images/background-image.png);
    background-position: center;
    background-size: cover;
    text-align: center;
}
.sub-header h1{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;

}
.productos{
    width: 80%;
    height: 10%;
    margin: auto;
    padding-top: 100px;
    
}
.tienda-contenido{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px, 300px));
    gap: 1.5rem; /* Adjust the gap size as needed */
}
.productos-box{
    position: relative;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 2%;
    padding: 20px 20px 12px 12px;
    box-sizing: border-box;
}
.productos-box:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
    border: 1px solid #000000;
    transition:0.4s;
}
.productos-box img{
    width: 100%;
    height: 220px;
    margin-bottom: 0.5rem;
}
.product-tittle{
    font-size: 1.1rem;
    font-weight: 600;  
    text-transform: uppercase;
    margin-bottom: 3.5rem;

}
.price{
    font-weight: 600;
    margin-bottom: 0.5rem;

    position: absolute;
    left: 2.5rem;
    bottom: 0.5rem;
}
.comprar-btn{
    display: inline-block;
    text-decoration: none;
    color: #000000;
    border: 1px solid #00000063;
    padding: 12px 12px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    border-radius: 5%;

    position: absolute;
    right: 1.5rem;
    bottom: 0.5rem;
}
.comprar-btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}
@media (max-width: 480px) {
    body {
        padding: 0;
        font-size: 15px;
        overflow-x: hidden;
    }
    .header {
        min-height: 60vh; /* Puede ser menos para ver más contenido sin scrollear */
        background-size: cover;
        background-position: center;
    }

    .nav-links {
        position: static; /* Asegura que el menú no se superponga raro */
        width: 100%;
        background: #fff; /* O tu color de fondo, para mayor contraste */
    }
    .nav-links ul {
        flex-direction: column; /* Stacking vertical en menú si aplica */
        gap: 4px;
    }
    .nav-links ul li {
        font-size: 14px;
        padding: 6px;
    }

    .text-box {
        width: 100%;
        top: 30%; /* Baja un poco la posición si lo ves cortado */
        left: 50%;
        transform: translateX(-50%);
        padding: 10px;
        text-align: center;
    }

    .text-box h1 {
        font-size: 22px;
        line-height: 1.1;
    }
    .text-box p {
        font-size: 14px;
        line-height: 1.3;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
        width: 90%; /* Botones más anchos, fácil de presionar */
        margin: 0 auto;
        display: block;
    }


    .slider {
        width: 85%;        
        height: 100%;   

        overflow: hidden;
        position: relative;
    }

    .slider-container {
        display: flex;
        width: 100%;
        max-width: 90%;
        height: 100%;
        max-height: 200px;    /* Limita la altura máxima */
        min-height: 120px;    /* Para pantallas muy chicas */
        overflow: hidden;
    }

    .slider-image {
        width: 100%;
        max-width: 100%;
        height: 100%;
        padding: auto;
        object-fit: cover;
        display: block;
        flex: 0 0 100%;
    }

.products-container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 6px;
  }
  .product-item {
    min-height: 0;
    padding-bottom: 12px;
  }
  .image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: auto;
    min-height: 0;
    max-height: 250px;
  }
  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }
  .info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    min-height: 0;
    justify-content: flex-start;
  }
  .product-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 0;
  }
  .more-details {
    width: 100%;
    padding: 11px 0;
    margin: 0;
    font-size: 16px;
  }
    .nosotros-container {
        flex-direction: column;
        gap: 10px;
        padding: 0 2px;
    }
    .tutorial-col {
        flex-basis: 100%;
        margin-bottom: 14px;
    }
}
