﻿/* ==========================================================================
   VARIABLES LOCALES
   ========================================================================== */

:root {
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: var(--base-color);
    --primary-dark: #163a70;
    --primary-soft: #eff6ff;
    --card: #ffffff;
    --shadow-soft: 0 10px 24px rgba(17, 24, 39, 0.06);
    --radius-lg: 18px;
    --radius-md: 14px;
    --max: 1100px;
}


/* ==========================================================================
   LAYOUT GENERAL
   ========================================================================== */

.wrap {
    margin: 0 auto;
    padding: 28px 20px 56px;
}

.hero {
    margin-bottom: 24px;
    text-align: left;
}

.section {
    margin-top: 18px;
}

.hr-resalte {
    margin: 10px 0 35px;
}

.pie-fam {
    margin-top: 35px;
}


/* ==========================================================================
   TÍTULOS / TEXTO
   ========================================================================== */

.h1 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: clamp(2rem, 1.9vw, 2.3rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.lead-title {
    margin: 0;
    color: var(--muted);
    font-size: 1.6rem;
    line-height: 1.75;
}


/* ==========================================================================
   GRID DE PIEZAS
   ========================================================================== */

.brandsGrid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}


/* ==========================================================================
   TARJETA DE PIEZA / FAMILIA
   ========================================================================== */

.brandChip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    padding: 8px 10px;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .brandChip:hover {
        border-color: #c7d2fe;
        box-shadow: var(--shadow-soft);
        transform: translateY(-2px);
    }

.brandChip__iconWrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--primary-soft);
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.brandChip__icon {
    color: var(--primary-dark);
    font-size: 1.95rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.brandChip__name {
    display: block;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.brandChip:hover .brandChip__iconWrap {
    background: var(--primary);
    transform: translateY(-1px);
}

.brandChip:hover .brandChip__icon {
    color: #fff;
}


/* ==========================================================================
   MENSAJE FOOT
   ========================================================================== */

.recambio-box {
    background: #f8fafc;
    border-radius: 14px;
}

    .recambio-box h4 {
        font-size: 1.9rem;
    }

.div-fk {
    margin: 0 auto 70px;
}

.btn-fk {
    margin: 20px auto;
    padding: 15px 22px !important;
    font-size: 1.5rem;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199.98px) {
    .brandsGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .brandsGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brandChip {
        min-height: 140px;
    }
}

@media (max-width: 767.98px) {
    .wrap {
        padding: 24px 14px 46px;
    }

    .brandsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .brandChip {
        min-height: 130px;
        padding: 16px 10px;
    }

    .brandChip__iconWrap {
        width: 56px;
        height: 56px;
    }

    .brandChip__icon {
        font-size: 1.7rem;
    }

    .brandChip__name {
        font-size: 0.95rem;
    }
}

@media (max-width: 479.98px) {
    .brandsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .h1 {
        font-size: 1.7rem;
    }

    .lead-title {
        font-size: 1.2rem;
    }

    .ornamento::before {
        letter-spacing: -5.3px;
    }
}
