﻿/* 
    ANGELES FERRETERÃA - SISTEMA DE DISEÃ‘O PREMIUM
    Inspirado en Gricol.com - VersiÃ³n 1.0
*/

:root {
    /* Paleta de Colores Azul Premium */
    --primary: #1b365d;
    /* Azul Navy Premium */
    --primary-dark: #132742;
    --secondary: #1a1a1a;
    /* Negro carbÃ³n */
    --accent: #d4af37;
    /* Dorado sutil para detalles */

    /* Grises y Neutros */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #e0e0e0;

    /* TipografÃ­a */
    --font-main: 'Outfit', sans-serif;

    /* Sombras y Profundidad */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Colores Gricol Reference */
    --accent-red: #d31d1d;
    --star-gold: #f1c40f;
    --swatch-border: #ddd;
}

/* RESET BÃSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeInPage 0.8s ease-out;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. BARRA SUPERIOR (TOP BAR) */
.top-bar {
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 300;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-social a {
    margin-right: 15px;
    opacity: 0.8;
}

.top-social a:hover {
    opacity: 1;
    color: var(--primary);
}

.top-account {
    display: flex;
    gap: 20px;
}

.top-account a {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.top-account a:hover {
    opacity: 1;
    color: var(--primary);
}

.icon-small {
    width: 16px;
    height: 16px;
}

/* 2. BARRA DE BENEFICIOS (MARQUEE) */
.benefits-bar {
    background-color: var(--primary);
    color: var(--white);
    overflow: hidden;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefits-track {
    display: flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
}

.benefits-track span {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* CABECERA PRINCIPAL (HEADER) - ESTILO FIJO SEGUNDA IMAGEN */
.main-header {
    background-color: var(--white);
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.header-container {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-logo-container {
    flex-shrink: 0;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

/* NAVEGACIÃ“N HORIZONTAL */
.main-nav,
.header-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    white-space: nowrap;
}

.nav-list li a:hover {
    color: var(--accent-red);
}

/* Fix for category hero text readability when background image is injected */
.page-hero[style*="url"] h1,
.page-hero[style*="url"] p,
.page-hero[style*="url"] .nav-list li a {
    color: var(--white) !important;
}

.page-hero[style*="url"] .nav-list li a:hover {
    color: var(--accent-red) !important;
}

/* BARRA DE BÃšSQUEDA ESTILO PÃLDORA (SEGÃšN IMAGEN) */
.header-actions {
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f7f9;
    padding: 4px 4px 4px 20px;
    border-radius: 50px;
    border: 1px solid #e1e5e9;
    width: 320px;
    transition: var(--transition);
}

.search-box:focus-within {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: var(--text-main);
    width: 100%;
}

.search-box i {
    background: var(--primary);
    color: var(--white);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-box i:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.icon-inline {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-left: 4px;
}

.icon-inline-blue {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
    color: var(--primary);
    opacity: 0.8;
    transition: var(--transition);
}

/* MEGA MENU STYLES */
.has-mega-menu {
    position: static;
    /* Para que el mega menu sea relativo al header/viewport */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
    padding: 40px 0;
}

.has-mega-menu:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mega-menu-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.mega-col h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
    text-transform: uppercase;
}

.mega-col ul li {
    margin-bottom: 12px;
}

.mega-col ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0;
}

.mega-col ul li a::after {
    display: none;
    /* Quitar lÃ­nea debajo en el mega menu */
}

.mega-col ul li a img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: var(--transition);
}

.mega-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.mega-col ul li a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* MEGA FEATURED IMAGE */
.mega-featured {
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.featured-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    min-height: 200px;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(27, 54, 93, 0.9));
    color: var(--white);
}

.featured-overlay h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--white);
}

.featured-overlay a {
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: underline;
    color: var(--white);
}

.featured-card:hover img {
    transform: scale(1.05);
}

/* BUSCADOR */
.header-search {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 5px 5px 15px;
    width: 280px;
    transition: var(--transition);
}

.header-search:focus-within {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

.search-input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-main);
}

.search-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* 4. HERO SECTION - FULL WIDTH (Estilo Gricol) */
.hero {
    position: relative;
    height: calc(100vh - 200px);
    /* Ajustado para compensar el header gigante */
    min-height: 600px;
    display: block;
    /* Quitar grid anterior */
    overflow: hidden;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 650px;
    padding: 0;
    z-index: 10;
    color: var(--white);
    pointer-events: none;
}

.hero-text-slider {
    position: relative;
    height: 250px;
    /* Ajustado para el tamaÃ±o del texto h1 */
}

.hero-slide-text {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(20px);
}

.hero-slide-text.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-content * {
    pointer-events: auto;
}

.hero-tag {
    color: var(--white);
    background-color: var(--primary);
    padding: 5px 15px;
    font-size: 0.7rem;
    display: inline-block;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.hero-tag::before {
    display: none;
    /* Quitar lÃ­nea anterior */
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 30px;
    max-width: 550px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    line-height: 1.4;
}

.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-slider img {
    filter: brightness(1);
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.hero-slider-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
    opacity: 1;
}

/* Controles del Slider */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
    border-color: var(--primary);
}

.slider-play-pause {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    transition: var(--transition);
}

.slider-play-pause:hover {
    background: var(--primary);
    border-color: var(--white);
}

.slider-play-pause svg {
    width: 14px;
    height: 14px;
}

/* ESTILOS DE SECCIONES GENERALES */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* 5. SECCIÃ“N DE SERVICIOS */
.services {
    padding: 100px 0;
    background-color: var(--bg-light);
}

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

.service-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(27, 54, 93, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--white);
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 6. SECCIÃ“N SOBRE NOSOTROS */
.about-summary {
    padding: 120px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-info h2 {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-info p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-info .btn {
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: 2;
    }

    .about-info {
        order: 1;
        text-align: center;
    }
}

/* RESPONSIVE HERO */
@media (max-width: 991px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 60px 20px;
        text-align: center;
    }

    .hero-tag {
        padding-left: 0;
    }

    .hero-tag::before {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        height: 400px;
    }
}

/* ESTILOS PÃGINAS INTERNAS (SERVICIOS) */
.page-hero {
    padding: 100px 0;
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.services-detail {
    padding: 100px 0;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.service-row.reverse {
    direction: rtl;
}

.service-row.reverse .service-text {
    direction: ltr;
}

.service-row.reverse .service-image {
    direction: ltr;
}

.service-text h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.service-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.service-list {
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--secondary);
}

.service-list li i {
    color: var(--primary);
    width: 20px;
}

.service-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.cta-section {
    padding: 100px 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

/* INDEX: CATEGORÃAS & PRODUCTOS DESTACADOS */
.category-item {
    text-decoration: none;
}

.category-item:hover .category-icon {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(27, 54, 93, 0.2);
}

.category-item:hover .category-icon i {
    color: var(--white) !important;
}

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

.product-card img {
    transition: transform 0.5s ease;
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white) !important;
}

@media (max-width: 768px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-row.reverse {
        direction: ltr;
    }
}


/* COMPONENTES: BOTONES */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

/* PRODUCT CATALOG & GRID */
.products-section {
    padding: 80px 0;
    background-color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-image-link {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.product-image-link::after {
    content: 'VISTA RÃPIDA';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    background-color: rgba(27, 54, 93, 0.9);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.7rem;
    font-weight: 700;
    transition: var(--transition);
}

.product-card:hover .product-image-link::after {
    bottom: 0;
}

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

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

.product-info-grid {
    flex-grow: 1;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.product-rating i {
    width: 14px;
    height: 14px;
    fill: var(--star-gold);
    color: var(--star-gold);
}

.product-rating i.inactive {
    fill: #ddd;
    color: #ddd;
}

.product-sku {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-card-price {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 500;
}

.product-card-price span {
    font-weight: 700;
    color: var(--secondary);
}

.swatches {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.swatch {
    width: 22px;
    height: 22px;
    border: 1px solid var(--swatch-border);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.swatch:hover,
.swatch.active {
    border-color: var(--secondary);
    transform: scale(1.1);
}

.swatch.chrome {
    background-color: #e5e5e5;
}

.swatch.black {
    background-color: #1a1a1a;
}

.swatch.gold {
    background-color: #d4af37;
}

.btn-product {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: none;
    transition: var(--transition);
}

.btn-product:hover {
    background-color: var(--accent-red);
    color: var(--white);
}

/* PRODUCT DETAIL PAGE */
.product-detail-section {
    padding: 60px 0 100px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image-container {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 20px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.thumbnail {
    width: 75px;
    height: 75px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    transition: var(--transition);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(27,54,93,0.15);
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info-col {
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-detail-sku {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.price-tax-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.price-tax-info a {
    color: var(--accent-red);
    text-decoration: underline;
}

.addi-promo {
    background-color: #f0f7ff;
    padding: 12px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.addi-logo {
    height: 20px;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #27ae60;
    margin-bottom: 20px;
    font-weight: 500;
}

.stock-dot {
    width: 8px;
    height: 8px;
    background-color: #27ae60;
    border-radius: 50%;
}

.finish-selection {
    margin-bottom: 30px;
}

.finish-selection label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.buy-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.quantity-selector {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: var(--bg-light);
}

.qty-input {
    width: 50px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-weight: 700;
    outline: none;
}

.btn-add-cart {
    flex-grow: 1;
    background-color: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 15px;
    font-weight: 700;
    text-transform: none;
}

.btn-add-cart:hover {
    background-color: #b01818;
}

.product-description {
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.product-description p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-description ul {
    padding-left: 20px;
}

.product-description ul li {
    list-style: disc;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
}

@media (max-width: 991px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   ESTILOS DE COLECCIÃ“N (ESTILO GRICOL)
   ========================================================================== */

/* Layout Principal: Sidebar + Contenido */
.collection-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 0;
}

/* Layout Sin Barra Lateral (Ancho Completo) */
.collection-layout-full {
    padding: 60px 0;
}

.collection-layout-full .products-grid-gricol {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .collection-layout-full .products-grid-gricol {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .collection-layout-full .products-grid-gricol {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .collection-layout-full .products-grid-gricol {
        grid-template-columns: 1fr;
    }
}


/* Barra Lateral de Filtros */
.filters-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.filter-group h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-item:hover {
    color: var(--primary);
}

.filter-item input {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.filter-count {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* CuadrÃ­cula de Productos (3 Columnas para dar espacio al sidebar) */
.products-grid-gricol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tarjeta de Producto Estilo Gricol Collection */
.product-card-gricol {
    background: var(--white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 15px;
    border: 1px solid transparent;
}

.product-card-gricol:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 15px;
    background: #f9f9f9;
    overflow: hidden;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card-gricol:hover .product-image-wrapper img {
    transform: scale(1.08);
}

.product-info-gricol {
    text-align: left;
}

.product-sku {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.product-title-gricol {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 2.8em;
}

.product-price-gricol {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Badge de Novedad */
.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-red);
    color: var(--white);
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

/* Responsive */
@media (max-width: 1024px) {
    .collection-layout {
        grid-template-columns: 1fr;
    }
    .filters-sidebar {
        display: none;
    }
    .products-grid-gricol {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .products-grid-gricol {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MEJORAS PREMIUM: CARRITO DE COMPRAS, BUSCADOR Y TOASTS
   ========================================================================== */

/* 1. OVERLAY DEL CARRITO */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* 2. CONTENEDOR DESLIZANTE DEL CARRITO */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background-color: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-close-btn:hover {
    background-color: var(--bg-light);
    transform: rotate(90deg);
}

/* 3. LISTADO DE PRODUCTOS EN EL CARRITO */
.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-empty-message {
    text-align: center;
    color: var(--text-muted);
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cart-empty-message i {
    color: #cbd5e1;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 6px;
    background-color: #f8fafc;
    border: 1px solid var(--border);
    padding: 5px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.cart-item-sku {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.cart-qty-btn {
    background: none;
    border: none;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-qty-btn:hover {
    background-color: var(--bg-light);
}

.cart-qty-val {
    width: 30px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background-color: #fee2e2;
}

/* 4. TOTALES Y CHECKOUT */
.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background-color: var(--bg-light);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
}

.cart-summary-row .total-price {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
}

.btn-whatsapp-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: #25d366;
    color: var(--white);
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    transition: var(--transition);
}

.btn-whatsapp-checkout:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* 5. BUSCADOR AUTOCOMPLETE DROPDOWN */
.header-search {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.search-dropdown.show {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: var(--transition);
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background-color: var(--bg-light);
}

.search-dropdown-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 4px;
    background-color: #f8fafc;
    border: 1px solid var(--border);
    padding: 2px;
}

.search-dropdown-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.search-dropdown-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 2px;
}

.search-dropdown-sku {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.search-dropdown-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: auto;
}

.search-dropdown-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 6. TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10005;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-premium {
    background-color: var(--white);
    border-left: 4px solid var(--primary);
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-premium.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-premium.success {
    border-left-color: #25d366;
}

.toast-premium i {
    width: 20px;
    height: 20px;
}


/* ==========================================================================
   UNIFIED PRODUCT CARD
   ========================================================================== */
.product-card-unified {
    position: relative;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    overflow: hidden;
    height: 100%;
}

.product-card-unified:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(27, 54, 93, 0.1);
    transform: translateY(-4px);
}

.product-card-unified-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 90%;
    background: #fdfdfd;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.product-card-unified-img-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card-unified:hover .product-card-unified-img-wrapper img {
    transform: translate(-50%, -50%) scale(1.08);
}

.product-card-unified-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d31d1d;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.product-card-unified-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-unified-category {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-card-unified-title {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.product-card-unified-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-unified-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.product-card-unified-rating i {
    width: 14px;
    height: 14px;
    fill: #f1c40f;
    color: #f1c40f;
}

.product-card-unified-price-box {
    margin-top: auto;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card-unified-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.product-card-unified-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.product-card-unified-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.product-card-unified-btn:hover {
    background: var(--primary-dark);
}

.product-card-unified-btn.whatsapp {
    background: #25d366;
}

.product-card-unified-btn.whatsapp:hover {
    background: #1da851;
}

.product-card-unified-btn.detail {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.product-card-unified-btn.detail:hover {
    background: var(--primary);
    color: #fff;
}


/* Ajuste de margen inferior dinámico para el botón */
.product-card-unified-btn {
    margin-top: auto !important;
}

/* --- CATEGORIAS FIJAS (REEMPLAZO DEL MEGA MENU) --- */
.categories-bar {
    background-color: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.categories-grid li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    text-align: center;
    padding: 8px 5px;
    border-radius: 4px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.categories-grid li a:hover {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.fixed-menu-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 20px 0;
}
@media (max-width: 768px) {
    .fixed-menu-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.fixed-icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px 30px;
    list-style: none;
    margin: 0;
    padding: 15px 0;
}

.fixed-icon-grid li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.fixed-icon-grid li a:hover {
    color: var(--primary);
    transform: translateX(3px);
}





/* =========================================
   RESPONSIVE MOBILE STYLES (AJUSTE CELULARES)
   ========================================= */
@media (max-width: 991px) {
    /* Top Bar */
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px 0;
    }
    .top-account {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Header Principal */
    .header-container {
        flex-direction: column;
        height: auto !important;
        padding: 15px 20px;
        gap: 15px;
    }
    .header-logo-container {
        margin-bottom: 5px;
    }
    .logo-img {
        height: 45px !important;
    }

    /* Navegacion Horizontal Scrolleable */
    .header-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-list {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 20px;
        padding-bottom: 5px;
    }
    .nav-list li a {
        font-size: 0.8rem;
    }

    /* Buscador */
    .header-search {
        width: 100% !important;
        max-width: 100%;
    }
    .search-box {
        width: 100% !important;
    }

    /* Hero Section */
    .hero {
        height: auto !important;
        min-height: 450px !important;
        display: flex;
        align-items: center;
    }
    .hero-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100%;
        padding: 40px 20px;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.2rem !important;
    }
    .hero-actions {
        justify-content: center;
    }
    .slider-controls {
        left: 50% !important;
        transform: translateX(-50%);
        bottom: 15px !important;
    }
}

@media (max-width: 580px) {
    /* Ajuste en Menu Inferior (Categorias Fijas) */
    .fixed-icon-grid {
        justify-content: flex-start !important;
        gap: 10px 15px !important;
    }
    .fixed-icon-grid li {
        width: 45%;
        flex-grow: 1;
    }
    .hero h1 {
        font-size: 1.8rem !important;
    }
    .hero p {
        font-size: 0.9rem !important;
    }
    .section-header h2 {
        font-size: 1.8rem !important;
    }
}
