.pagina-empresas {
    background-color: #f7f9fc;
}

.hero-empresas {
    position: relative;
    padding: clamp(72px, 8vw, 112px) 24px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 20%, rgb(78 179 247 / 24%) 0 8%, transparent 8.5%),
        linear-gradient(120deg, #031b33 0%, #064a83 58%, #075da8 100%);
}

.hero-empresas::before,
.hero-empresas::after {
    position: absolute;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hero-empresas::before {
    top: -210px;
    right: -110px;
    width: 520px;
    height: 520px;
}

.hero-empresas::after {
    right: 240px;
    bottom: -240px;
    width: 390px;
    height: 390px;
}

.contenido-hero-empresas {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    align-items: center;
    gap: clamp(44px, 8vw, 120px);
    width: min(1160px, 100%);
    margin: 0 auto;
}

.etiqueta-empresas {
    margin: 0 0 16px;
    color: #74c8ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.texto-hero-empresas h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 5.8vw, 72px);
    font-weight: 760;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.texto-hero-empresas h1 span {
    color: #74c8ff;
}

.descripcion-hero-empresas {
    max-width: 650px;
    margin: 28px 0 0;
    color: rgb(255 255 255 / 78%);
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.7;
}

.boton-hero-empresas {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 32px;
    margin-top: 34px;
    padding: 0 22px;
    color: #075da8;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.boton-hero-empresas:hover,
.boton-hero-empresas:focus-visible {
    color: #ffffff;
    background-color: transparent;
    outline: none;
    transform: translateY(-2px);
}

.boton-hero-empresas:focus-visible {
    box-shadow: 0 0 0 4px rgb(116 200 255 / 34%);
}

.resumen-empresas {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 46px);
    background-color: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgb(1 21 38 / 20%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.numero-empresas {
    color: #ffffff;
    font-size: clamp(72px, 9vw, 112px);
    font-weight: 780;
    letter-spacing: -0.08em;
    line-height: 0.78;
}

.resumen-empresas p {
    max-width: 220px;
    margin: 24px 0 0;
    color: rgb(255 255 255 / 84%);
    font-size: 15px;
    line-height: 1.45;
}

.linea-resumen-empresas {
    width: 100%;
    height: 1px;
    margin: 28px 0 20px;
    background-color: rgb(255 255 255 / 24%);
}

.resumen-empresas small {
    color: #74c8ff;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.directorio-empresas {
    padding: clamp(70px, 8vw, 110px) 24px clamp(84px, 10vw, 130px);
}

.encabezado-directorio-empresas {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    align-items: end;
    gap: clamp(36px, 7vw, 100px);
    width: min(1160px, 100%);
    margin: 0 auto 48px;
}

.encabezado-directorio-empresas h2 {
    max-width: 720px;
    margin: 0;
    color: #26313f;
    font-size: clamp(32px, 4.4vw, 52px);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.encabezado-directorio-empresas > p {
    margin: 0;
    color: #697586;
    font-size: 14px;
    line-height: 1.7;
}

.directorio-empresas .etiqueta-empresas {
    color: #075da8;
}

.rejilla-empresas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: min(1160px, 100%);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.rejilla-empresas > li {
    min-width: 0;
}

.tarjeta-empresa {
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #dfe7f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgb(35 61 88 / 7%);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tarjeta-empresa:hover {
    border-color: #b8d3ea;
    box-shadow: 0 20px 42px rgb(35 61 88 / 13%);
    transform: translateY(-5px);
}

.tarjeta-empresa figure {
    display: flex;
    height: 100%;
    flex-direction: column;
    margin: 0;
}

.marco-logo-empresa {
    display: grid;
    min-height: 230px;
    flex: 1;
    padding: 30px 24px;
    background-color: #ffffff;
    place-items: center;
}

.marco-logo-empresa img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 165px;
    object-fit: contain;
    object-position: center;
}

.tarjeta-empresa figcaption {
    min-height: 92px;
    padding: 20px 22px 18px;
    background-color: #fbfcfe;
    border-top: 1px solid #edf1f5;
}

.tarjeta-empresa h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #26313f;
    font-size: 15px;
    font-weight: 760;
    line-height: 1.3;
}

.tarjeta-empresa figcaption span {
    display: block;
    margin-top: 7px;
    color: #7b8795;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-empresas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto clamp(78px, 9vw, 118px);
    padding: clamp(34px, 5vw, 58px);
    color: #ffffff;
    background: linear-gradient(120deg, #03335d 0%, #075da8 100%);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgb(3 51 93 / 16%);
}

.cta-empresas h2 {
    max-width: 730px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3.6vw, 46px);
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.cta-empresas > a {
    display: inline-flex;
    min-height: 46px;
    flex: 0 0 auto;
    align-items: center;
    gap: 28px;
    padding: 0 22px;
    color: #075da8;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.cta-empresas > a:hover,
.cta-empresas > a:focus-visible {
    color: #ffffff;
    background-color: transparent;
    outline: none;
    transform: translateY(-2px);
}

@media (max-width: 980px) {
    .contenido-hero-empresas,
    .encabezado-directorio-empresas {
        grid-template-columns: 1fr;
    }

    .resumen-empresas {
        min-height: 230px;
    }

    .rejilla-empresas {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .encabezado-directorio-empresas > p {
        max-width: 680px;
    }
}

@media (max-width: 760px) {
    .hero-empresas {
        padding-block: 62px 72px;
    }

    .contenido-hero-empresas {
        gap: 38px;
    }

    .resumen-empresas {
        min-height: 0;
    }

    .rejilla-empresas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .marco-logo-empresa {
        min-height: 205px;
        padding: 24px 18px;
    }

    .marco-logo-empresa img {
        height: 145px;
    }

    .cta-empresas {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .texto-hero-empresas h1 {
        font-size: clamp(38px, 12vw, 52px);
    }

    .rejilla-empresas {
        grid-template-columns: 1fr;
    }

    .marco-logo-empresa {
        min-height: 250px;
    }

    .marco-logo-empresa img {
        max-width: 260px;
        height: 185px;
    }

    .cta-empresas {
        width: calc(100% - 32px);
        padding: 34px 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tarjeta-empresa,
    .boton-hero-empresas,
    .cta-empresas > a {
        transition: none;
    }
}
