 :root {
            --bomac-blue: #0a2540;
            --bomac-brand-blue: #3e4095;
            --bomac-blue-hover: #0f3460;
            --bomac-red: #d90429;
            --bomac-red-hover: #b80320;
            --bomac-light: #f8fafc;
            --bomac-text: #334155;
        }

        html { scroll-behavior: smooth; }
        body { font-family: 'Inter', sans-serif; color: var(--bomac-text); }
        .content-narrow { max-width: 42rem; }
        section[id], .service-article[id], .inspection-copy[id], .capability-item[id] { scroll-margin-top: 6rem; }

        .back-to-top {
            position: fixed;
            right: max(1rem, env(safe-area-inset-right));
            bottom: max(1rem, env(safe-area-inset-bottom));
            z-index: 1030;
            display: inline-flex;
            width: 46px;
            height: 46px;
            align-items: center;
            justify-content: center;
            border: 0;
            border-radius: 50%;
            background: var(--bomac-red);
            color: #ffffff;
            box-shadow: 0 4px 14px rgba(10, 37, 64, 0.28);
            font-size: 1.25rem;
            transition: background-color 0.2s ease, transform 0.2s ease;
        }

        .back-to-top:hover {
            background: var(--bomac-red-hover);
            transform: translateY(-2px);
        }

        .back-to-top:focus-visible {
            outline: 3px solid #ffffff;
            outline-offset: 3px;
        }

        .back-to-top[hidden] { display: none; }

        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            .back-to-top { transition: none; }
            .hero-media img { transition: none; }
            .hero-media:hover img { transform: none; }
            .service-figure img { transition: none; }
            .service-figure:hover img { transform: none; }
            .btn-bomac-red,
            .btn-outline-bomac { transition: none; }
            .btn-bomac-red:hover,
            .btn-outline-bomac:hover { transform: none; }
        }

        /* Topbar informativo */
        .topbar {
            background-color: var(--bomac-blue);
            color: #e2e8f0;
            font-size: 0.85rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .topbar a { color: #ffffff; text-decoration: none; }

        /* Navbar Corporativo */
        .navbar {
            background-color: rgba(10, 37, 64, 0.96) !important;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 12px rgba(0,0,0,0.25);
            transition: all 0.3s ease;
        }

        /* Marca */
        .navbar-brand .logo-img {
            width: 40px;
            height: 40px;
            object-fit: contain;
            border: 2px solid rgba(255, 255, 255, 0.9);
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .navbar-brand .logo-text {
            color: #ffffff;
            font-weight: 800;
            letter-spacing: 0.02em;
            font-size: 1.2rem;
        }

        .navbar-brand .logo-accent {
            color: var(--bomac-red);
        }

        @media (max-width: 575.98px) {
            .navbar-brand .logo-img {
                width: 34px;
                height: 34px;
                border-radius: 8px;
            }

            .navbar-brand .logo-text {
                font-size: 1.05rem;
            }
        }

        /* Indicador de línea roja para el Scrollspy */
        .navbar-nav .nav-link {
            position: relative;
            transition: color 0.3s ease;
            color: rgba(255, 255, 255, 0.85) !important;
        }

        .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 3px;
            background-color: var(--bomac-red);
            border-radius: 2px;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .navbar-nav .nav-link:hover::after,
        .navbar-nav .nav-link.active::after {
            width: 80%;
        }

        .navbar-nav .nav-link.active,
        .navbar-nav .nav-link:hover {
            color: #ffffff !important;
        }

        /* Botón Rojo Corporativo */
        .btn-bomac-red {

            background-color: var(--bomac-red);
            color: #ffffff;
            font-weight: 600;
            border: none;
            transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
        }

        .btn-bomac-red:hover {
            background-color: var(--bomac-red-hover);
            color: #ffffff;
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(217, 4, 41, 0.3);
        }

        .btn-outline-bomac {
            border: 2px solid #ffffff;
            color: #ffffff;
            font-weight: 600;
            transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
        }

        .btn-outline-bomac:hover {
            background-color: #ffffff;
            color: var(--bomac-blue);
            transform: translateY(-3px);
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
        }

        /* Hero */
        .hero-section {
            background: linear-gradient(115deg, #0a2540 0%, #102f4d 65%, #172d55 100%);
            color: #ffffff;
            padding: 4rem 0 5.5rem;
            position: relative;
        }

        .badge-bomac {
            background-color: rgba(62, 64, 149, 0.24);
            color: #c8cbff;
            border: 1px solid rgba(135, 139, 255, 0.45);
            max-width: 100%;
            white-space: normal;
        }

        .hero-copy { max-width: 36rem; }

        .hero-actions .btn {
            display: inline-flex;
            min-width: 14.5rem;
            min-height: 3rem;
            align-items: center;
            justify-content: center;
            padding: 0.65rem 1rem;
            font-size: 1rem;
            line-height: 1.25;
            text-align: center;
        }

        .hero-media {
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 8px;
            box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
        }

        .hero-media img {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 10;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .hero-media:hover img {
            transform: scale(1.02);
        }

        @media (max-width: 1199.98px) {
            .hero-section { padding: 4rem 0; }
        }

        @media (max-width: 991.98px) {
            .hero-section .row { --bs-gutter-y: 0.75rem; }
            .hero-mobile-badge .badge { margin-bottom: 0 !important; }
        }

        @media (max-width: 575.98px) {
            .hero-section { padding: 3.25rem 0 3rem; }
            .hero-actions {
                max-width: 22rem;
                flex-direction: column;
                align-items: stretch;
                margin-inline: auto;
            }

            .hero-actions .btn {
                width: 100%;
                min-width: 0;
            }
        }

        @media (min-width: 992px) and (max-width: 1399.98px) {
            .hero-copy h1 { font-size: clamp(2.25rem, 3.4vw, 2.8rem); }
        }

        .services-section {
            padding: clamp(3.75rem, 7vw, 6rem) 0;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        }

        .services-header {
            max-width: 49rem;
            margin-bottom: 2.2rem;
        }

        .services-header .section-title {
            margin: 0;
            color: var(--bomac-blue);
            font-size: clamp(2rem, 3.5vw, 2.7rem);
            font-weight: 750;
            line-height: 1.12;
            letter-spacing: -0.045em;
        }

        .services-header > p {
            max-width: 43rem;
            margin: 0.85rem 0 0;
            color: #526171;
            font-size: 1rem;
            line-height: 1.7;
        }

        .services-grid {
            display: grid;
            gap: 2.5rem;
            padding-top: 1.9rem;
            border-top: 1px solid #cbd5e1;
        }

        .service-article { min-width: 0; }
        .hdpe-service {
            display: grid;
            align-items: center;
            gap: 1.5rem;
        }

        .service-kicker {
            display: block;
            margin-bottom: 0.6rem;
            color: var(--bomac-red);
            font-size: 0.75rem;
            font-weight: 750;
            letter-spacing: 0.09em;
            text-transform: uppercase;
        }

        .hdpe-copy h3,
        .inspection-copy h3 {
            margin: 0;
            color: var(--bomac-blue);
            font-size: clamp(1.55rem, 2.2vw, 1.95rem);
            font-weight: 750;
            line-height: 1.15;
            letter-spacing: -0.04em;
        }

        .hdpe-copy p,
        .inspection-copy > p {
            margin: 0.9rem 0 0;
            color: #3f4d5c;
            font-size: 0.96rem;
            line-height: 1.72;
        }

        .service-bullets {
            display: grid;
            gap: 0.6rem;
            margin: 1.15rem 0 0;
            padding: 0;
            list-style: none;
            color: #334155;
            font-size: 0.9rem;
            line-height: 1.55;
        }

        .service-bullets li {
            position: relative;
            padding-left: 1rem;
        }

        .service-bullets li::before {
            position: absolute;
            top: 0.58em;
            left: 0;
            width: 0.38rem;
            height: 0.38rem;
            border-radius: 50%;
            background: var(--bomac-red);
            content: '';
        }

        .service-figure img {
            display: block;
            width: 100%;
            height: clamp(20rem, 30vw, 27rem);
            border-radius: 10px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .service-figure { overflow: hidden; border-radius: 10px; }
        .service-figure:hover img { transform: scale(1.02); }

        .service-figure figcaption {
            margin-top: 0.55rem;
            color: #586675;
            font-size: 0.76rem;
            line-height: 1.5;
        }

        .service-quote-link {
            display: inline-flex;
            min-height: 42px;
            align-items: center;
            gap: 0.45rem;
            margin-top: 1.35rem;
            color: #a90020;
            font-size: 0.92rem;
            font-weight: 700;
            text-decoration: underline;
            text-decoration-color: rgba(217, 4, 41, 0.4);
            text-underline-offset: 0.28em;
        }

        .service-quote-link:hover { color: var(--bomac-blue); }

        .inspection-service {
            padding-top: 2rem;
            border-top: 1px solid #cbd5e1;
        }

        .inspection-note {
            padding-left: 0.85rem;
            border-left: 2px solid var(--bomac-red);
            color: #475569 !important;
            font-size: 0.9rem !important;
        }

        .inspection-scope-list {
            display: grid;
            gap: 0.4rem;
            margin: 1rem 0 0;
            padding-left: 1.1rem;
            color: #526171;
            font-size: 0.88rem;
            line-height: 1.5;
        }

        .inspection-methods {
            margin-top: 1.5rem;
            padding: 1.25rem;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: #ffffff;
            box-shadow: 0 8px 24px rgba(10, 37, 64, 0.045);
        }

        .inspection-methods h4 {
            margin: 0 0 0.8rem;
            color: #586675;
            font-size: 0.77rem;
            font-weight: 750;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .inspection-methods > ul {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0 0.9rem;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .inspection-methods > ul li {
            padding: 0.65rem 0;
            border-bottom: 1px solid #dce3e9;
            color: #334155;
            font-size: 0.87rem;
            line-height: 1.45;
        }

        .capabilities-section {
            padding: 3.5rem 0;
            background: #ffffff;
        }

        .capabilities-title {
            margin: 0;
            color: var(--bomac-blue);
            font-size: clamp(1.65rem, 2.4vw, 2rem);
            font-weight: 750;
            line-height: 1.2;
            letter-spacing: -0.04em;
        }

        .capabilities-intro {
            max-width: 26rem;
            margin: 0.75rem 0 0;
            color: #526171;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .capabilities-list { align-content: start; }

        .capability-item { display: flex; }

        .capability-card {
            width: 100%;
            min-height: 8.25rem;
            padding: 1.1rem;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: #ffffff;
            box-shadow: 0 6px 20px rgba(10, 37, 64, 0.045);
            transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

        .capability-item dt {
            display: flex;
            align-items: center;
            gap: 0.55rem;
            color: var(--bomac-blue);
            font-size: 0.98rem;
            font-weight: 700;
        }

        .capability-item dt i {
            display: inline-flex;
            width: 1.75rem;
            height: 1.75rem;
            flex: 0 0 1.75rem;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(217, 4, 41, 0.09);
            color: var(--bomac-red);
            font-size: 0.9rem;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .capability-item dd {
            margin: 0.3rem 0 0;
            color: #526171;
            font-size: 0.85rem;
            line-height: 1.6;
        }

        .company-facts > div {
            padding: 1.15rem 1.25rem;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: #ffffff;
            box-shadow: 0 5px 18px rgba(10, 37, 64, 0.035);
            transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

        .capability-card:active,
        .company-facts > div:active {
            transform: translateY(-3px);
            border-color: rgba(217, 4, 41, 0.5);
            box-shadow: 0 12px 26px rgba(10, 37, 64, 0.1);
        }

        .capability-card:active dt i {
            background: var(--bomac-red);
            color: #ffffff;
        }

        @media (hover: hover) and (pointer: fine) {
            .capability-card:hover,
            .company-facts > div:hover {
                transform: translateY(-3px);
                border-color: rgba(217, 4, 41, 0.5);
                box-shadow: 0 12px 26px rgba(10, 37, 64, 0.1);
            }

            .capability-card:hover dt i {
                background: var(--bomac-red);
                color: #ffffff;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .capability-card,
            .company-facts > div { transition: none; }
            .capability-item dt i { transition: none; }

            .capability-card:hover,
            .company-facts > div:hover,
            .capability-card:active,
            .company-facts > div:active { transform: none; }
        }

        .company-section {
            padding: clamp(3.5rem, 6vw, 5.25rem) 0;
            background: var(--bomac-light);
        }

        .company-title {
            max-width: 35rem;
            color: var(--bomac-blue);
            font-size: clamp(1.9rem, 3vw, 2.5rem);
            font-weight: 750;
            line-height: 1.15;
            letter-spacing: -0.04em;
        }

        .company-facts {
            display: grid;
            gap: 1rem;
            margin-top: 1.75rem;
            padding-top: 0;
        }

        .company-facts div { min-width: 0; }

        .company-facts dt {
            color: #586675;
            font-size: 0.83rem;
            font-weight: 600;
        }

        .company-facts dd {
            margin: 0.35rem 0 0;
            color: var(--bomac-blue);
            font-size: 1rem;
            font-weight: 700;
            line-height: 1.5;
        }

        .contact-box {
            background: linear-gradient(115deg, #0a2540 0%, #102f4d 65%, #172d55 100%);
            color: #ffffff;
            border-radius: 16px;
        }

        @media (max-width: 575.98px) {
            .contact-whatsapp {
                display: flex;
                min-height: 48px;
                align-items: center;
                justify-content: center;
                width: 100%;
            }
        }

        .site-footer {
            border-top: 3px solid var(--bomac-red);
            background: linear-gradient(115deg, #0a2540 0%, #102f4d 65%, #172d55 100%);
            color: rgba(255, 255, 255, 0.72);
        }

        .site-footer .container {
            padding-block: 1rem !important;
        }

        .footer-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.55rem;
            margin-bottom: 0.65rem;
        }

        .footer-links a {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.8rem;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 999px;
            color: #ffffff;
            font-size: 0.9rem;
            text-decoration: none;
            transition: background-color 0.2s ease, border-color 0.2s ease;
        }

        .footer-links a:hover,
        .footer-links a:focus-visible {
            border-color: rgba(255, 255, 255, 0.4);
            background-color: rgba(255, 255, 255, 0.1);
        }

        .footer-coverage {
            margin: 0;
            font-size: 0.9rem;
            letter-spacing: 0.01em;
        }

        .footer-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 0.35rem 1.25rem;
            padding-top: 0.55rem;
            border-top: 1px solid rgba(255, 255, 255, 0.14);
        }

        .footer-copyright {
            display: inline-block;
            color: rgba(255, 255, 255, 0.58);
            font-size: 0.78rem;
        }

        @media (max-width: 575.98px) {
            .footer-links {
                display: grid;
                grid-template-columns: repeat(3, 2.75rem);
                justify-content: center;
                gap: 0.75rem;
            }

            .footer-links a {
                width: 2.75rem;
                height: 2.75rem;
                justify-content: center;
                padding: 0;
                font-size: 1.2rem;
            }

            .footer-link-label {
                position: absolute;
                width: 1px;
                height: 1px;
                overflow: hidden;
                clip: rect(0, 0, 0, 0);
                white-space: nowrap;
                clip-path: inset(50%);
            }

            .footer-meta { gap: 0.25rem; }
        }

        @media (prefers-reduced-motion: reduce) {
            .footer-links a { transition: none; }
        }

        /* Acordeón FAQ Personalizado */
        .accordion-item {
            overflow: hidden;
            border-radius: 8px;
        }

        .accordion-button:not(.collapsed) {
            border-left: 3px solid var(--bomac-red);
            color: var(--bomac-blue);
            background-color: rgba(62, 64, 149, 0.08);
            font-weight: 700;
            box-shadow: none;
        }

        .accordion-button:focus {
            box-shadow: 0 0 0 0.25rem rgba(217, 4, 41, 0.15);
            border-color: var(--bomac-red);
        }

        @media (min-width: 768px) {
            .company-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        }

        @media (min-width: 992px) and (max-width: 1199.98px) {
            .capability-card { min-height: 11.25rem; }
        }

        @media (min-width: 992px) {
            .services-grid { grid-template-columns: minmax(0, 1fr); }

            .hdpe-service {
                grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
            }

            .inspection-service {
                display: grid;
                grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
                align-items: start;
                column-gap: 3rem;
                padding-top: 2.5rem;
                border-top: 1px solid #cbd5e1;
            }

            .inspection-copy,
            .inspection-methods { min-width: 0; }
            .inspection-methods {
                grid-column: 2;
                grid-row: 1;
                margin-top: 0;
                align-self: center;
            }
            .inspection-copy { grid-column: 1; grid-row: 1; }
            .inspection-methods > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }

        @media (max-width: 991.98px) {
            .hdpe-service,
            .inspection-service {
                display: grid;
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .service-figure img { height: auto; }
            .inspection-methods { margin-top: 0; }
        }

        @media (max-width: 767.98px) {
            .capabilities-list { padding-inline: 0.75rem; }
            .capability-card { min-height: 9.85rem; }
            .company-facts { gap: 1.1rem; }
        }

        @media (max-width: 359.98px) {
            .capability-card { min-height: 11.25rem; }
        }

        @media (max-width: 575.98px) {
            .services-section { padding-block: 3.4rem; }
            .services-header { margin-bottom: 1.5rem; }
            .services-grid { gap: 2rem; padding-top: 1.5rem; }
            .inspection-service { gap: 1.5rem; }
            .inspection-methods { padding: 1rem; }
            .inspection-methods > ul { gap: 0 0.65rem; }
            .inspection-methods > ul li { font-size: 0.82rem; }
            .capabilities-section { padding-block: 2.8rem; }
        }