﻿/* ============================================================
   EMPRESA / CAT - HERO MODERNO
   ============================================================ */

.cat-hero {
    position: relative;
    padding: 85px 0 80px;
    background: linear-gradient(135deg, #fcf6f7 0%, #f8eef1 45%, #f4f1f3 100%);
    overflow: hidden;
}

    .cat-hero::before {
        content: "";
        position: absolute;
        right: -180px;
        top: -180px;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(227, 6, 19, 0.08);
        pointer-events: none;
    }

/* Ojo: si este CSS es global, ocultará las migas en toda la web */
.breadcrumb__section {
    display: none;
}

.cat-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 70px;
    align-items: center;
}

.cat-hero__media {
    position: relative;
    min-height: 460px;
}

.cat-hero__image {
    position: absolute;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

    .cat-hero__image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cat-hero__image--main {
    left: 0;
    bottom: 0;
    width: 68%;
    height: 345px;
}

.cat-hero__image--secondary {
    right: 0;
    top: 0;
    width: 58%;
    height: 280px;
    border: 8px solid #ffffff;
}

.cat-hero__badge {
    position: absolute;
    left: 38px;
    top: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
}

    .cat-hero__badge span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        color: #ffffff;
        background: #e30613;
        font-size: 15px;
        font-weight: 800;
    }

    .cat-hero__badge strong {
        display: block;
        color: #111827;
        font-size: 15px;
        line-height: 1.2;
    }

.cat-hero__subtitle {
    display: inline-block;
    margin-bottom: 16px;
    color: #e30613;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.cat-hero__title {
    margin: 0 0 24px;
    color: #111827;
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
}

.cat-hero__text {
    margin-bottom: 18px;
    color: #374151;
    font-size: 17px;
    line-height: 1.8;
}

.cat-hero__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 28px 0 0;
}

.cat-hero__feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .cat-hero__feature span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        height: 24px;
        border-radius: 999px;
        color: #ffffff;
        background: #003f4f;
        font-size: 11px;
        font-weight: 800;
    }

    .cat-hero__feature p {
        margin: 0;
        color: #1f2937;
        font-size: 15px;
        font-weight: 600;
    }

.cat-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.cat-hero__author {
    margin-top: 34px;
    padding-left: 18px;
    border-left: 4px solid #e30613;
}

    .cat-hero__author h3 {
        margin: 0 0 4px;
        color: #111827;
        font-size: 18px;
        font-weight: 800;
    }

    .cat-hero__author span {
        color: #4b5563;
        font-size: 15px;
    }


/* ============================================================
   BOTONES CAT
   ============================================================ */

.cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cat-btn--primary {
    color: #ffffff;
    background: #e30613;
    box-shadow: 0 14px 26px rgba(227, 6, 19, 0.26);
}

    .cat-btn--primary:hover {
        color: #ffffff;
        background: #c90010;
        transform: translateY(-2px);
    }

.cat-btn--secondary {
    color: #111827;
    background: #ffffff;
    border: 1px solid #d7dde3;
}

    .cat-btn--secondary:hover {
        color: #e30613;
        border-color: #e30613;
        transform: translateY(-2px);
    }


/* ============================================================
   SERVICIOS CAT
   ============================================================ */

.cat-services {
    padding: 70px 0;
    background: #ffffff;
}

.cat-services__header {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

    .cat-services__header span {
        display: inline-block;
        margin-bottom: 12px;
        color: #e30613;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }

    .cat-services__header h2 {
        margin: 0 0 14px;
        color: #111827;
        font-size: 3rem;
        line-height: 1.2;
        font-weight: 800;
    }

    .cat-services__header p {
        margin: 0;
        color: #4b5563;
        font-size: 17px;
        line-height: 1.7;
    }

.cat-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cat-service-card {
    position: relative;
    padding: 32px 28px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

    .cat-service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
        border-color: rgba(227, 6, 19, 0.22);
    }

.cat-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #e30613 0%, #a8000b 100%);
    font-size: 17px;
    font-weight: 900;
}

.cat-service-card h3 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
}

.cat-service-card p {
    margin: 0;
    color: #4b5563;
    font-size: 15.5px;
    line-height: 1.7;
}


/* ============================================================
   BANNER RECAMBIOS - AJUSTE
   ============================================================ */

.banner-msg__subtitle {
    max-width: 650px;
}

.banner-msg__img-empresa {
    position: absolute;
    top: -55px;
    right: clamp(20px, 8vw, 320px);
    z-index: 3;
    width: auto;
    height: 390px;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.24));
    pointer-events: none;
    user-select: none;
    transform: rotate(5deg) scale(0.94);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1700px) {
    .banner-msg__img-empresa {
        right: clamp(-10px, 4vw, 120px);
    }
}

@media (max-width: 1199px) {
    .cat-hero__grid {
        gap: 45px;
    }

    .cat-hero__title {
        font-size: 36px;
    }
}

@media (max-width: 991.98px) {
    .cat-hero {
        padding: 55px 0 60px;
    }

    .cat-hero__grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .cat-hero__media {
        width: 100%;
        max-width: 620px;
        min-height: 390px;
        margin: 0 auto;
    }

    .cat-hero__title {
        font-size: 32px;
    }

    .cat-services__grid {
        grid-template-columns: 1fr;
    }

    .cat-services__header h2 {
        font-size: 28px;
    }

    .banner-msg__img-empresa {
        top: -40px;
        right: -20px;
        height: 280px;
    }
}

@media (max-width: 767.98px) {
    .banner-msg__img-empresa {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .cat-hero__media {
        display: grid;
        gap: 18px;
        min-height: auto;
    }

    .cat-hero__image {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        height: 240px;
    }

    .cat-hero__image--secondary {
        border: none;
    }

    .cat-hero__badge {
        left: 16px;
        top: 16px;
    }

    .cat-hero__title {
        font-size: 28px;
    }

    .cat-hero__text {
        font-size: 16px;
    }

    .cat-hero__actions {
        flex-direction: column;
    }

    .cat-btn {
        width: 100%;
    }
}
