/* Repuestos e Indumentaria — extiende estilos Postventa (pv-*) */

.rep-section {
    max-width: var(--max-width);
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.rep-section-intro {
    max-width: 780px;
    margin-bottom: 2.5rem;
}

.rep-section-intro p {
    color: var(--gris-texto);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.rep-section-intro p:last-child {
    margin-bottom: 0;
}

.rep-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.rep-cat-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--negro);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rep-cat-chip::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.rep-cat-chip:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(204, 0, 0, 0.3);
    text-decoration: none;
    color: var(--negro);
}

.rep-cat-chip:hover::before {
    transform: scaleX(1);
}

.rep-cat-chip-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204, 0, 0, 0.08);
    border-radius: 50%;
    color: var(--brand-primary);
}

.rep-cat-chip-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.rep-cat-chip span {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.rep-cat-chip small {
    font-size: 0.72rem;
    color: var(--gris-texto);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rep-divider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin-bottom: 5rem;
}

.rep-indumentaria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.rep-ind-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    border-top: 3px solid var(--brand-primary);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rep-ind-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.rep-ind-block-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.rep-ind-block-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--negro);
    color: #fff;
    border-radius: 2px;
}

.rep-ind-block-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.rep-ind-block h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--negro);
    line-height: 1.3;
}

.rep-subcat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rep-subcat-list li {
    margin-bottom: 0.35rem;
}

.rep-subcat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    color: var(--gris-texto);
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.rep-subcat-list a::after {
    content: '→';
    color: var(--brand-primary);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rep-subcat-list a:hover {
    background: rgba(204, 0, 0, 0.06);
    color: var(--negro);
    padding-left: 1rem;
    text-decoration: none;
}

.rep-subcat-list a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.rep-cta-triple {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.rep-cta-triple .pv-btn-turno {
    min-width: 220px;
}

.rep-cta-triple .pv-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.1rem 2rem;
    background: transparent;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    min-width: 220px;
}

.rep-cta-triple .pv-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.rep-cta-triple .pv-btn-outline svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Bloques de catálogo con productos */
.rep-cat-block {
    margin-bottom: 3.5rem;
}

.rep-cat-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-primary);
}

.rep-cat-block-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--negro);
    margin: 0;
}

.rep-cat-block-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand-primary);
    text-decoration: none;
    white-space: nowrap;
}

.rep-cat-block-link:hover {
    text-decoration: underline;
}

.rep-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.rep-product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.rep-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.rep-product-card--paused {
    opacity: 0.75;
    border-style: dashed;
}

.rep-product-img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    overflow: hidden;
}

.rep-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.rep-product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.rep-product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
}

.rep-product-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rep-product-body h4 {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.rep-product-body h4 a {
    color: var(--negro);
    text-decoration: none;
}

.rep-product-body h4 a:hover {
    color: var(--brand-primary);
}

.rep-product-body p {
    font-size: 0.82rem;
    color: var(--gris-texto);
    line-height: 1.5;
    margin-bottom: 0.85rem;
    flex: 1;
}

.rep-product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.rep-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.rep-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.85rem;
    background: var(--negro);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.rep-product-btn:hover {
    background: var(--brand-primary);
    color: #fff;
    text-decoration: none;
}

.rep-product-btn--wa {
    background: #25D366;
}

.rep-product-btn--wa:hover {
    background: #1da851;
}

.rep-product-btn--edit {
    background: #f0ad4e;
    width: 100%;
}

.rep-product-btn--edit:hover {
    background: #ec971f;
}

.rep-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fafafa;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.rep-empty p {
    color: var(--gris-texto);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.rep-empty code {
    font-size: 0.85em;
    background: #eee;
    padding: 0.1rem 0.35rem;
    border-radius: 2px;
}

@media (max-width: 992px) {
    .rep-indumentaria-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .rep-section {
        padding: 0 1.25rem;
    }

    .rep-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rep-cta-triple .pv-btn-turno,
    .rep-cta-triple .pv-btn-outline {
        width: 100%;
        min-width: unset;
    }
}
