:root {
    --primary: #000000;
    --secondary: #620d9b;
    --accent: #0000009f;
    --light: #ecf0f1;
    --dark: #000000;
    --success: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

header {
    background-color: var(--primary);
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #222;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    aspect-ratio: 16/9;
    z-index: 1;
    overflow: hidden;
    background: #222;
}

.slider-image {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4); /* Ligeramente más oscuro para mejor contraste */
    transition: opacity 1.5s;
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Aplicamos la animación de zoom lento */
    animation: kenburns-zoom 20s ease-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 0 16px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Fuente fluida */
    margin-bottom: 20px;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem); /* Fuente fluida */
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #a259e6;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 2.5rem); /* Fuente fluida */
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Animación de zoom lento para el fondo del hero */
@keyframes kenburns-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

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

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.product-info p {
    margin-bottom: 15px;
    color: #666;
}

.product-info .price {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: block;
}

.gallery {
    background-color: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 16/9; /* Para imágenes 1920x1080 */
    background: #fff;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rellena el espacio, mantiene proporción 16:9 */
    display: block;
    transition: transform 0.5s;
    background: #fff;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 30px;
}

.contact {
    background-color: var(--primary);
    color: white;
}

.contact .section-title h2 {
    color: white;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-form button {
    background-color: var(--secondary);
    color: white;
}

footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 0 30px #000;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--secondary);
}

/* Más pegada al borde inferior */
    right: 2px;    /* Más pegada al borde derecho */
    z-index: 3000;
    background: transparent; /* Sin fondo */
    box-shadow: none;        /* Sin sombra */
    border: none;            /* Sin borde */
    padding: 0;
    width: 100px;   /* Más grande */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}





/* Mostrar solo la imagen de PC en escritorio */
.banner-pc {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}
.banner-mobile {
    display: none;
}

@media (max-width: 600px) {
    .banner-pc {
        display: none;
    }
    .banner-mobile {
        display: block;
        width: 100%;
        max-height: 220px;
        object-fit: cover;
    }
}

.bodydiv {
    align-items: center;
   
    display: flex;
    justify-content: center;
}

/* Animación */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); }
}

/* Estilos del slider */
.slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%; /* Cambiado para ser responsive */
    border-radius: 25px;
}

/* Sombras de los extremos */
.slider::before,
.slider::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

/* Track */
.slider .slide-track {
    animation: scroll 30s linear infinite;
    display: flex;
    width: calc(250px * 14); /* JS se encarga de duplicar, esto asegura el espacio */
}

/* Slides */
.slider .slide {
    height: 100px;
    width: 250px;
}

/* --- Media Queries para Responsividad --- */

/* Tablets y dispositivos medianos (hasta 992px) */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px; /* Altura del header */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease-in-out;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        margin-top: 30px;
    }

    .slider {
        width: 95%;
    }
}

/* Móviles grandes (hasta 768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-content {
        padding: 0 24px;
    }

    .services-grid,
    .products-grid,
    .gallery-grid {
        grid-template-columns: 1fr; /* Una columna para móviles */
        gap: 24px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero {
        min-height: 70vh;
    }

    
}


/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    
}
