/* =============================================
   BLC Taller — Servicios de taller mecanico
   ============================================= */

.page-taller .breadcrumb-wrapper,
.page-taller .breadcrumb {
    display: none;
}

.page-taller #wrapper {
    padding: 0 !important;
}

.blc-taller-page {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

/* --- Services — Editorial Industrial (claro) --- */
.blc-tal-services {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #f4f2ee;
    background-image:
        linear-gradient(#e9e5dd 1px, transparent 1px),
        linear-gradient(90deg, #e9e5dd 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: -1px -1px;
    padding: 110px 20px 120px;
    position: relative;
    overflow: hidden;
}

.blc-tal-services::before {
    content: 'TALLER';
    position: absolute;
    top: 30px;
    right: -30px;
    font-size: 260px;
    font-weight: 900;
    color: rgba(20, 20, 20, 0.035);
    letter-spacing: -14px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    font-family: "Roboto", Arial, sans-serif;
}

.blc-tal-services::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #cd0516 0%, #cd0516 30%, transparent 30%, transparent 100%);
    pointer-events: none;
}

.blc-tal-services-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section header */
.blc-tal-services-header {
    margin-bottom: 70px;
    max-width: 720px;
}

.blc-tal-services-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #cd0516;
    margin-bottom: 16px;
    font-family: "Roboto", Arial, sans-serif;
}

.blc-tal-services-heading {
    font-size: 52px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #141414;
    margin: 0 0 22px;
    line-height: 0.95;
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
}

.blc-tal-services-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90px;
    height: 4px;
    background-color: #cd0516;
}

.blc-tal-services-lead {
    font-size: 16px;
    color: rgba(20, 20, 20, 0.65);
    line-height: 1.7;
    margin: 0;
    letter-spacing: 0.2px;
}

/* Grid — shared borders, no gaps */
.blc-tal-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid #e4e0d6;
    box-shadow: 0 40px 80px -30px rgba(20, 20, 20, 0.12);
}

/* Service card */
.blc-tal-svc {
    position: relative;
    padding: 40px 28px 36px;
    border-right: 1px solid #ece8de;
    border-bottom: 1px solid #ece8de;
    background: #fff;
    transition: background 0.35s ease;
    overflow: hidden;
    animation: blcTalSvcFadeUp 0.6s ease both;
    animation-delay: calc(var(--svc-index) * 0.08s);
    display: flex;
    flex-direction: column;
}

.blc-tal-svc:nth-child(4n) { border-right: none; }
.blc-tal-svc:nth-last-child(-n+4) { border-bottom: none; }

.blc-tal-svc:hover {
    background: #fafaf8;
}

.blc-tal-svc:hover .blc-tal-svc-stripe {
    transform: scaleX(1);
}

.blc-tal-svc:hover .blc-tal-svc-num {
    color: #cd0516;
}

.blc-tal-svc:hover .blc-tal-svc-icon {
    transform: translateX(2px);
    color: #cd0516;
}

/* Number — oversized, near invisible */
.blc-tal-svc-num {
    font-size: 68px;
    font-weight: 900;
    color: rgba(20, 20, 20, 0.06);
    line-height: 1;
    margin-bottom: 18px;
    transition: color 0.4s ease;
    font-family: "Roboto", Arial, sans-serif;
    letter-spacing: -2px;
}

.blc-tal-svc-body {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blc-tal-svc-icon {
    font-size: 34px;
    color: #141414;
    display: block;
    margin-bottom: 18px;
    transition: transform 0.35s ease, color 0.35s ease;
    font-variation-settings: 'wght' 300;
}

.blc-tal-svc-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #141414;
    margin: 0 0 12px;
    line-height: 1.3;
}

.blc-tal-svc-text {
    font-size: 14px;
    color: rgba(20, 20, 20, 0.62);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

/* Top red stripe on hover */
.blc-tal-svc-stripe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #cd0516;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

@keyframes blcTalSvcFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Bottom CTA — hoja de servicio (3 pasos) --- */
.blc-tal-cta-bottom {
    margin-top: 90px;
    background: #141414;
    color: #fff;
    padding: 56px 52px 52px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.blc-tal-cta-bottom::before {
    content: 'HOJA';
    position: absolute;
    right: -20px;
    bottom: -50px;
    font-size: 220px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -12px;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    user-select: none;
    font-family: "Roboto", Arial, sans-serif;
}

.blc-tal-cta-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #cd0516;
}

.blc-tal-cta-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.blc-tal-cta-kicker {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #cd0516;
    font-family: "Roboto", Arial, sans-serif;
}

.blc-tal-cta-title {
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 0;
    line-height: 1.05;
}

.blc-tal-cta-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin: 0;
    max-width: 440px;
}

/* Right column — steps + button */
.blc-tal-cta-bottom > .blc-tal-steps,
.blc-tal-cta-bottom > .blc-tal-cta-btn {
    grid-column: 2;
    position: relative;
    z-index: 1;
}

/* Steps — numbered editorial sequence */
.blc-tal-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blc-tal-step {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 18px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding-left 0.3s ease;
}

.blc-tal-step:hover {
    padding-left: 12px;
}

.blc-tal-step-num {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #cd0516;
    font-family: "Roboto", Arial, sans-serif;
}

.blc-tal-step-icon {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-variation-settings: 'wght' 300;
}

.blc-tal-step-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

/* Button */
.blc-tal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    background: #cd0516;
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    border: 2px solid #cd0516;
    transition: all 0.3s ease;
    justify-self: start;
    white-space: nowrap;
}

.blc-tal-cta-btn:hover {
    background: transparent;
    border-color: #fff;
    color: #fff !important;
}

.blc-tal-cta-btn .material-symbols-outlined {
    font-size: 22px;
}

.blc-tal-cta-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.blc-tal-cta-btn:hover .blc-tal-cta-arrow {
    transform: translateX(6px);
}

/* --- Empty state --- */
.blc-tal-empty {
    text-align: center;
    color: rgba(20, 20, 20, 0.4);
    font-size: 16px;
    padding: 80px 0;
    font-style: italic;
    letter-spacing: 1px;
}

/* --- Responsive --- */
@media (max-width: 1199px) {
    .blc-tal-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .blc-tal-svc:nth-child(4n) { border-right: 1px solid #ece8de; }
    .blc-tal-svc:nth-child(3n) { border-right: none; }
    .blc-tal-svc:nth-last-child(-n+4) { border-bottom: 1px solid #ece8de; }
    .blc-tal-svc:nth-last-child(-n+3) { border-bottom: none; }
}

@media (max-width: 991px) {
    .blc-tal-services {
        padding: 80px 20px 90px;
    }
    .blc-tal-services::before {
        font-size: 160px;
    }
    .blc-tal-services-heading {
        font-size: 40px;
    }
    .blc-tal-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blc-tal-svc:nth-child(3n) { border-right: 1px solid #ece8de; }
    .blc-tal-svc:nth-child(2n) { border-right: none; }
    .blc-tal-svc:nth-last-child(-n+3) { border-bottom: 1px solid #ece8de; }
    .blc-tal-svc:nth-last-child(-n+2) { border-bottom: none; }
    .blc-tal-cta-bottom {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 44px 36px 40px;
    }
    .blc-tal-cta-bottom > .blc-tal-steps,
    .blc-tal-cta-bottom > .blc-tal-cta-btn {
        grid-column: 1;
    }
    .blc-tal-cta-bottom::before {
        font-size: 160px;
    }
    .blc-tal-cta-title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .blc-tal-services {
        padding: 60px 15px 70px;
    }
    .blc-tal-services::before {
        font-size: 110px;
        top: 15px;
    }
    .blc-tal-services-heading {
        font-size: 32px;
    }
    .blc-tal-services-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 575px) {
    .blc-tal-services-grid {
        grid-template-columns: 1fr;
    }
    .blc-tal-svc {
        border-right: none !important;
        border-bottom: 1px solid #ece8de;
        padding: 36px 24px 30px;
    }
    .blc-tal-svc:last-child {
        border-bottom: none;
    }
    .blc-tal-svc-num {
        font-size: 56px;
    }
    .blc-tal-cta-btn {
        padding: 14px 24px;
        font-size: 12px;
    }
    .blc-tal-cta-bottom {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }
    .blc-tal-cta-bottom::before {
        width: 56px;
        height: 56px;
    }
}
