/* Reset de márgenes y paddings */
* {
    margin: 20;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales (inspirados en Wallapop) */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5; /* Un gris claro similar al de Wallapop */
    color: #333;
}

/* Encabezado y navegación */
header {
    background-color: #fff; /* Fondo blanco */
    border-bottom: 1px solid #ddd; /* Separador sutil */
    padding: 10px 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Ancho máximo para el contenido */
    margin: 0 auto;
}

.logo {
    font-weight: bold;
    font-size: 24px;
    color: #ff6724; /* Naranja de Wallapop */
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin: 0 10px;
}

nav a {
    color: #555;
    text-decoration: none;
    font-weight: normal;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a.active {
    color: #ff6724;
    font-weight: bold;
    border-bottom: 2px solid #ff6724;
    background-color: #f0f2f5;
}

nav a:hover {
    background-color: #f0f2f5;
}

.contact-btn {
    background-color: #ff6724; /* Color naranja de Wallapop */
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #e05c1e;
}

/* Secciones de productos */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 40px;
}

.category-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

/* Estilos de la cuadrícula de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Estilos de las tarjetas de productos */
.product-card {
    background-color: #fff;
    border: none;
    border-radius: 8px; /* Bordes más redondeados */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra más pronunciada */
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
    cursor: pointer;
    overflow: hidden; /* Para que la imagen redondeada se vea bien */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.product-image img {
    width: 100%;
    height: 200px; /* Altura fija para las imágenes */
    object-fit: cover; /* Para que las imágenes no se deformen */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    margin: 0 0 5px;
    color: #333;
    font-weight: 600;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff6724; /* Naranja para el precio */
    margin: 0 0 10px;
}

.product-link {
    display: inline-block;
    color: #0ea5e9;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.product-link:hover {
    text-decoration: underline;
}

/* Clases de utilidad */
.hidden {
    display: none;
}

/* Pie de página */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-banner h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff6724; /* Naranja en hover */
}
/* Estilos para videos en las tarjetas de productos */
.product-image video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    background-color: #f0f0f0;
}

/* Asegurar que las imágenes mantengan el mismo tamaño */
.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Opcional: Ocultar controles en hover para mejor UX */
.product-image video:hover {
    cursor: pointer;
}

/* Para dispositivos móviles */
@media (max-width: 768px) {
    .product-image video,
    .product-image img {
        height: 180px;
    }
}
   .contact-btn-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999; /* Encima de todo */
}

.contact-btn {
    background-color: #ff652f;
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #e64a19;
}

        /* Estilos para videos en las tarjetas de productos */
        .product-image video {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 12px 12px 0 0;
            background-color: #f0f0f0;
        }

        /* Asegurar que las imágenes mantengan el mismo tamaño */
        .product-image img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 12px 12px 0 0;
        }

        /* Opcional: Ocultar controles en hover para mejor UX */
        .product-image video:hover {
            cursor: pointer;
        }

        /* Estilos adicionales para el menú hamburguesa */
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 10px;
            z-index: 1001;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background-color: #333;
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(-45deg) translate(-5px, 6px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(45deg) translate(-5px, -6px);
        }

        /* Estilos responsivos */
        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }

            nav {
                position: fixed;
                top: 0;
                right: -100%;
                width: 300px;
                height: 100vh;
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                backdrop-filter: blur(10px);
                transition: right 0.3s ease;
                z-index: 1000;
                box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            }

            nav.active {
                right: 0;
            }

            nav ul {
                flex-direction: column;
                padding-top: 80px;
                height: 100%;
                margin: 0;
            }

            nav ul li {
                margin: 0;
                width: 100%;
            }

            nav ul li a {
                display: block;
                padding: 20px 30px;
                color: white;
                text-decoration: none;
                border-bottom: 1px solid rgba(255,255,255,0.1);
                transition: all 0.3s ease;
                font-weight: 500;
            }

            nav ul li a:hover,
            nav ul li a.active {
                background: rgba(255,255,255,0.2);
                transform: translateX(10px);
            }

            .header-container {
                justify-content: space-between;
            }

            /* Para dispositivos móviles - videos e imágenes */
            .product-image video,
            .product-image img {
                height: 180px;
            }
        
            /* Overlay para cerrar el menú */
            .menu-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0,0,0,0.5);
                z-index: 999;
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
            }

            .menu-overlay.active {
                opacity: 1;
                visibility: visible;
            }
        }
