/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E31837;
    --primary-dark: #B8122E;
    --secondary: #1A1A2E;
    --accent: #16213E;
    --light: #F8F9FA;
    --dark: #0A0A1A;
    --gray: #6C757D;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 40px rgba(227, 24, 55, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A0A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-container {
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 0 60px rgba(227, 24, 55, 0.3);
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 20px auto;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: var(--white);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ===== IMAGE PLACEHOLDERS ===== */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    gap: 8px;
    position: relative;
    padding: 20px;
    text-align: center;
}
.image-placeholder i {
    font-size: 48px;
    opacity: 0.5;
}
.image-placeholder span {
    font-size: 16px;
    letter-spacing: 0.5px;
}
.image-placeholder small {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 300;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    padding: 16px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    font-weight: 500;
}
.whatsapp-float i {
    font-size: 28px;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: white;
}
@media (max-width: 768px) {
    .whatsapp-float {
        padding: 14px 16px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float span {
        display: none;
    }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(10, 10, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.logo img {
    height: 45px;
    width: auto;
    border-radius: 8px;
}
.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.logo-text span {
    font-size: 10px;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-menu a:hover {
    color: var(--white);
}
.nav-menu a:hover::after {
    width: 100%;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    width: 28px;
    height: 2.5px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ======================================== */
/* ===== CARRUSEL DE OFERTAS ===== */
/* ======================================== */
.promo-slider-section {
    padding-top: 80px;
    background: var(--secondary);
}

.slider-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    background: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.slide-badge {
    display: inline-block;
    background: rgba(227, 24, 55, 0.2);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(227, 24, 55, 0.2);
    width: fit-content;
}

.slide-content h2 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.slide-content p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    margin-bottom: 20px;
}

.slide-offer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.offer-price {
    font-size: 32px;
    font-weight: 800;
    color: #FFD700;
}

.offer-old {
    font-size: 18px;
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
}

.btn-slide {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    width: fit-content;
}
.btn-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* --- IMAGEN DEL SLIDE --- */
.slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px 20px 10px;
    overflow: hidden;
    min-height: 300px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(0,0,0,0.15);
}

/* ======================================== */
/* ===== SLIDER CONTROLES - CORREGIDO ===== */
/* ======================================== */

/* Botones del slider - MAS PEQUEÑOS EN PC */
.slider-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(4px) !important;
}

.slider-btn:hover {
    background: #E31837 !important;
    border-color: #E31837 !important;
    transform: translateY(-50%) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(227, 24, 55, 0.3) !important;
}

#prevBtn,
.prev-btn {
    left: 12px !important;
    right: auto !important;
}

#nextBtn,
.next-btn {
    right: 12px !important;
    left: auto !important;
}

/* Dots del slider */
.slider-dots {
    display: flex !important;
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999 !important;
    gap: 10px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    backdrop-filter: blur(4px) !important;
}

.slider-dots .dot {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.slider-dots .dot.active {
    background: #E31837 !important;
    width: 30px !important;
    border-radius: 10px !important;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7) !important;
}

/* Contador de promociones */
.slider-counter {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 999 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    padding: 5px 14px !important;
    border-radius: 50px !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.slider-counter i {
    font-size: 12px !important;
    opacity: 0.7 !important;
}

/* ======================================== */
/* ===== RESPONSIVE SLIDER ===== */
/* ======================================== */

/* PC - Flechas mas pequeñas */
@media (min-width: 1025px) {
    .slider-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
        background: rgba(0, 0, 0, 0.5) !important;
    }
    #prevBtn,
    .prev-btn {
        left: 10px !important;
    }
    #nextBtn,
    .next-btn {
        right: 10px !important;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .slider-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    #prevBtn,
    .prev-btn {
        left: 12px !important;
    }
    #nextBtn,
    .next-btn {
        right: 12px !important;
    }
}

/* Telefono - se mantienen como estaban */
@media (max-width: 768px) {
    .slider-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        border-width: 1.5px !important;
    }
    #prevBtn,
    .prev-btn {
        left: 10px !important;
    }
    #nextBtn,
    .next-btn {
        right: 10px !important;
    }
    .slider-dots {
        bottom: 12px !important;
        padding: 4px 12px !important;
        gap: 8px !important;
    }
    .slider-dots .dot {
        width: 8px !important;
        height: 8px !important;
    }
    .slider-dots .dot.active {
        width: 20px !important;
    }
    .slider-counter {
        top: 10px !important;
        right: 10px !important;
        font-size: 11px !important;
        padding: 3px 10px !important;
    }
}

/* Telefono pequeno */
@media (max-width: 480px) {
    .slider-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
        border-width: 1px !important;
    }
    #prevBtn,
    .prev-btn {
        left: 6px !important;
    }
    #nextBtn,
    .next-btn {
        right: 6px !important;
    }
    .slider-dots {
        bottom: 8px !important;
        padding: 3px 8px !important;
        gap: 5px !important;
    }
    .slider-dots .dot {
        width: 6px !important;
        height: 6px !important;
    }
    .slider-dots .dot.active {
        width: 14px !important;
    }
    .slider-counter {
        top: 6px !important;
        right: 6px !important;
        font-size: 9px !important;
        padding: 2px 8px !important;
    }
}

/* ======================================== */
/* ===== HERO SECTION ===== */
/* ======================================== */
.hero {
    padding: 80px 40px 80px;
    background: linear-gradient(135deg, #0A0A1A 0%, #1A1A2E 100%);
    display: flex;
    align-items: center;
}
.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-text .badge {
    display: inline-block;
    background: rgba(227, 24, 55, 0.15);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(227, 24, 55, 0.2);
}
.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-text h1 .highlight {
    color: var(--primary);
    position: relative;
}
.hero-text p {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 32px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 24, 55, 0.35);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.hero-stats {
    display: flex;
    gap: 40px;
}
.stat .number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}
.stat .label {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 400;
}

/* ======================================== */
/* ===== SECTION HEADER ===== */
/* ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
}
.section-header h2 .highlight {
    color: var(--primary);
}
.section-header p {
    color: var(--gray);
    font-size: 17px;
    margin-top: 8px;
}

/* ======================================== */
/* ===== CATALOG - CORREGIDO ===== */
/* ======================================== */
.catalog {
    padding: 80px 40px;
    background: var(--light);
}
.catalog-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(40px);
}
.product-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.product-info {
    padding: 20px 22px;
}
.product-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}
.product-brand {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 10px;
}
.product-specs {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}
.product-specs i {
    color: var(--primary);
    margin-right: 4px;
}
.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.product-price .price {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}
.product-price .price-old {
    font-size: 16px;
    color: var(--gray);
    text-decoration: line-through;
}
.product-actions {
    display: flex;
    gap: 10px;
}
.btn-buy {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}
.btn-buy:hover {
    background: #1DA851;
    transform: scale(1.02);
}
.btn-details {
    padding: 10px 16px;
    background: var(--light);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}
.btn-details:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== CATALOGO - RESPONSIVE (mas pequeños en móvil) ===== */
@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .product-card {
        border-radius: 12px;
    }
    .product-image {
        height: 180px;
    }
    .product-info {
        padding: 14px 16px;
    }
    .product-info h3 {
        font-size: 14px;
    }
    .product-brand {
        font-size: 11px;
        margin-bottom: 6px;
    }
    .product-specs {
        font-size: 11px;
        gap: 10px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    .product-price .price {
        font-size: 18px;
    }
    .product-price .price-old {
        font-size: 13px;
    }
    .product-actions {
        flex-wrap: wrap;
    }
    .btn-buy {
        font-size: 12px;
        padding: 8px 14px;
    }
    .btn-details {
        font-size: 12px;
        padding: 8px 12px;
    }
    .product-badge {
        font-size: 9px;
        padding: 3px 10px;
        top: 8px;
        left: 8px;
    }
}

/* ===== CATALOGO - RESPONSIVE moficicacion  de tamaño de catalogos  ===== */
@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .product-image {
        height: 320px;
    }
    .product-info {
        padding: 10px 12px;
    }
    .product-info h3 {
        font-size: 12px;
    }
    .product-brand {
        font-size: 10px;
        margin-bottom: 4px;
    }
    .product-specs {
        font-size: 10px;
        gap: 6px;
        margin-bottom: 6px;
    }
    .product-price .price {
        font-size: 15px;
    }
    .product-price .price-old {
        font-size: 11px;
    }
    .btn-buy {
        font-size: 10px;
        padding: 6px 10px;
        gap: 4px;
    }
    .btn-buy i {
        font-size: 12px;
    }
    .btn-details {
        font-size: 10px;
        padding: 6px 10px;
    }
    .product-actions {
        gap: 6px;
    }
    .product-badge {
        font-size: 8px;
        padding: 2px 8px;
        top: 6px;
        left: 6px;
    }
}

/* ======================================== */
/* ===== SERVICES ===== */
/* ======================================== */
.services {
    padding: 80px 40px;
    background: var(--white);
}
.services-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--light);
    padding: 35px 28px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    opacity: 0;
    transform: translateY(40px);
}
.service-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(227, 24, 55, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}
.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.service-card p {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 16px;
}
.service-price {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

/* ======================================== */
/* ===== WORKS ===== */
/* ======================================== */
.works {
    padding: 80px 40px;
    background: var(--secondary);
}
.works .section-header h2 {
    color: var(--white);
}
.works .section-header p {
    color: rgba(255,255,255,0.6);
}
.works-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.work-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
}
.work-item.aos-animate {
    opacity: 1;
    transform: scale(1);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}
.work-item:hover .work-overlay {
    transform: translateY(0);
    opacity: 1;
}
.work-info h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}
.work-info p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ======================================== */
/* ===== CONTACT ===== */
/* ======================================== */
.contact {
    padding: 80px 40px;
    background: var(--white);
}
.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info {
    opacity: 0;
    transform: translateX(-40px);
}
.contact-info.aos-animate {
    opacity: 1;
    transform: translateX(0);
}
.contact-form {
    opacity: 0;
    transform: translateX(40px);
}
.contact-form.aos-animate {
    opacity: 1;
    transform: translateX(0);
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 30px 0;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
}
.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(227, 24, 55, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}
.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
}
.contact-item p {
    color: var(--gray);
    font-size: 14px;
}
.contact-social {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}
.contact-social a {
    width: 44px;
    height: 44px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
}
.contact-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}
.contact-form {
    background: var(--light);
    padding: 40px;
    border-radius: var(--border-radius);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    margin-bottom: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(227, 24, 55, 0.08);
}
.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
}

/* ======================================== */
/* ===== FOOTER ===== */
/* ======================================== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 40px 20px;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
}
.footer-logo p {
    font-size: 14px;
    margin: 6px 0 14px;
    color: var(--primary);
}
.footer-phone {
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
}
.footer-phone i {
    color: var(--primary);
    margin-right: 10px;
}
.footer-links h4,
.footer-services h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-links ul,
.footer-services ul {
    list-style: none;
}
.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-services li {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}
.footer-bottom {
    max-width: 1280px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.3);
}

/* ===== BOTON MAPS ===== */
.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #4285F4;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-maps:hover {
    background: #3367D6;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.35);
    color: white;
}

/* ======================================== */
/* ===== ANIMACIONES AOS ===== */
/* ======================================== */
[data-aos] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}
[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}
[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}
[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}
[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* ======================================== */
/* ===== UBICACION ===== */
/* ======================================== */
.location {
    padding: 80px 40px;
    background: var(--light);
}

.location-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.location-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.location-info {
    display: flex;
    align-items: center;
}

.location-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}

.location-card i {
    margin-bottom: 12px;
}

.location-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.location-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ======================================== */
/* ===== RESPONSIVE ===== */
/* ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto 32px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .slide {
        grid-template-columns: 1fr;
        min-height: 500px;
    }
    .slide-content {
        padding: 40px 30px;
        order: 2;
    }
    .slide-image {
        order: 1;
        padding: 20px;
    }
    .slide-image img {
        max-height: 250px;
    }
    .slide-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: var(--transition);
        gap: 20px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }
    .nav-menu.active {
        right: 0;
    }
    .hamburger {
        display: flex;
        z-index: 1000;
    }
    .promo-slider-section {
        padding-top: 70px;
    }
    .hero {
        padding: 60px 20px 60px;
    }
    .hero-text h1 {
        font-size: 34px;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .section-header h2 {
        font-size: 30px;
    }
    .catalog {
        padding: 60px 20px;
    }
    .services {
        padding: 60px 20px;
    }
    .works {
        padding: 60px 20px;
    }
    .works-grid {
        grid-template-columns: 1fr;
    }
    .contact {
        padding: 60px 20px;
    }
    .contact-form {
        padding: 24px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer {
        padding: 40px 20px 20px;
    }

    /* Ubicacion responsive */
    .location-container {
        grid-template-columns: 1fr;
    }
    .location {
        padding: 60px 20px;
    }
    .location-card {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 14px;
    }
    .logo-text span {
        font-size: 9px;
    }
    .hero-text h1 {
        font-size: 28px;
    }
    .logo img {
        height: 36px;
    }
    .slide-content {
        padding: 30px 20px;
    }
    .slide-content h2 {
        font-size: 20px;
    }
    .btn-slide {
        padding: 10px 20px;
        font-size: 13px;
    }
}
/* ===== BUSCADOR SENCILLO ===== */
.search-simple {
    max-width: 500px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.search-input-simple {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

.search-input-simple:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(227, 24, 55, 0.08);
}

#resultsCount {
    font-size: 13px;
    color: var(--gray);
}


/* ======================================== */
/* ===== MODAL DE DETALLES ===== */
/* ======================================== */
.product-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.product-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 32px;
    font-weight: 300;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.modal-image {
    background: var(--light);
    border-radius: 20px 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 400px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
}

.modal-info {
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.modal-brand {
    color: var(--gray);
    font-size: 16px;
    font-weight: 500;
}

.modal-specs {
    display: flex;
    gap: 20px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.modal-specs span {
    background: var(--light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--gray);
}

.modal-specs i {
    color: var(--primary);
    margin-right: 6px;
}

.modal-price {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.modal-price span:first-child {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.modal-price .price-old {
    font-size: 20px;
    color: var(--gray);
    text-decoration: line-through;
}

.modal-description {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
    margin: 4px 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.modal-actions .btn-primary {
    padding: 14px 32px;
    font-size: 16px;
}

.modal-close-btn {
    padding: 14px 32px;
    background: var(--light);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--gray);
    color: var(--white);
    border-color: var(--gray);
}

/* ===== RESPONSIVE MODAL ===== */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        border-radius: 20px 20px 0 0;
        min-height: 200px;
        padding: 20px;
    }
    
    .modal-image img {
        max-height: 200px;
    }
    
    .modal-info {
        padding: 24px 20px;
    }
    
    .modal-info h2 {
        font-size: 22px;
    }
    
    .modal-price span:first-child {
        font-size: 26px;
    }
    
    .modal-specs {
        gap: 10px;
    }
    
    .modal-specs span {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .modal-actions .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .modal-close-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modal-image {
        min-height: 150px;
        padding: 14px;
    }
    
    .modal-image img {
        max-height: 150px;
    }
    
    .modal-info {
        padding: 18px 16px;
    }
    
    .modal-info h2 {
        font-size: 18px;
    }
    
    .modal-price span:first-child {
        font-size: 22px;
    }
    
    .modal-description {
        font-size: 13px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn-primary,
    .modal-close-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== FORZAR VISIBILIDAD DE TARJETAS ===== */
.product-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-card.aos-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.catalog-grid {
    display: grid !important;
}
/* ===== OCULTAR PRODUCTOS EN BÚSQUEDA ===== */
.producto-oculto {
    display: none !important;
}

.catalog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
}

/* Esto es importante para que los elementos ocultos no ocupen espacio */
.catalog-grid .producto-oculto {
    display: none !important;
}