:root {
    --primary-color: #007aff; /* Azul tecnológico */
    --black: #000000;
    --white: #ffffff;
    --text-gray: #f5f5f7;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
}

/* --- Navegación --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

/* Clase que se activará con JS al hacer scroll */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 15px 5%;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- Hero Section --- */

/* --- Hero Section (Versión Definitiva con Cambio de Imagen) --- */
.hero {
    width: 100%;
    /* Usamos 100dvh para que se adapte perfecto a móviles modernos */
    height: 100dvh; 
    /* Altura mínima para que el contenido no se aplaste en pantallas muy chatas */
    min-height: 600px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
    overflow: hidden;

    /* ======================================================
       1. IMAGEN PARA ESCRITORIO (PANTALLAS GRANDES)
       imagen original ancha (paisaje)
    ====================================================== */
    background-image: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), /* Capa oscura para leer texto */
        url('https://images.unsplash.com/photo-1576013551627-0cc20b96c2a7?auto=format&fit=crop&w=1920&q=80'); /* <- TU FOTO ANCHA AQUÍ */
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease-in-out; /* Suaviza el cambio al redimensionar la ventana */
}


/* ======================================================
   2. MEDIA QUERY PARA MÓVILES (PANTALLAS PEQUEÑAS)
    Sobrescribimos la imagen.
====================================================== */
@media (max-width: 768px) {
    .hero {
        /* CAMBIO DE IMAGEN */
        background-image: 
            linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), /* Capa un poco más oscura en móvil */
            url('https://images.pexels.com/photos/136040/pexels-photo-136040.jpeg'); /* <- TU FOTO MÓVIL AQUÍ */
            
        /* Aseguramos que se centre bien */
        background-position: center top;
        
        /* En móviles a veces no necesitamos tanta altura mínima */
        min-height: unset;
    }

    /* Ajustes adicionales para que el texto se vea bien en móvil */
    .hero-content {
        padding: 0 20px;
        /* Subimos un poco el contenido para que no tape el centro de la foto vertical */
        transform: translateY(-20px); 
    }

    .hero h1 {
        font-size: 2rem; /* Título más pequeño */
        line-height: 1.1;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Oscurece la imagen para que el texto se lea bien */
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.tagline {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem; 
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Tamaño fluido */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}
/* --- Contenedor de Botones (Escritorio) --- */
.hero-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Usar gap es mejor que margins para separar elementos flex */
    margin-top: 40px;
}

/* --- Estilos base de los botones --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 16px 35px;
    border-radius: 50px; /* Estilo redondeado Samsung */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap; /* Evita que el texto se parta en dos líneas */
}

/* --- AJUSTE RESPONSIVO (Móvil) --- */
@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column; /* Apila los botones uno arriba del otro */
        gap: 15px; /* Espacio vertical entre ellos */
        width: 100%;
        padding: 0 40px; /* Margen a los lados para que no toquen las orillas */
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Que ocupen todo el ancho disponible */
        max-width: 320px; /* Pero con un límite para que no se vean gigantes */
        text-align: center; /* Texto centrado */
        margin: 0; /* Limpiamos cualquier margen previo */
        padding: 14px 20px; /* Un poco más delgados en móvil */
        font-size: 0.95rem;
    }

    .btn-secondary {
        margin-left: 0 !important; /* Forzamos a quitar el margen que pusimos en PC */
    }
}

/* --- Botones --- */
.btn-cta, .btn-primary {
    background: var(--black);
    color: var(--white);
    padding: 7px 17px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
    padding: 15px 40px;
}

.btn-secondary {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* --- Contenedor Global --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.category-pill {
    background: #f0f0f2;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 15px 0;
}

/* --- Grid de Servicios --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 40px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.card-content p {
    color: #666;
    margin-bottom: 20px;
}

.card-list {
    list-style: none;
    margin-bottom: 30px;
}

.card-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #444;
    display: flex;
    align-items: center;
}

.card-list li::before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

.btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-text:hover {
    letter-spacing: 1px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}
/* --- Sección Sobre Nosotros --- */
.about-section {
    background-color: #fbfbfd; /* Gris ultra claro estilo Apple/Samsung */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

/* Imagen con efectos */
.about-image-container {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 30px rgba(0,122,255,0.3);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
}

/* Contenido de Texto */
.about-text-content h2 {
    font-size: 2.5rem;
    margin: 20px 0;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.about-text-content p {
    color: #86868b;
    margin-bottom: 30px;
}

/* Mini estadísticas */
.stats-container {
    display: flex;
    gap: 30px;
    border-top: 1px solid #d2d2d7;
    padding-top: 30px;
}

.stat-box h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
}

.stat-box p {
    font-size: 0.85rem;
    margin: 0;
}

/* Responsivo para móviles */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .experience-badge {
        right: 10px;
        bottom: 10px;
        padding: 20px;
    }
}
/* --- Sección de Contacto --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
}

.info-items {
    margin-top: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon {
    font-size: 1.5rem;
    background: #f5f5f7;
    padding: 15px;
    border-radius: 50%;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: #86868b;
}

/* --- Estilo del Formulario --- */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 18px 25px;
    border: 1.5px solid #d2d2d7;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fbfbfd;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.btn-submit {
    background-color: var(--black);
    color: var(--white);
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #333;
    transform: scale(1.02);
}

/* Mensaje de éxito/error */
.form-status {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-item {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

/* El primer proyecto ocupa las dos columnas para variar el diseño */
.project-item.wide {
    grid-column: span 2;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .projects-gallery {
        grid-template-columns: 1fr;
    }
    .project-item.wide {
        grid-column: span 1;
    }
}

/* --- Footer --- */
.main-footer {
    background-color: #1d1d1f; /* Negro Apple/Samsung */
    color: #f5f5f7;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #86868b;
    line-height: 1.5;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #86868b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    font-size: 0.9rem;
    color: #86868b;
    margin-bottom: 10px;
}

 /* Barra Inferior */
.footer-bottom {
    border-top: 1px solid #424245;
    padding: 30px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-bottom p, .legal-links a {
    font-size: 0.75rem;
    color: #86868b;
    text-decoration: none;
}

.legal-links {
    display: flex;
    gap: 20px;
}

/* Botón Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Se activa con JS */
    transition: 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
    }
}/* Estilos del Logo de Maic Mantenimiento */
#brand-logo {
    height: 60px !important;
    width: auto !important;
    display: block;
    transition: transform 0.3s ease;
    object-fit: contain !important; /* Mantiene la proporción sin deformar */
}

#brand-logo:hover {
    transform: scale(1.05);
}

/* Configuración global de imágenes */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Comportamiento del scroll */
html {
    scroll-behavior: smooth;
    /* Evita que el menú fijo tape el inicio de cada sección */
    scroll-padding-top: 80px; 
}



/* Cambia el color de resaltado de texto para que combine con tu marca */
::selection {
    background-color: var(--primary-color);
    color: white;
}
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ocultar por defecto en móviles */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: black;
        margin: 5px;
        transition: 0.3s;
    }
}
.btn-whatsapp {
    background-color: #25d366; /* El color oficial de WhatsApp */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #128c7e; /* Un verde más oscuro al pasar el mouse */
    transform: scale(1.02);
}

/* --- Estilos de la Tienda --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-img img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
}

.price {
    font-weight: 800;
    color: var(--primary-color);
    margin: 10px 0;
}

/* --- Widget Flotante --- */
.cart-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--black);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    gap: 10px;
}

/* --- Modal Estilo Samsung --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.search-bar input {
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid #ddd;
    width: 300px;
    outline: none;
    transition: 0.3s;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0,122,255,0.1);
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: #f5f5f7;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.filter-btn.active {
    background: var(--black);
    color: white;
}

.category-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #86868b;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .shop-controls {
        flex-direction: column;
    }
    .search-bar input {
        width: 100%;
    }
}

/* --- Ajustes para la nueva lista de servicios --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 28px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--black);
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    font-size: 0.95rem;
    color: #424245;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.service-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.highlight {
    font-weight: 600;
    color: var(--black) !important;
    background: #f5f5f7;
    padding: 5px 10px;
    border-radius: 8px;
    margin-left: -10px;
}

/* Tarjeta especial para la tienda */
.shop-cta {
    background: var(--black);
    color: white;
}

.shop-cta h3 { color: white; }
.shop-cta p { color: #86868b; margin-bottom: 20px; font-size: 0.9rem; }

@media (max-width: 768px) {
    .service-card {
        padding: 30px;
    }
}
/* --- Ajuste del Logo en la Navbar --- */
.logo {
    font-family: var(--font-main);
    font-weight: 800; /* Más grueso para que tenga peso visual */
    letter-spacing: 2px;
    color: var(--black);
    text-transform: uppercase;
}

/* --- Resalte de texto en el About --- */
.about-text-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.experience-badge {
    background: var(--black); /* Cambiamos a negro para un look más industrial/elegante */
}
/* --- Grid para fotos horizontales --- */
.projects-grid-horizontal {
    display: grid;
    /* Crea 3 columnas en PC, 2 en tablet, 1 en móvil automáticamente */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card-h {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-card-h:hover {
    transform: translateY(-10px);
}

.card-img-h {
    position: relative;
    height: 240px; /* Altura fija para que todas se vean uniformes */
    overflow: hidden;
}

.card-img-h img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto horizontal llene el espacio */
    transition: transform 0.5s ease;
}

.card-overlay-h {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-zoom {
    color: white;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.project-card-h:hover .card-img-h img { transform: scale(1.05); }
.project-card-h:hover .card-overlay-h { opacity: 1; }

.card-body-h { padding: 20px; }
.project-cat { color: var(--primary-color); font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }
.card-body-h h3 { margin: 10px 0 0; font-size: 1.2rem; }

/* --- ESTILOS DEL LIGHTBOX (Modal Pantalla Completa) --- */
.lightbox-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    text-align: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh; /* Limita la altura para que no se salga de la pantalla */
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

#lightbox-title { color: white; margin-top: 20px; font-weight: 400; }
#lightbox-counter { color: #999; font-size: 0.9rem; display: block; margin-top: 10px; }

/* Botones de navegación del Lightbox */
.lightbox-btn-close, .lightbox-nav {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s;
    z-index: 10000;
}
.lightbox-btn-close:hover, .lightbox-nav:hover { color: var(--primary-color); }
.lightbox-btn-close { top: 20px; right: 30px; font-size: 4rem; line-height: 0.5; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
/* --- Sección Tienda --- */
.shop-section {
    padding: 100px 0;
    background-color: #fbfbfd; /* Gris ultra claro estilo Apple/Samsung */
}

.shop-header {
    text-align: center;
    margin-bottom: 50px;
}

/* --- Barra de Herramientas Estilizada --- */
.shop-toolbar {
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-wrapper input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border-radius: 40px;
    border: 1px solid #e5e5e7;
    background: #f5f5f7;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-wrapper input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0,114,210,0.1);
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.5;
}

/* --- Filtros Tipo "Pills" --- */
.filter-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-pill {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid #e5e5e7;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-pill:hover {
    background: #f5f5f7;
}

.filter-pill.active {
    background: var(--black);
    color: white;
    border-color: var(--black);
}
/* --- Contenedor de la Tienda --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* --- Tarjeta de Producto --- */
.product-card {
    background: #ffffff;
    border-radius: 24px; /* Bordes muy redondeados estilo moderno */
    padding: 24px;
    border: 1px solid #efefef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--primary-color);
}

/* --- Contenedor del Icono/Imagen --- */
.product-img {
    background-color: #f7f7f9;
    border-radius: 18px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 30px;
}

.product-img img {
    width: 70%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%); /* Iconos en gris para minimalismo */
    opacity: 0.6;
    transition: all 0.3s ease;
}

.product-card:hover .product-img img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Textos del Producto --- */
.category-tag {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.product-card h3 {
    font-size: 16px;
    color: #1d1d1f;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 600;
    /* Limitar a 2 líneas para que todo se vea alineado */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.sku-text {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 15px;
}

.price {
    font-size: 20px;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
}

.consultar-price {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Botón de Compra Rediseñado --- */
.btn-add-cart {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-add-cart:hover {
    background-color: var(--primary-color);
}
.shop-footer {
    margin-top: 40px;
    text-align: center;
}

/* Animación suave cuando los productos cambian */
.product-card {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.shop-highlight{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin: 20px 0 10px;
}

.shop-highlight .pill{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  padding:10px 14px;
  border-radius:999px;
  font-weight:600;
  font-size:14px;
  box-shadow: 0 8px 25px rgba(0,0,0,.04);
}

.product-card{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(0,0,0,.10);
}

.product-img{
  background: linear-gradient(180deg, #f7f7f7, #fff);
  border-radius: 18px;
}

.shop-toolbar{
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 20px 50px rgba(0,0,0,.06);
}

/* === MODAL CARRITO === */
#cart-modal{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

#cart-modal.open{
  display: flex;
}

#cart-modal .modal-content{
  background: #fff;
  border-radius: 18px;
  width: min(520px, 92vw);
  max-height: 85vh;
  overflow: auto;
  padding: 18px;
}

/* Items del carrito */
.cart-item-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.cart-item-info .cart-item-name{
  font-weight:700;
}
.cart-item-info .cart-item-sub{
  font-size:13px;
  opacity:.7;
  margin-top:2px;
}

.cart-item-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.qty-btn{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.qty-num{
  min-width:22px;
  text-align:center;
  font-weight:700;
}

.remove-btn{
  width:38px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
}

/* Cambiar color de "Seguir comprando" */
#btn-close-cart{
  background: #f3f4f6;      /* gris suave */
  color: #111;
  border: 1px solid rgba(0,0,0,.12);
}

#btn-close-cart:hover{
  background:#e5e7eb;
}

/* Asegura que tanto fotos como iconos se vean bien */
.product-img {
    background-color: #f7f7f9;
    border-radius: 18px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Corta lo que sobresalga de fotos reales */
    margin-bottom: 20px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Las fotos reales llenarán el cuadro */
    transition: all 0.3s ease;
}

/* Solo si es un icono (clase añadida por JS en caso de error) */
.product-img.svg-container img {
    width: 60%;
    height: auto;
    object-fit: contain;
    opacity: 0.6;
}

.brand-link{
  display:flex;
  align-items:center;
}
.brand-link img{
  display:block;
}

.nav-links a.active{
  font-weight:700;
  position:relative;
}
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:100%;
  height:2px;
  background:#000;
  border-radius:2px;
}
/* ===== FIX HERO EN MÓVIL (evita que lo tape el navbar) ===== */
@media (max-width: 768px){
  .hero,
  .hero-section,
  header.hero {              
    padding-top: 110px !important;  
  }

  .hero .container,
  .hero-content{
    margin-top: 0 !important;
  }
}

