:root {
    --guindo: #7a0d0f;
    --plomo: #1f2a37;
    --dorado: #E67E22;
    --blanco: #ffffff;
    --texto: #5f6874;
    --fondo: #f4f6f8;
    --gris: #e9eef2;
}

/* Tema específico para OBP: elegante y limpio (azul carbón + cobre) */
body.empresa-obp {
    --guindo: #1f2a37;
    --dorado: #b85f2a;
    --plomo: #1f2a37;
    --texto: #5f6874;
    --fondo: #f7f8fa;
    --blanco: #ffffff;
}

/* Tema específico para CMJJ: minería (turquesa) */
body.empresa-cmjj {
    --guindo: #0b6e8f;
    --dorado: #00bfa6;
    --plomo: #08323a;
    --texto: #5f6874;
    --fondo: #f4f6f8;
    --blanco: #ffffff;
}

/* Tema específico para Comercio de Explosivos (rojo guindo + dorado) */
body.empresa-explosivos {
    --guindo: #7a0d18;
    --dorado: #d98c2b;
    --plomo: #111318;
    --texto: #5f6874;
    --fondo: #f4f6f8;
    --blanco: #ffffff;
}

body.empresa-obp .empresa-banner::before {
    background: linear-gradient(rgba(18, 27, 39, 0.72), rgba(18, 27, 39, 0.86));
}

body.empresa-obp .empresa-section.alt {
    background: linear-gradient(135deg, #f7f8fa 0%, #eef2f6 100%);
}

body.empresa-obp .servicio_card,
body.empresa-obp .capacidad_card,
body.empresa-obp .valor_card,
body.empresa-obp .proyecto_card {
    border: 1px solid rgba(31, 42, 55, 0.1);
    box-shadow: 0 15px 35px rgba(31, 42, 55, 0.08);
}

body.empresa-obp .servicio_card .servicio_texto h3,
body.empresa-obp .valor_card i,
body.empresa-obp .estadisticas_empresa .dato h2 {
    color: var(--guindo);
}

body.empresa-obp .logo_nombre {
    color: #ffffff;
}

body.empresa-obp .empresa-banner .contenido_banner a {
    background: linear-gradient(90deg, var(--guindo), #2f4561);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(31, 42, 55, 0.2);
}

body.empresa-obp .titulo-banner-obp {
    animation: slide-in-left 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.empresa-obp .hero-subtitle {
    margin-bottom: 28px;
}

body.empresa-obp .nosotros-indicators {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

body.empresa-obp .nosotros-indicators .indicator-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f7f8fa;
    border: 1px solid rgba(31, 42, 55, 0.1);
    color: var(--plomo);
    font-weight: 600;
}

body.empresa-obp .nosotros-indicators i {
    color: var(--dorado);
}

/* Footer: mismo estilo para las 3 páginas de empresa (beige + acento guindo) */
body.empresa-explosivos footer,
body.empresa-cmjj footer,
body.empresa-obp footer {
    background: linear-gradient(135deg, #f3efe6 0%, #e8dfcf 100%);
    color: #2f2b26;
}

body.empresa-explosivos footer .footer_contenedor,
body.empresa-cmjj footer .footer_contenedor,
body.empresa-obp footer .footer_contenedor {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr 1fr;
    gap: 42px;
    align-items: flex-start;
}

body.empresa-explosivos footer .footer_logo img,
body.empresa-cmjj footer .footer_logo img,
body.empresa-obp footer .footer_logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 120px;
    max-width: 260px;
    margin-bottom: 18px;
}

body.empresa-cmjj footer .footer_logo img {
    max-width: 520px;
    max-height: 230px;
}

body.empresa-obp footer .footer_logo img {
    max-width: 340px;
    max-height: 165px;
}

body.empresa-explosivos footer .footer_logo p,
body.empresa-cmjj footer .footer_logo p,
body.empresa-obp footer .footer_logo p,
body.empresa-explosivos footer .footer_links a,
body.empresa-cmjj footer .footer_links a,
body.empresa-obp footer .footer_links a,
body.empresa-explosivos footer .footer_contacto p,
body.empresa-cmjj footer .footer_contacto p,
body.empresa-obp footer .footer_contacto p,
body.empresa-explosivos footer .footer_contacto a,
body.empresa-cmjj footer .footer_contacto a,
body.empresa-obp footer .footer_contacto a {
    color: #3f3a34;
}

body.empresa-explosivos footer .footer_links,
body.empresa-cmjj footer .footer_links,
body.empresa-obp footer .footer_links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

body.empresa-explosivos footer .footer_links h3,
body.empresa-cmjj footer .footer_links h3,
body.empresa-obp footer .footer_links h3 {
    margin-bottom: 2px;
}

body.empresa-explosivos footer .footer_links a,
body.empresa-cmjj footer .footer_links a,
body.empresa-obp footer .footer_links a {
    display: block;
    width: fit-content;
    line-height: 1.45;
}

body.empresa-explosivos footer .footer_links h3,
body.empresa-cmjj footer .footer_links h3,
body.empresa-obp footer .footer_links h3,
body.empresa-explosivos footer .footer_contacto h3,
body.empresa-cmjj footer .footer_contacto h3,
body.empresa-obp footer .footer_contacto h3 {
    color: #7a0d18;
}

body.empresa-explosivos footer .footer_links a:hover,
body.empresa-cmjj footer .footer_links a:hover,
body.empresa-obp footer .footer_links a:hover,
body.empresa-explosivos footer .footer_contacto a:hover,
body.empresa-cmjj footer .footer_contacto a:hover,
body.empresa-obp footer .footer_contacto a:hover {
    color: #8a1f2b;
}

body.empresa-explosivos footer .social_links a,
body.empresa-cmjj footer .social_links a,
body.empresa-obp footer .social_links a {
    background: rgba(122, 13, 24, 0.10);
    color: #7a0d18;
}

body.empresa-explosivos footer .social_links a:hover,
body.empresa-cmjj footer .social_links a:hover,
body.empresa-obp footer .social_links a:hover {
    background: #7a0d18;
    color: #ffffff;
}

body.empresa-explosivos footer .creditos,
body.empresa-cmjj footer .creditos,
body.empresa-obp footer .creditos {
    background: transparent;
    border-top-color: rgba(122, 13, 24, 0.18);
    color: #5b5148;
}

body {
    background: var(--blanco);
    color: var(--plomo);
}

section {
    padding: 110px 8%;
}

.empresa-banner {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    animation: bannerFade 1.2s ease-out both;
}

.empresa-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75));
}

.empresa-banner .contenido_banner {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    text-align: center;
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: bannerContentReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.empresa-banner .contenido_banner h1 {
    font-size: clamp(2.6rem, 4.6vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 22px;
    font-weight: 700;
    font-family: 'Montserrat','Inter',sans-serif;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-shadow: 0 8px 24px rgba(0,0,0,0.35);
    background: linear-gradient(90deg, #ffffff 0%, #d9e8f2 45%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 640px;
    animation: titleSlide 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.empresa-banner .contenido_banner p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.85;
    color: #e6f0f5;
    margin-bottom: 32px;
    font-weight: 400;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.empresa-banner .contenido_banner a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.8px;
    font-size: 1.05rem;
    padding: 13px 32px;
    border-radius: 999px;
    display: inline-block;
    background: linear-gradient(90deg, var(--guindo), #2f4561);
    transition: 0.3s ease;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    box-shadow: 0 10px 25px rgba(31, 42, 55, 0.25);
    opacity: 0;
    transform: translateY(18px);
    animation: buttonAppear 0.9s ease-out 1.35s forwards;
}

.empresa-banner .contenido_banner a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

@keyframes bannerFade {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bannerContentReveal {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleSlide {
    0% {
        opacity: 0;
        transform: translateX(-120px) translateY(8px);
    }
    70% {
        opacity: 1;
        transform: translateX(20px) translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes buttonAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empresa-section {
    background: var(--blanco);
}

.empresa-section.alt {
    background: var(--fondo);
}

.servicios_empresa,
.servicios_grid,
.capacidades_empresa,
.valores_empresa,
.estadisticas_empresa,
.proyectos_empresa {
    display: grid;
    gap: 30px;
}

.servicios_empresa,
.servicios_grid {
    grid-template-columns: repeat(3, 1fr);
}

.servicios_grid .servicio_card {
    text-align: center;
    padding: 28px 22px;
}

.servicios_grid .servicio_card h3 {
    color: var(--guindo);
    margin-bottom: 12px;
    font-size: 1.12rem;
}

.servicios_grid .servicio_card p {
    color: var(--texto);
    line-height: 1.65;
    margin: 0;
}

.experiencia-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.experiencia-card {
    background: #ffffff;
    border: 1px solid rgba(31, 42, 55, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(31, 42, 55, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experiencia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(31, 42, 55, 0.14);
}

.experiencia-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.experiencia-card h3,
.experiencia-card p {
    padding: 0 20px;
}

.experiencia-card h3 {
    margin: 20px 0 10px;
    color: var(--guindo);
    font-size: 1.2rem;
}

.experiencia-card p {
    margin-bottom: 22px;
    color: var(--texto);
    line-height: 1.65;
}

.servicios_empresa.servicios-six {
    grid-template-columns: repeat(3, 1fr);
}

.servicio_card .servicio_icon {
    background: linear-gradient(135deg, var(--dorado), #e8a556);
    color: #ffffff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto 18px;
    font-size: 1.8rem;
}

.servicio_card.servicio_icon {
    padding: 20px 0;
}

.servicio_card img,
.proyecto_card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.servicios_apoyo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.apoyo_item {
    background: #ffffff;
    border: 1px solid rgba(122, 13, 15, 0.15);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.apoyo_item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(122, 13, 15, 0.15);
    border-color: var(--dorado);
}

.apoyo_item i {
    font-size: 2.5rem;
    color: var(--dorado);
    margin-bottom: 12px;
    display: block;
}

.apoyo_item h4 {
    color: var(--guindo);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', 'Montserrat', sans-serif;
}

.capacidades_empresa {
    grid-template-columns: repeat(3, 1fr);
}

.capacidad_icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--dorado), #e8a556);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
}

.valores_empresa {
    grid-template-columns: repeat(5, 1fr);
}

.servicio_card,
.capacidad_card,
.valor_card,
.proyecto_card {
    background: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.servicio_card:hover,
.capacidad_card:hover,
.valor_card:hover,
.proyecto_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.servicio_card img,
.proyecto_card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.servicio_card .servicio_texto {
    padding: 25px;
}

.servicio_card .servicio_texto h3,
.capacidad_card h3,
.valor_card h3 {
    color: var(--guindo);
    margin-bottom: 10px;
    font-weight: 700;
    font-family: 'Montserrat','Inter',sans-serif;
}

.servicio_card .servicio_texto p,
.capacidad_card p,
.valor_card p,
.texto_nosotros p,
.proyecto_card p,
.empresa_extra .extra_card p {
    color: var(--texto);
    line-height: 1.85;
    font-size: 1.05rem;
    font-weight: 400;
    font-family: 'Poppins', 'Montserrat', sans-serif;
}

.capacidades_empresa {
    grid-template-columns: repeat(3, 1fr);
}

.capacidad_card {
    text-align: center;
    padding: 40px 20px;
}

.capacidad_card i {
    font-size: 2rem;
    color: var(--dorado);
    margin-bottom: 15px;
}

.proyectos_empresa {
    grid-template-columns: repeat(3, 1fr);
}

.proyectos_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.proyecto_card {
    position: relative;
}

.proyecto_card img {
    transition: transform 0.6s ease;
}

.proyecto_card:hover img {
    transform: scale(1.08);
}

.servicios-complementarios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.servicios-complementarios-grid .proyecto_card {
    min-height: 100%;
    border: 1px solid rgba(31, 42, 55, 0.08);
    box-shadow: 0 16px 40px rgba(31, 42, 55, 0.10);
}

.servicios-complementarios-grid .proyecto_card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.78) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.servicios-complementarios-grid .proyecto_card:hover::before {
    opacity: 0.95;
}

.servicios-complementarios-grid .proyecto_card img {
    height: 280px;
    transition: transform 0.7s ease, filter 0.7s ease;
    filter: saturate(1.02);
}

.servicios-complementarios-grid .proyecto_card:hover img {
    transform: scale(1.06);
    filter: saturate(1.12);
}

.servicios-complementarios-grid .proyecto_info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 22px 22px;
    background: transparent;
    color: var(--blanco);
    z-index: 2;
}

.servicios-complementarios-grid .proyecto_info h3 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.servicios-complementarios-grid .proyecto_info p {
    color: rgba(255,255,255,0.94);
    font-size: 0.98rem;
    line-height: 1.7;
}

.proyecto_info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.78), transparent);
    color: var(--blanco);
}

.valores_empresa {
    grid-template-columns: repeat(5, 1fr);
}

.valor_card {
    padding: 30px 20px;
    text-align: center;
}

.valor_card i {
    font-size: 2rem;
    color: var(--guindo);
    margin-bottom: 12px;
}

.estadisticas_empresa {
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.estadisticas_empresa .dato {
    padding: 20px 10px;
}

.estadisticas_empresa .dato h2 {
    font-size: 3rem;
    color: var(--guindo);
    margin-bottom: 10px;
}

.estadisticas_empresa .dato p {
    color: var(--texto);
    font-weight: 600;
}

.contacto_empresa {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

.contacto_empresa .informacion,
.contacto_empresa form {
    background: linear-gradient(135deg, #ffffff 0%, #f7f2ff 100%);
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(91, 46, 138, 0.10);
    border: 1px solid rgba(91, 46, 138, 0.12);
}

.contacto_empresa .informacion h3 {
    color: var(--guindo);
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.contacto_empresa .informacion p,
.contacto_empresa .informacion a {
    color: var(--plomo);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.contacto_empresa .informacion i {
    color: var(--guindo);
    font-size: 1rem;
}

.contacto_empresa form input,
.contacto_empresa form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e2d4f7;
    border-radius: 10px;
    background: #fff;
    color: var(--plomo);
    font-family: inherit;
}

.contacto_empresa form input::placeholder,
.contacto_empresa form textarea::placeholder {
    color: #8b7b97;
}

.contacto_empresa form button {
    background: linear-gradient(90deg, var(--guindo), var(--dorado));
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(91, 46, 138, 0.20);
}

.contacto_empresa form button:hover {
    transform: translateY(-2px);
}

.empresa_extra {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.empresa_extra .extra_card {
    background: linear-gradient(135deg, #ffffff 0%, #f7f2ff 100%);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(91, 46, 138, 0.12);
    box-shadow: 0 12px 30px rgba(91, 46, 138, 0.08);
}

.empresa_extra .extra_card h3 {
    color: var(--guindo);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.empresa_extra .extra_card p {
    color: var(--texto);
    line-height: 1.9;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 500;
}

@media (max-width: 980px) {
    .servicios_empresa,
    .servicios_empresa.servicios-six,
    .servicios_grid,
    .capacidades_empresa,
    .valores_empresa,
    .estadisticas_empresa,
    .proyectos_empresa,
    .experiencia-grid,
    .contacto_empresa {
        grid-template-columns: 1fr 1fr;
    }

    .servicios_apoyo {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 5%;
    }

    .servicios_empresa,
    .servicios_empresa.servicios-six,
    .servicios_grid,
    .capacidades_empresa,
    .valores_empresa,
    .estadisticas_empresa,
    .proyectos_empresa,
    .contacto_empresa,
    .servicios_apoyo {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .empresa_extra {
        grid-template-columns: 1fr;
    }

    .empresa-banner {
        min-height: 520px;
        padding: 40px 4%;
    }

    .empresa-banner .contenido_banner {
        width: 100%;
        max-width: 680px;
        padding: 0 16px;
        margin: 0 auto;
    }

    .empresa-banner .contenido_banner h1 {
        font-size: clamp(2.2rem, 7vw, 3rem);
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .empresa-banner .contenido_banner p {
        font-size: 0.98rem;
        line-height: 1.8;
        margin-bottom: 28px;
    }

    .empresa-banner .contenido_banner a {
        display: inline-flex;
        padding: 12px 24px;
    }

    .empresa-banner {
        background-position: center center;
    }

    .empresa-banner .contenido_banner {
        max-width: 100%;
        width: 100%;
    }

    .empresa-banner .contenido_banner h1 {
        word-break: break-word;
    }
}

@media (max-width: 650px) {
    section {
        padding: 70px 4%;
    }

    .empresa-banner {
        min-height: 480px;
        padding: 30px 4%;
    }

    .empresa-banner .contenido_banner {
        padding: 0 12px;
    }

    .empresa-banner .contenido_banner h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .empresa-banner .contenido_banner p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .empresa-banner .contenido_banner a {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
    }

    .empresa-extra,
    .contacto_empresa,
    .servicios_empresa,
    .servicios_grid,
    .experiencia-grid,
    .capacidades_empresa,
    .valores_empresa,
    .estadisticas_empresa,
    .proyectos_empresa {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .empresa-extra .extra_card,
    .contacto_empresa .informacion,
    .contacto_empresa form {
        padding: 25px;
    }

    body.empresa-obp footer .footer_contenedor,
    body.empresa-cmjj footer .footer_contenedor,
    body.empresa-explosivos footer .footer_contenedor {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: stretch;
    }

    body.empresa-obp footer .footer_contenedor > div,
    body.empresa-cmjj footer .footer_contenedor > div,
    body.empresa-explosivos footer .footer_contenedor > div {
        width: 100%;
    }

    body.empresa-obp footer .footer_logo img,
    body.empresa-cmjj footer .footer_logo img,
    body.empresa-explosivos footer .footer_logo img {
        max-width: 220px;
        max-height: 105px;
        height: auto;
    }

    body.empresa-cmjj footer .footer_logo img {
        max-width: 360px;
        max-height: 175px;
    }

    body.empresa-obp footer .footer_logo img {
        max-width: 280px;
        max-height: 135px;
    }

    body.empresa-obp .nosotros-indicators {
        grid-template-columns: 1fr;
    }

    .footer_links a,
    .footer_contacto p {
        word-break: break-word;
    }
}

body.empresa-obp .capacidades_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}

body.empresa-obp .capacidades_grid .capacidad_card {
    position: relative;
    min-height: 245px;
    padding: 34px 20px 28px;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.98)),
        radial-gradient(circle at top right, rgba(184, 95, 42, 0.16), transparent 42%);
}

body.empresa-obp .capacidades_grid .capacidad_card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dorado), #2f4561);
}

body.empresa-obp .capacidades_grid .capacidad_card i {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(184, 95, 42, 0.11);
    color: var(--dorado);
    font-size: 1.75rem;
}

body.empresa-obp .capacidades_grid .capacidad_card h3 {
    margin-bottom: 12px;
    color: var(--plomo);
    font-size: 1.18rem;
}

body.empresa-obp .capacidades_grid .capacidad_card p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.65;
}

@media (max-width: 1100px) {
    body.empresa-obp .capacidades_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    body.empresa-obp .capacidades_grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.empresa-obp .capacidades_grid .capacidad_card {
        min-height: auto;
        padding: 30px 18px 24px;
    }
}

body.empresa-obp .valores_grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}

body.empresa-obp .valores_grid .valor_card {
    position: relative;
    flex: 0 1 calc((100% - 66px) / 4);
    min-width: 240px;
    min-height: 235px;
    padding: 34px 22px 28px;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.96)),
        radial-gradient(circle at 20% 0%, rgba(47, 69, 97, 0.12), transparent 38%);
    border: 1px solid rgba(31, 42, 55, 0.1);
    box-shadow: 0 14px 34px rgba(31, 42, 55, 0.08);
    isolation: isolate;
}

body.empresa-obp .valores_grid .valor_card::before {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, #2f4561, var(--dorado));
    transform: scaleX(0.55);
    transform-origin: center;
    transition: transform 0.35s ease;
}

body.empresa-obp .valores_grid .valor_card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -38px;
    top: -38px;
    border-radius: 50%;
    background: rgba(184, 95, 42, 0.1);
    z-index: -1;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

body.empresa-obp .valores_grid .valor_card:hover {
    transform: translateY(-10px);
    border-color: rgba(184, 95, 42, 0.28);
    box-shadow: 0 22px 46px rgba(31, 42, 55, 0.14);
}

body.empresa-obp .valores_grid .valor_card:hover::before {
    transform: scaleX(1);
}

body.empresa-obp .valores_grid .valor_card:hover::after {
    opacity: 0.9;
    transform: scale(1.18);
}

body.empresa-obp .valores_grid .valor_card i {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(31, 42, 55, 0.1), rgba(184, 95, 42, 0.14));
    color: var(--dorado);
    font-size: 1.75rem;
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

body.empresa-obp .valores_grid .valor_card:hover i {
    transform: translateY(-3px) rotate(-4deg);
    background: linear-gradient(135deg, var(--dorado), #2f4561);
    color: #ffffff;
}

body.empresa-obp .valores_grid .valor_card h3 {
    margin-bottom: 12px;
    color: var(--plomo);
    font-size: 1.18rem;
}

body.empresa-obp .valores_grid .valor_card p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.65;
}

body.empresa-obp .elegir-obp {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%),
        radial-gradient(circle at 12% 18%, rgba(184, 95, 42, 0.12), transparent 34%);
}

body.empresa-obp .elegir-obp::before {
    content: "";
    position: absolute;
    inset: 70px 8% auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31, 42, 55, 0.18), transparent);
}

body.empresa-obp .razones_grid {
    counter-reset: razon;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
}

body.empresa-obp .razones_grid .razon_card {
    counter-increment: razon;
    position: relative;
    min-height: 250px;
    padding: 34px 24px 30px;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.96)),
        radial-gradient(circle at 100% 0%, rgba(184, 95, 42, 0.14), transparent 36%);
    border: 1px solid rgba(31, 42, 55, 0.1);
    box-shadow: 0 16px 36px rgba(31, 42, 55, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.empresa-obp .razones_grid .razon_card::before {
    content: "0" counter(razon);
    position: absolute;
    top: 20px;
    right: 22px;
    color: rgba(31, 42, 55, 0.09);
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1;
    transition: color 0.35s ease, transform 0.35s ease;
}

body.empresa-obp .razones_grid .razon_card::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--dorado), #2f4561);
    transform: scaleX(0.42);
    transform-origin: left;
    transition: transform 0.35s ease;
}

body.empresa-obp .razones_grid .razon_card:hover {
    transform: translateY(-10px);
    border-color: rgba(184, 95, 42, 0.28);
    box-shadow: 0 24px 52px rgba(31, 42, 55, 0.14);
}

body.empresa-obp .razones_grid .razon_card:hover::before {
    color: rgba(184, 95, 42, 0.16);
    transform: translateY(-4px);
}

body.empresa-obp .razones_grid .razon_card:hover::after {
    transform: scaleX(1);
}

body.empresa-obp .razon_icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(31, 42, 55, 0.1), rgba(184, 95, 42, 0.15));
    color: var(--dorado);
    font-size: 1.8rem;
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

body.empresa-obp .razones_grid .razon_card:hover .razon_icon {
    transform: translateY(-4px) scale(1.04);
    background: linear-gradient(135deg, var(--dorado), #2f4561);
    color: #ffffff;
}

body.empresa-obp .razones_grid .razon_card h3 {
    position: relative;
    margin: 0 0 12px;
    padding-right: 26px;
    color: var(--plomo);
    font-family: 'Montserrat','Inter',sans-serif;
    font-size: 1.22rem;
    line-height: 1.3;
}

body.empresa-obp .razones_grid .razon_card p {
    margin: 0;
    color: var(--texto);
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 0.96rem;
    line-height: 1.7;
}

body.empresa-obp .trabajar-obp {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, #f7f8fa 0%, #eef2f6 100%),
        radial-gradient(circle at 90% 8%, rgba(184, 95, 42, 0.14), transparent 34%);
}

body.empresa-obp .trabajar-obp .metodologia-timeline {
    position: relative;
    display: grid;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 0;
}

body.empresa-obp .trabajar-obp .metodologia-timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 50%;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--dorado), rgba(47, 69, 97, 0.55), var(--dorado));
    transform: translateX(-50%);
}

body.empresa-obp .trabajar-obp .timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 92px 1fr;
    align-items: center;
    min-height: 126px;
}

body.empresa-obp .trabajar-obp .timeline-item:nth-of-type(4n + 1) .timeline-content {
    grid-column: 1;
    text-align: right;
}

body.empresa-obp .trabajar-obp .timeline-item:nth-of-type(4n + 3) .timeline-content {
    grid-column: 3;
}

body.empresa-obp .trabajar-obp .timeline-marker {
    grid-column: 2;
    grid-row: 1;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dorado), #2f4561);
    color: #ffffff;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(31, 42, 55, 0.18);
    z-index: 2;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.empresa-obp .trabajar-obp .timeline-content {
    position: relative;
    padding: 26px 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(31, 42, 55, 0.1);
    box-shadow: 0 15px 36px rgba(31, 42, 55, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.empresa-obp .trabajar-obp .timeline-content::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(31, 42, 55, 0.1);
    border-right: 1px solid rgba(31, 42, 55, 0.1);
    transform: translateY(-50%) rotate(45deg);
}

body.empresa-obp .trabajar-obp .timeline-item:nth-of-type(4n + 1) .timeline-content::before {
    right: -10px;
}

body.empresa-obp .trabajar-obp .timeline-item:nth-of-type(4n + 3) .timeline-content::before {
    left: -10px;
    transform: translateY(-50%) rotate(225deg);
}

body.empresa-obp .trabajar-obp .timeline-content h3 {
    margin: 0 0 10px;
    color: var(--plomo);
    font-family: 'Montserrat','Inter',sans-serif;
    font-size: 1.22rem;
    line-height: 1.25;
}

body.empresa-obp .trabajar-obp .timeline-content p {
    margin: 0;
    color: var(--texto);
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 0.96rem;
    line-height: 1.7;
}

body.empresa-obp .trabajar-obp .timeline-item:hover .timeline-marker {
    transform: scale(1.08);
    box-shadow: 0 18px 36px rgba(184, 95, 42, 0.26);
}

body.empresa-obp .trabajar-obp .timeline-item:hover .timeline-content {
    transform: translateY(-6px);
    border-color: rgba(184, 95, 42, 0.28);
    box-shadow: 0 22px 48px rgba(31, 42, 55, 0.13);
}

body.empresa-obp .trabajar-obp .timeline-arrow {
    display: none;
}

@media (max-width: 1100px) {
    body.empresa-obp .valores_grid .valor_card {
        flex-basis: calc((100% - 22px) / 2);
    }

    body.empresa-obp .razones_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.empresa-obp .trabajar-obp .metodologia-timeline::before {
        left: 31px;
    }

    body.empresa-obp .trabajar-obp .timeline-item {
        grid-template-columns: 62px 1fr;
        gap: 18px;
    }

    body.empresa-obp .trabajar-obp .timeline-marker {
        grid-column: 1;
    }

    body.empresa-obp .trabajar-obp .timeline-item:nth-of-type(4n + 1) .timeline-content,
    body.empresa-obp .trabajar-obp .timeline-item:nth-of-type(4n + 3) .timeline-content {
        grid-column: 2;
        text-align: left;
    }

    body.empresa-obp .trabajar-obp .timeline-item:nth-of-type(4n + 1) .timeline-content::before,
    body.empresa-obp .trabajar-obp .timeline-item:nth-of-type(4n + 3) .timeline-content::before {
        left: -10px;
        right: auto;
        transform: translateY(-50%) rotate(225deg);
    }
}

@media (max-width: 650px) {
    body.empresa-obp .valores_grid {
        gap: 18px;
    }

    body.empresa-obp .valores_grid .valor_card {
        flex-basis: 100%;
        min-width: 0;
        min-height: auto;
        padding: 30px 18px 24px;
    }

    body.empresa-obp .elegir-obp::before {
        display: none;
    }

    body.empresa-obp .razones_grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.empresa-obp .razones_grid .razon_card {
        min-height: auto;
        padding: 30px 20px 26px;
    }

    body.empresa-obp .razones_grid .razon_card h3 {
        padding-right: 18px;
    }

    body.empresa-obp .trabajar-obp .metodologia-timeline {
        gap: 18px;
    }

    body.empresa-obp .trabajar-obp .metodologia-timeline::before {
        left: 25px;
    }

    body.empresa-obp .trabajar-obp .timeline-item {
        grid-template-columns: 50px 1fr;
        gap: 14px;
        min-height: auto;
    }

    body.empresa-obp .trabajar-obp .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    body.empresa-obp .trabajar-obp .timeline-content {
        padding: 22px 18px;
    }

    body.empresa-obp .trabajar-obp .timeline-content h3 {
        font-size: 1.08rem;
    }
}
