/* OPTupply — estilos de componentes (restaurado tras Undo All) */

/* --- Navbar marca --- */
.navbar-optupply.navbar-light {
    --bs-navbar-brand-color: #2563eb;
    --bs-navbar-brand-hover-color: #1d4ed8;
}
.navbar-optupply .navbar-optupply-container {
    padding-left: 0.35rem;
}
@media (min-width: 576px) {
    .navbar-optupply .navbar-optupply-container {
        padding-left: 0.5rem;
    }
}
@media (min-width: 992px) {
    .navbar-optupply .navbar-optupply-container {
        padding-left: 0.65rem;
    }
}
.navbar-optupply-wordmark {
    font-family: "Lato", sans-serif !important;
    font-weight: 100 !important;
    font-size: calc(2.5rem + 1pt) !important;
    color: var(--opt-primary, #2563eb) !important;
    line-height: 1.1;
}
.navbar-optupply-wordmark:hover,
.navbar-optupply-wordmark:focus {
    color: #1d4ed8 !important;
}
.navbar-optupply-logo {
    height: calc(2.5rem + 1pt);
    width: auto;
    object-fit: contain;
    display: block;
}

/* --- Hero: tamaños + subtítulo (sobre tema Bootstrap) --- */
header.masthead h1,
header.masthead .h1 {
    font-size: calc(2rem + 2pt);
}
@media (min-width: 768px) {
    header.masthead h1,
    header.masthead .h1 {
        font-size: calc(3rem + 2pt);
    }
}
header.masthead .masthead-lead {
    font-size: calc(1.4rem + 2pt);
    color: #fff !important;
}

/* --- Masthead variante gris + imagen derecha --- */
/* El tema (styles.css) redefine header.masthead al final con foto + overlay; hay que anularlo con especificidad. */
header.masthead.masthead-split {
    background-color: transparent !important;
    background-image: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow-x: clip;
    position: relative;
}
header.masthead.masthead-split::before,
header.masthead.masthead-split:before {
    display: none !important;
    content: none !important;
}
/* Banda gris a todo el ancho (coincide con el fin del hero a izq./der. de pantalla). */
header.masthead.masthead-split .masthead-split-outer {
    position: relative;
    width: 100%;
    overflow-x: clip;
    background-color: #e1e7ee;
    background-image: linear-gradient(165deg, #edf1f6 0%, #d6dee8 52%, #c3cedc 100%);
    background-repeat: no-repeat;
    background-position: center center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}
header.masthead.masthead-split .masthead-split-title {
    color: var(--opt-dark) !important;
}
header.masthead.masthead-split .masthead-split-title .masthead-title-opt,
header.masthead.masthead-split .masthead-typed-accent {
    color: var(--opt-primary, #2563eb);
}
header.masthead.masthead-split .masthead-split-title .masthead-typed-line {
    min-height: 1.25em;
}
header.masthead.masthead-split .masthead-typed-cursor {
    font-weight: 300;
    margin-left: 1px;
    animation: masthead-typed-cursor-blink 1s step-end infinite;
}
@keyframes masthead-typed-cursor-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
header.masthead.masthead-split .masthead-lead {
    color: var(--opt-text) !important;
}
header.masthead.masthead-split .masthead-split-inner {
    position: relative;
    z-index: 1;
}
header.masthead.masthead-split .masthead-split-row {
    align-items: center;
    min-height: clamp(17rem, 52vh, 30rem);
}
header.masthead.masthead-split .masthead-split-copy {
    padding-right: clamp(0.75rem, 2vw, 1.5rem);
}
/* Pulpo: centro del PNG en el borde derecho del viewport → mitad derecha fuera de pantalla */
header.masthead.masthead-split .masthead-octopus-bleed {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: clamp(15rem, 52vh, 30rem);
    width: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}
header.masthead.masthead-split .masthead-octopus-bleed img {
    position: absolute;
    height: 100%;
    width: auto;
    max-width: none;
    right: 0;
    top: 50%;
    transform: translate3d(50%, -50%, 0);
    object-fit: contain;
    image-rendering: auto;
    backface-visibility: hidden;
    /* Suaviza el halo del recorte para disimular pixelado en el borde */
    filter: blur(0.85px) drop-shadow(0 0 8px rgba(100, 116, 139, 0.22))
        drop-shadow(0 0 16px rgba(148, 163, 184, 0.16));
}
@media (min-width: 768px) {
    header.masthead.masthead-split .masthead-split-outer {
        padding-top: 6.5rem;
        padding-bottom: 6.5rem;
    }
}
@media (min-width: 992px) {
    header.masthead.masthead-split .masthead-split-outer {
        padding-top: 7.5rem;
        padding-bottom: 7.5rem;
    }
}

/* --- Sección #features: título + rejilla estática de tarjetas --- */
section#features.features-split-section {
    padding-top: calc(3rem + 0.5cm);
    padding-bottom: calc(3rem + 0.5cm);
}
.features-section-title {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--opt-dark);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}
@media (min-width: 768px) {
    .features-section-title {
        font-size: clamp(2rem, 3vw, 2.65rem);
    }
}
#features .features-section-title.features-split-heading {
    font-size: calc(clamp(1.75rem, 3.2vw, 2.5rem) + 2pt);
}
@media (min-width: 768px) {
    #features .features-section-title.features-split-heading {
        font-size: calc(clamp(2rem, 3vw, 2.65rem) + 2pt);
    }
}
#features .features-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    width: 100%;
}
#features .features-split-title-col,
#features .features-split-carousel-col {
    min-width: 0;
}
#features .features-split-carousel-col {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 400px) {
    #features .features-split-layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: clamp(1rem, 3vw, 2.25rem);
        row-gap: 0;
        align-items: stretch;
    }
    #features .features-split-title-col {
        display: flex;
        align-items: center;
    }
    #features .features-split-carousel-col {
        display: flex;
        flex-direction: column;
        align-self: stretch;
        min-height: 100%;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        padding: calc(1.25rem + 1.5cm) 0.75rem calc(1rem + 1.5cm);
        box-sizing: border-box;
    }
    #features .features-grid-2col {
        flex: 1;
        min-height: 0;
        width: 100%;
        align-content: center;
    }
    #features .features-split-heading {
        text-align: left;
    }
    #features .features-split-title-col.features-split-sticky {
        position: sticky;
        top: 6.5rem;
    }
}
@media (min-width: 768px) {
    #features .features-split-carousel-col {
        padding: calc(1.5rem + 1.5cm) 1rem calc(1.25rem + 1.5cm);
    }
}
@media (max-width: 399.98px) {
    #features .features-split-heading {
        text-align: left;
    }
}
.features-feature-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.35rem 1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.95);
    min-width: 0;
    width: calc(100% - 4cm);
    max-width: calc(100% - 4cm);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
@media (min-width: 576px) {
    .features-feature-card {
        padding: 1.5rem 1.25rem;
    }
}
.features-feature-card h3 {
    color: var(--opt-dark);
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.features-feature-card p.small {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}
.features-feature-card .feature-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--opt-primary);
    line-height: 1;
}
.features-feature-card .feature-card-icon i {
    font-size: 2.75rem;
}
/* Rejilla estática 2×3 #features (columna derecha, sin carrusel) */
#features .features-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
}
@media (max-width: 768px) {
    #features .features-grid-2col {
        grid-template-columns: 1fr;
    }
}
#features .features-grid-item {
    display: flex;
    min-width: 0;
}
#features .features-grid-2col .features-feature-card {
    width: 100%;
    height: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 1.25rem 1rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#features .features-feature-card h3 {
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.25;
}
#features .features-feature-card p {
    font-size: 0.92rem;
    line-height: 1.45;
}
#features .features-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
#features .features-feature-card--primary {
    border: 2px solid var(--opt-primary, #2563eb);
}
@media (prefers-reduced-motion: reduce) {
    #features .features-grid-2col .features-feature-card {
        transition: none;
    }
    #features .features-feature-card:hover {
        transform: none;
    }
}

/* --- Problema / solución (#problem-solution; estático, sin vídeo ni carruseles) --- */
.problem-solution-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #f8fafc;
    padding-top: calc(4rem + 0.5cm);
    padding-bottom: calc(4rem + 0.5cm);
}

.problem-solution-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 32%),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.05), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.problem-solution-content {
    position: relative;
    z-index: 1;
}

.problem-solution-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
    position: relative;
    z-index: 1;
}

.problem-solution-problem-col,
.problem-solution-solution-col {
    min-width: 0;
    display: flex;
}

@media (min-width: 992px) {
    .problem-solution-layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 2.5rem;
        align-items: stretch;
    }
}

.problem-solution-problem-block,
.problem-solution-solution-block {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1rem;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    padding: 1.35rem 1.25rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

.problem-solution-problem-block {
    border-left: 3px solid rgba(220, 38, 38, 0.15);
}

.problem-solution-solution-block {
    border-left: 3px solid rgba(37, 99, 235, 0.25);
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .problem-solution-problem-block,
    .problem-solution-solution-block {
        padding: 1.6rem 1.5rem;
    }
}

.problem-solution-heading {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--opt-dark);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    margin-top: 0;
}

@media (min-width: 768px) {
    .problem-solution-heading {
        font-size: clamp(1.5rem, 2vw, 2.1rem);
    }
}

.problem-solution-lead {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--opt-text);
}

.problem-solution-problem-list {
    margin: 0 0 1.25rem 0;
    padding-left: 1.15rem;
    color: var(--opt-text);
}

.problem-solution-problem-list li {
    margin-bottom: 0.75rem;
    line-height: 1.55;
}

.problem-solution-problem-close {
    color: var(--opt-text);
    line-height: 1.6;
    font-weight: 500;
}

.problem-solution-solution-heading {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--opt-dark);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    margin-top: 0;
}

@media (min-width: 768px) {
    .problem-solution-solution-heading {
        font-size: clamp(1.5rem, 2vw, 2.1rem);
    }
}

.problem-solution-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.problem-solution-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.85rem;
    padding: 1.15rem 1rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problem-solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.problem-solution-card--featured {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(37, 99, 235, 0.6);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.18);
    transform: translateY(-3px);
}

.problem-solution-card--featured .problem-solution-card-icon {
    color: var(--opt-primary);
}

.problem-solution-card--featured > *:not(.problem-solution-card-octopus) {
    position: relative;
    z-index: 1;
}

.problem-solution-card-octopus {
    position: absolute;
    top: -0.65rem;
    right: -0.65rem;
    bottom: auto;
    width: min(110px, 29%);
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: right top;
    display: block;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .problem-solution-card-octopus {
        width: min(85px, 26%);
        top: -0.5rem;
        right: -0.5rem;
        opacity: 0.1;
    }
}

.problem-solution-card-badge {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--opt-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.problem-solution-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--opt-primary);
    line-height: 1;
    margin-bottom: 0.7rem;
}

.problem-solution-card-icon i {
    font-size: 1.8rem;
}

.problem-solution-card h3 {
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--opt-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.problem-solution-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--opt-text);
    margin-bottom: 0;
}

.problem-solution-closing-global {
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4.5rem;
    padding-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.problem-solution-closing-main {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--opt-primary);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.problem-solution-closing-sub {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--opt-text);
    opacity: 0.9;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .problem-solution-closing-global {
        margin-top: 5.5rem;
    }
    .problem-solution-closing-main {
        font-size: clamp(1.8rem, 2.2vw, 2.3rem);
        line-height: 1.28;
        max-width: 780px;
    }
    .problem-solution-closing-sub {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .problem-solution-card {
        transition: none;
    }
    .problem-solution-card:hover {
        transform: none;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    }
    .problem-solution-card--featured {
        transform: none;
    }
}

/* --- Franja fija de imágenes (debajo de problema/solución) --- */
.optupply-logos-strip {
    width: 100%;
    background-color: #fff;
}
.optupply-logos-strip-img {
    display: inline-block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: clamp(3rem, 10vw, 5.5rem);
    object-fit: contain;
    vertical-align: middle;
}

/* --- Equipo: tarjetas --- */
.equipo-pillars {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    row-gap: 1.25rem;
}
@media (min-width: 992px) {
    .equipo-pillars {
        row-gap: 1.5rem;
    }
}
.equipo-pillars-second {
    margin-top: 0.35rem;
}
@media (min-width: 992px) {
    .equipo-pillars-second {
        margin-top: 0.45rem;
    }
}
.equipo-pillar {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.equipo-pillar:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}
.equipo-pillar-icon {
    display: block;
    font-size: 1.65rem;
    color: var(--opt-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.equipo-pillar-text {
    font-size: calc(0.9rem + 1pt);
    line-height: 1.45;
    color: #495057;
}
/* Título "Somos OPTupplers…": visible por defecto; solo se oculta si JS añade html.js-equipo-heading. */
#equipo.section-optupplers h2.equipo-optupplers-title {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 1s ease, transform 1s ease;
}
#equipo.section-optupplers h2,
#equipo.section-optupplers .section-heading {
    margin-bottom: 1rem !important;
}
html.js-equipo-heading #equipo.section-optupplers h2.equipo-optupplers-title:not(.equipo-optupplers-title--in) {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
}
html.js-equipo-heading #equipo.section-optupplers h2.equipo-optupplers-title.equipo-optupplers-title--in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
    html.js-equipo-heading #equipo.section-optupplers h2.equipo-optupplers-title:not(.equipo-optupplers-title--in) {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

#equipo.section-optupplers {
    background-color: #f1f5f9;
    min-height: 65vh;
    padding-top: 3rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

@media (min-width: 768px) {
    #equipo.section-optupplers {
        min-height: 70vh;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}
#equipo.section-optupplers .container {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Bloque título + lead + tarjetas + pulpo centrado en altura dentro de #equipo (solo layout 5 filas) */
#equipo.section-optupplers.equipo--5row-pulpo {
    display: flex;
    flex-direction: column;
}
#equipo.section-optupplers.equipo--5row-pulpo .container {
    flex: 1 1 auto;
    align-items: stretch;
}
#equipo.section-optupplers.equipo--5row-pulpo h2.equipo-optupplers-title {
    margin-top: 0 !important;
}
#equipo.section-optupplers.equipo--5row-pulpo .showcase-text {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#equipo.section-optupplers .equipo-pulpo-edge {
    position: absolute;
    right: 0;
    top: 32%;
    width: 0;
    height: 0;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}
#equipo.section-optupplers .equipo-pulpo-edge img {
    position: absolute;
    right: 0;
    top: 0;
    width: clamp(13rem, 24vw, 22rem);
    max-width: none;
    height: auto;
    /* Hacia la izquierda respecto al margen derecho para ver más figura */
    transform: translateX(-10%);
    /* Baldosa claro/gris: se funde con el fondo de la sección (no sustituye PNG transparente) */
    mix-blend-mode: multiply;
}

/* --- EQUIPO: 5 pilares en fila + pulpo_equipo debajo (revertir: comentario HTML en #equipo + quitar este bloque) --- */
#equipo.section-optupplers.equipo--5row-pulpo .equipo-pillars-five-wrap {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}
#equipo.section-optupplers.equipo--5row-pulpo .equipo-pillars-five-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}
#equipo.section-optupplers.equipo--5row-pulpo .equipo-pillar-col {
    min-width: 0;
}
#equipo.section-optupplers.equipo--5row-pulpo .equipo-pillars-five-row .equipo-pillar {
    /* Más aire en vertical que en horizontal si el texto crece */
    padding: clamp(0.65rem, 1.15vw, 1.05rem) clamp(0.28rem, 0.62vw, 0.52rem);
}
#equipo.section-optupplers.equipo--5row-pulpo .equipo-pillar-icon {
    font-size: clamp(1.05rem, 1.9vw, 1.45rem);
    margin-bottom: 0.35rem;
}
#equipo.section-optupplers.equipo--5row-pulpo .equipo-pillar-text {
    font-size: calc(clamp(0.62rem, 0.82vw, 0.8rem) + 2pt);
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}
@media (max-width: 1199.98px) {
    #equipo.section-optupplers.equipo--5row-pulpo .equipo-pillars-five-wrap {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.2rem;
    }
    #equipo.section-optupplers.equipo--5row-pulpo .equipo-pillars-five-row {
        min-width: min(56rem, 150vw);
    }
}
#equipo.section-optupplers.equipo--5row-pulpo .equipo-pillars-pulpo-row--edge {
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

#equipo.section-optupplers.equipo--5row-pulpo .equipo-pillars-pulpo-row--edge .equipo-pillars-pulpo-img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(25%, -50%);
    width: clamp(14rem, 22vw, 20rem);
    max-width: none;
    height: auto;
    opacity: 0.2;
    filter: grayscale(18%) contrast(98%);
    pointer-events: none;
}

@media (min-width: 768px) {
    #equipo.section-optupplers.equipo--5row-pulpo .equipo-pillars-pulpo-row--edge .equipo-pillars-pulpo-img {
        width: clamp(16rem, 21vw, 22rem);
        opacity: 0.22;
    }
}

#equipo.section-optupplers.equipo--5row-pulpo .equipo-pillars-five-row,
#contact.contact--otpu1-split .contact-otpu1-split-content,
#equipo.section-optupplers .container,
#contact.contact--otpu1-split .container {
    position: relative;
    z-index: 1;
}

#equipo.section-optupplers.equipo--5row-pulpo .equipo-pillars-pulpo-row--edge,
#contact.contact--otpu1-split .contact-pulpo-lente-edge {
    z-index: 0;
}

/* --- Nav marca: por encima de .text-primary --- */
nav.navbar-optupply .navbar-brand.navbar-optupply-wordmark {
    color: #2563eb !important;
}
nav.navbar-optupply .navbar-brand.navbar-optupply-wordmark:hover,
nav.navbar-optupply .navbar-brand.navbar-optupply-wordmark:focus {
    color: #1d4ed8 !important;
}

/* --- Contacto --- */
#contact {
    padding-top: 1rem !important;
    padding-bottom: 3rem !important;
}
#contact .bg-dark.rounded-3 {
    padding-top: 2.25rem !important;
    padding-bottom: 3rem !important;
}
#contact .text-center > .feature {
    margin-bottom: 0.35rem !important;
}
#contact .contact-intro-sublead {
    max-width: 38rem;
    font-size: calc(1rem + 2pt);
    line-height: 1.5;
    color: #64748b;
}
#contact .contact-mail-alt {
    line-height: 1.45;
    margin-top: 1.5cm;
}
#contact .contact-mail-alt-intro {
    color: var(--opt-text, #334155);
    font-size: calc(0.95rem + 2pt);
}
#contact .contact-mail-alt-addr {
    color: var(--opt-primary, #2563eb);
    font-size: calc(0.95rem + 4pt);
    font-weight: 600;
    text-decoration: none;
}
#contact .contact-mail-alt-addr:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* --- EXPERIMENTO contact otpu1 (revertir: borrar este bloque completo) ---
   Mitad derecha del PNG en la mitad izquierda de la sección; mitad izquierda del PNG en la mitad derecha.
   Fondo detrás del formulario, blur suave. Requiere assets/img/otpu1.png */
#contact.contact--otpu1-split {
    position: relative;
    isolation: isolate;
}
#contact.contact--otpu1-split .contact-otpu1-split-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: row;
    pointer-events: none;
}
#contact.contact--otpu1-split .contact-otpu1-split-content {
    position: relative;
    z-index: 1;
}
#contact.contact--otpu1-split .contact-pulpo-lente-edge {
    position: absolute;
    left: 0;
    top: 5.3rem;
    width: 0;
    height: 0;
    pointer-events: none;
    overflow: visible;
}
#contact.contact--otpu1-split .contact-pulpo-lente-edge img {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(8.5rem, 13vw, 11.5rem);
    max-width: none;
    height: auto;
    transform: translateX(-48%);
    opacity: 0.14;
    filter: grayscale(16%) contrast(98%);
    pointer-events: none;
}

@media (min-width: 992px) {
    #contact.contact--otpu1-split .contact-pulpo-lente-edge img {
        width: clamp(9rem, 13vw, 12rem);
        transform: translateX(-45%);
        opacity: 0.15;
    }
}
#contact.contact--otpu1-split .contact-otpu1-half {
    flex: 1 1 50%;
    overflow: hidden;
    min-height: 100%;
}
#contact.contact--otpu1-split .contact-otpu1-half-inner {
    width: 100%;
    height: 100%;
    min-height: 22rem;
    background-image: url("../assets/img/otpu1.png");
    background-repeat: no-repeat;
    background-size: 200% auto;
    filter: blur(2.5px);
    transform: scale(1.08);
    transform-origin: center center;
}
#contact.contact--otpu1-split .contact-otpu1-half--img-right .contact-otpu1-half-inner {
    background-position: 100% 40%;
}
#contact.contact--otpu1-split .contact-otpu1-half--img-left .contact-otpu1-half-inner {
    background-position: 0% 40%;
}
@media (max-width: 575.98px) {
    #contact.contact--otpu1-split .contact-otpu1-half-inner {
        min-height: 18rem;
    }
}

/* --- Footer (paleta OPTupply: gris legible, no tan cerrado) --- */
footer.footer.footer-optupply-dark {
    background-color: var(--opt-text, #334155);
    color: var(--opt-gray-bg, #f8fafc);
}
footer.footer.footer-optupply-dark a {
    color: #e2e8f0;
    text-decoration: none;
}
footer.footer.footer-optupply-dark a:hover {
    color: var(--opt-gray-bg, #f8fafc);
    text-decoration: underline;
}
footer.footer.footer-optupply-dark .text-muted {
    color: rgba(248, 250, 252, 0.78) !important;
}

footer.footer.footer-optupply-dark .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer.footer.footer-optupply-dark .footer-email {
    font-size: 0.95rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

footer.footer.footer-optupply-dark .footer-email:hover {
    text-decoration: underline;
    color: #ffffff;
}

@media (max-width: 576px) {
    footer.footer.footer-optupply-dark .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    footer.footer.footer-optupply-dark .footer-left,
    footer.footer.footer-optupply-dark .footer-right {
        width: 100%;
    }
}

/* Pulpo a la izquierda de Home (logosinfondo.png, sin variante azul) */
footer.footer.footer-optupply-dark .footer-optupply-octopus-img {
    height: 2cm;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left top;
    display: block;
}

/* --- Botón flotante --- */
#scrollToTopBtn {
    background-color: var(--opt-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
