/* ======================
   ESTILOS GENERALES
====================== */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background: url('../img/fondo.webp') repeat;
    background-size: 150px 150px;
    background-color: rgba(255, 255, 255, 0.85);
    /* 🔹 Blanco con opacidad */
    background-blend-mode: lighten;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================
   ESTILOS PARA LA NAVBAR
========================== */
.navbar {
    height: 60px;
    /* Reduce la altura de la navbar */
    padding: 5px 0;
}

.navbar-brand img {
    height: 50px;
    /* Ajusta el tamaño del logo */
    width: auto;
}

.navbar-brand {
    position: absolute;
    top: 0px;
    max-height: 60px;
}

/* Ajusta el menú para que siempre esté alineado */
.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Espaciado entre los enlaces */
.navbar-nav .nav-link {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: white !important;
    padding: 8px 15px;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #ff6600 !important;
}

.navbar .container {
    padding: 0;
}

/* ==========================
   RESPONSIVE: MÓVILES
========================== */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        /* En móviles los enlaces se apilan */
        align-items: flex-start;
        width: 100%;
    }

    .navbar-nav .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px;
        font-size: 10px;
    }

    .navbar-nav {
        position: absolute;
        top: 15px;
    }

    .navbar-brand {
        position: absolute;
        top: 60px;
        left: -15px;
        /* transform: scaleX(-1); */
        background-color: #ffffffbb;
        border-radius: 0 50% 50% 50%;
        padding: 5px;
    }
}

/* ======================
   HEADER
====================== */
.header {
    background: none;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.mi-prueba {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/sky2.jpg') center/contain no-repeat;
    background-size: contain;
    /* Mantiene la proporción sin recortar */
    background-color: rgba(255, 255, 255, 0.5);
    /* Transparencia */
    z-index: -1;
    /* Poner detrás del contenido */
}

/* Pseudo-elemento para la imagen de fondo con blur */
.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/sky2.jpg') center/cover no-repeat;
    filter: blur(10px);
    /* Aplica el desenfoque solo a la imagen */
    z-index: -1;
    /* Coloca la imagen detrás del contenido */
}

.header h1 {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
}

/* 🔹 Estilo para el div dentro del header */
header>div {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    text-align: center;
    /* Asegura que el icono esté centrado */
}

/* 🔹 Ajustes para el ícono */
header>div .nav-link {
    display: inline-block;
    color: white;
    transition: color 0.3s ease-in-out;
}

header>div .nav-link:hover {
    color: #ff6600;
    /* Cambia el color al pasar el mouse */
}

/* ======================
   MEDIA QUERY PARA PANTALLAS PEQUEÑAS
====================== */
@media (max-width: 768px) {

    /* 🔹 En pantallas pequeñas, el header tendrá la imagen con cover */
    .header {
        background: url('../img/sky2.jpg') center/cover no-repeat;
    }

    /* 🔹 Elimina el fondo de .mi-prueba */
    .mi-prueba {
        background: none;
    }

    /* 🔹 Desactiva el pseudo-elemento con blur */
    .header::before {
        content: none;
    }
}

/* ======================
   SECCIONES GENERALES
====================== */
section {
    min-height: 100vh;
    padding: 60px 20px;
}

.bg-light {
    background-color: #f8f9fa !important;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

section p {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* ======================
   TARJETAS DE PRODUCTO
====================== */
.card {
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    height: 200px;
    object-fit: cover;
}

.card-body {
    text-align: center;
}

/* ======================
   FORMULARIO DE CONTACTO
====================== */
form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button.btn-primary {
    background-color: #007bff;
    color: white;
}

button.btn-primary:hover {
    background-color: #0056b3;
}

button.btn-secondary {
    background-color: #6c757d;
    color: white;
}

button.btn-secondary:hover {
    background-color: #5a6268;
}

/* 🔹 Aplica focus cuando se pasa el ratón */
.contact-form input:hover,
.contact-form textarea:hover {
    outline: 2px solid #ff6600;
    /* 🔹 Cambia el borde al pasar el ratón */
    transition: outline 0.2s ease-in-out;
}

/* 🔹 Mantiene el efecto cuando está en foco */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #ff6600;
    /* 🔹 Mantiene el borde cuando está activo */
    background: rgba(255, 102, 0, 0.1);
    /* 🔹 Suaviza el fondo */
}


/* ==========================
   ESTILOS DEL CARRUSEL PARA IMÁGENES PEQUEÑAS (250px)
========================== */
.carousel-container {
    width: 250px;
    /* Nuevo tamaño */
    height: auto;
    overflow: hidden;
    position: relative;
    margin: 40px auto 20px auto;
    border: solid 1px #ccc;
    border-radius: 5px;
    display: hidden;
    background-color: #f8f9fa;
}

.carousel-slides {
    display: flex;
    width: calc(250px * 5);
    /* Ajustado para 5 imágenes */
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 250px;
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    /* Mantiene la imagen y texto en columna */
    align-items: center;
    text-align: center;
}

.carousel-slide div {
    padding: 6px;
    width: 100%;
}

.carousel-slide h3 {
    margin: 4px 0;
    padding: 6px;
    background: #333;
    color: white;
    text-align: center;
    font-size: 16px;
}

.carousel-slide p {
    margin: 0;
    padding: 6px;
    background: #fff;
    color: #333;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
}

/* Ajustar tamaño de imagen para mantener proporciones */
.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 🔹 Estilos para los enlaces dentro del h3 */
.carousel-slide h3 a {
    color: white;
    /* Texto blanco */
    text-decoration: none;
    /* Sin subrayado */
    font-weight: bold;
    /* Negrita */
    transition: color 0.3s ease-in-out, text-decoration 0.3s ease-in-out;
}

/* 🔹 Cambia de color al pasar el mouse */
.carousel-slide h3 a:hover {
    text-decoration: underline;
    color: #ffcc00;
    /* Un amarillo suave al pasar el mouse */
}

/* ==========================
   NAVEGACIÓN CON RADIO BUTTONS
========================== */
.carousel-nav {
    text-align: center;
    margin-top: 8px;
}

.carousel-nav label {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #bbb;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-nav label:hover {
    background: #777;
}

/* ==========================
   CONTROL DEL CARRUSEL CON CSS (250px)
========================== */
input[type="radio"] {
    display: none;
}

#slide1:checked~.carousel-slides {
    transform: translateX(0);
}

#slide2:checked~.carousel-slides {
    transform: translateX(-250px);
}

#slide3:checked~.carousel-slides {
    transform: translateX(-500px);
}

#slide4:checked~.carousel-slides {
    transform: translateX(-750px);
}

#slide5:checked~.carousel-slides {
    transform: translateX(-1000px);
}

/* ======================
   MEDIA QUERY PARA PANTALLAS PEQUEÑAS
====================== */
@media (max-width: 768px) {
    #carousel-productos {
        display: block;
    }

    #tabla-productos {
        display: none;
    }
}

@media (min-width: 769px) {
    #carousel-productos {
        display: none;
    }

    #tabla-productos {
        display: table;
    }
}


/* ======================
   ESTILOS PARA LOS MODALES
====================== */

/* Ocultar todos los modales por defecto */
.contenido-oculto {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Mostrar el modal cuando se hace clic en el enlace */
#producto1:target,
#producto2:target,
#producto3:target,
#producto4:target,
#producto5:target {
    display: block;
}

/* Estilos del contenido del modal */
.modal-content {
    text-align: center;
}

.modal-header h5 {
    width: 100%;
    text-align: center;
}

/* Botón de cerrar */
.cerrar {
    position: absolute;
    top: -30px;
    right: -10px;
    text-decoration: none;
    font-size: 40px;
    color: black;
}

/* Hacer que el fondo de la página se oscurezca */
body:has(#producto1:target),
body:has(#producto2:target),
body:has(#producto3:target),
body:has(#producto4:target),
body:has(#producto5:target) {
    background: rgba(0, 0, 0, 0.5);
}

/* Cuando cualquier modal está abierto, desenfocar todas las secciones */
body:has(.contenido-oculto:target) section {
    filter: blur(5px);
}

/* Para pantallas pequeñas */
@media (max-width: 600px) {
    .contenido-oculto {
        width: 95%;
        max-width: 350px;
    }
}

/* 🔹 Cinta de oferta */
.oferta-cinta {
    position: absolute;
    top: 90px;
    left: 0px;
    background: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 20px;
    transform: rotate(45deg);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    animation: vibracion 10s infinite;
    /* 🔹 Se repite cada 10s */
}

/* 🔹 Animación de vibración */
@keyframes vibracion {

    0%,
    90% {
        transform: rotate(45deg);
        /* 🔹 Estado normal */
    }

    92% {
        transform: rotate(40deg);
    }

    94% {
        transform: rotate(50deg);
    }

    96% {
        transform: rotate(40deg);
    }

    98% {
        transform: rotate(50deg);
    }

    100% {
        transform: rotate(45deg);
        /* 🔹 Vuelve a su estado normal */
    }
}

.mi-oferta {
    position: relative;
    display: block;
    z-index: 1;
    max-width: 400px;
    width: 100%;
    border: solid 1px #ccc;
    border-radius: 5px;
    padding: 30px 15px;
    text-align: center;
    margin: 0 auto;
    background-color: #f8f9fa;
}

.mi-oferta h5,
.mi-oferta p {
    margin-bottom: 20px;
    color: #333;
}

#categorias-zapatillas {
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    /* Evita que la imagen sobresalga */
}

#categorias-zapatillas img {
    transition: transform 0.3s ease-in-out;
}

/* 🔹 Cuando el ratón pasa por encima, la imagen se amplía y se mueve su centro */
#categorias-zapatillas:hover img {
    transform: scale(2);
    animation: moverZoom 15s infinite alternate ease-in-out;
    /* 🔹 Movimiento fijo */
}

/* 🔹 Animación para mover el centro del zoom */
@keyframes moverZoom {
    0% {
        transform-origin: top left;
    }

    25% {
        transform-origin: top right;
    }

    50% {
        transform-origin: center center;
    }

    75% {
        transform-origin: bottom left;
    }

    100% {
        transform-origin: bottom right;
    }
}

/* ==========================
   EFECTO PARALLAX
========================== */
.parallax {
    background: url('../img/fondo.webp') repeat;
    background-size: 150px 150px;
    background-color: rgba(255, 255, 255, 0.85);
    background-blend-mode: lighten;
    height: 100px;
    /* Ajusta la altura según sea necesario */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-attachment: fixed;
    /* 🔹 Activa el efecto parallax */
}

/* ==========================
   EFECTO TILT
========================== */
.tilt:hover {
    transform: perspective(100px) rotateX(5deg) rotateY(5deg);
    transition: transform 0.3s ease-out;
}


@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.decoracion {
    animation: floating 3s infinite ease-in-out;
}