:root {
    --gris: #656C70;
    --gris-claro: #f4f6f8;
    --gris-borde: #e0e3e6;
    --blanco: #FFFFFF;
    --verde: #2EB72E;
    --verde-hover: #249a24;
    --azul: #084D9C;
    --azul-hover: #063d7e;
    --azul-light: #e8f0fa;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--gris-claro);
    color: var(--gris);
}

/* HEADER */
header {
    background: var(--verde);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(8,77,156,0.3);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--verde);
    text-decoration: none;
    letter-spacing: 1px;
}
.logo span { color: var(--verde); }

.header-cta {
    background: var(--verde);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.header-cta:hover { background: var(--verde-hover); }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul-hover) 100%);
    color: white;
    text-align: center;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.1;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 10px; position: relative; z-index: 1; }
.hero p { opacity: 0.9; font-size: 1.1rem; position: relative; z-index: 1; }

/* SEARCH */
.search-container {
    max-width: 700px;
    margin: -25px auto 30px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}
.search-input {
    width: 100%;
    padding: 18px 50px 18px 25px;
    border-radius: 50px;
    border: 3px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}
.search-input:focus { border-color: var(--verde); }

/* MAIN */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 60px;
}

/* TABS */
.tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.tab {
    padding: 12px 25px;
    background: var(--blanco);
    border: 2px solid var(--gris-borde);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.tab.active {
    background: var(--azul);
    color: white;
    border-color: var(--azul);
}
.tab:hover:not(.active) { border-color: var(--azul); color: var(--azul); }

/* SUB TABS */
.sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.sub-tab {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--gris-borde);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gris);
    transition: all 0.2s;
}
.sub-tab.active {
    background: var(--gris-claro);
    border-color: var(--azul);
    color: var(--azul);
}
.sub-tab:hover { border-color: var(--azul); }

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* CARD */
.card {
    background: var(--blanco);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gris-borde);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--verde);
}

.card-image-container {
    height: 200px;
    background: #eee;
    position: relative;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-image-container img {
    transform: scale(1.05);
}

.brand-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.bg-invertek { color: var(--azul); }
.bg-schrack { color: #7c3aed; }
.bg-murr { color: var(--verde); }

.card-header {
    padding: 15px 20px 5px;
    border-bottom: 1px solid var(--gris-borde);
}

.card-ref {
    font-size: 0.75rem;
    color: var(--gris);
    font-weight: 600;
    margin-bottom: 5px;
    font-family: monospace;
    background: #f0f2f5;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
}

.card-title {
    font-size: 1.05rem;
    color: var(--gris);
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1.3;
}

.card-body {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--gris);
    line-height: 1.5;
    margin-bottom: 12px;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}
.spec-chip {
    background: var(--gris-claro);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--gris);
    border: 1px solid var(--gris-borde);
    font-weight: 600;
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--verde-hover);
    margin-bottom: 5px;
    display: block;
}
.price-note {
    font-size: 0.7rem;
    color: #999;
    font-weight: 400;
    display: block;
    margin-top: -5px;
    margin-bottom: 15px;
}

.btn-cotizar {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--verde);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s;
    margin-top: auto;
}
.btn-cotizar:hover { background: var(--verde-hover); }

.no-results {
    text-align: center;
    padding: 50px;
    grid-column: 1 / -1;
    color: var(--gris);
}
.no-results h3 { margin-bottom: 10px; font-size: 1.2rem; }
.no-results p { font-size: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 15px; }
    .hero h1 { font-size: 1.8rem; }
    .grid { grid-template-columns: 1fr; }
    .card-image-container { height: 180px; }
}