:root{
    --bg-light:#f3f4f6;
    --bg-soft:#e9eef5;
    --bg-medium:#e2e8f0;
    --bg-dark-soft:#d7dee8;

    --text-main:#1f2937;
    --text-muted:#4b5563;

    --primary:#38bdf8;
    --primary-dark:#2563eb;

    --nav-bg:rgba(2,6,23,.85);

    --cta-dark:#020617;
    --cta-dark-soft:#020617f2;
    --cta-accent:#38bdf8;
}

html{ scroll-behavior:smooth; }

body{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size:15px;
    line-height:1.6;
    color:var(--text-main);
    background:var(--bg-light);
}

@media (min-width:992px){
    body{ font-size:16px; }
}

@media (max-width: 768px) {
    main {
        padding-top: 0;
    }
}
.sivemaq-header{
    background:var(--nav-bg);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 8px 30px rgba(0,0,0,.25);
}

.sivemaq-header .nav-link{
    color:rgba(255,255,255,.75);
    font-weight:500;
    position:relative;
    padding:8px 0;
    transition:color .25s ease;
}

.sivemaq-header .nav-link:hover,
.sivemaq-header .nav-link.active{
    color:#fff;
}

.sivemaq-header .nav-link::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:linear-gradient(90deg,var(--primary),var(--primary-dark));
    transition:width .3s ease;
    border-radius:2px;
}

.sivemaq-header .nav-link:hover::after,
.sivemaq-header .nav-link.active::after{
    width:100%;
}

.navbar-brand img{
    height:60px;
}

@media(min-width:992px){
    .navbar-brand img{ height:100px; }
}
/* .hero-section{
    margin-top:-72px;
    padding-top:120px;
    min-height:100vh;
    padding:120px 0 70px;
    position:relative;
    background:url('/images/hero.jpg') center/cover no-repeat;
} */

.hero-section {
    margin-top: -72px;
    /* margin-top: 126px; */
    /* padding: 120px 0 70px; */
    padding: 300px 1px 78px;
    min-height: 100vh;
  
    background-image: url('/images/sivemaq_ultima.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #020617;

   
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .hero-section {
        min-height: 85vh;               /* 👈 no 100vh */
        background-size: cover;         /* 🔥 clave */
        background-position: center;    /* o center top */
        padding-top: 100px;
    }
}

/* .hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,rgba(2,6,23,.92),rgba(2,6,23,.75));
} */

.hero-overlay{
    position:absolute;
    inset:0;
    /* background: linear-gradient(
        180deg,
        rgba(255,255,255,.65),
        rgba(255,255,255,.85)
    ); */
    pointer-events: none;
}

/* .hero-content {
    margin-top: -600px;
} */

.hero-title{
    font-size:clamp(2rem,5vw,3.2rem);
    font-weight:800;
    letter-spacing:-.02em;
    color: #e6e8ee;
    margin-bottom: 42rem !important;
}

.hero-text{
    margin-bottom: 20cm;
    font-size:1rem;
    color:rgba(255,255,255,.85);
    max-width:560px;
    line-height:1.8;
    color: #e6e8ee; 
    
    
}


/* .hero-content {
    margin-top: -600px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: #e6e8ee;
    margin-bottom: 16px;
}

.hero-text {
    font-size: 1rem;
    max-width: 560px;
    line-height: 1.8;
    color: #e6e8ee;
} */



.section{ padding:64px 0; }

@media(min-width:992px){
    .section{ padding:100px 0; }

    /* .texto-bajo-inicio {
        font-size: 2rem;
        margin-top: -400px;
        max-width: 90%;
        margin: 0 auto;
        color: #ffffff;
    } */


}

/* ===== MOBILE FIRST HERO ===== */
@media (max-width: 768px) {

    .hero-section {
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        color: #050505;
    }

    .hero-text {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
        color: #050505;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

}


.section-soft{ background:var(--bg-soft); }
.section-medium{ background:var(--bg-medium); }

.section-title{
    font-weight:800;
    letter-spacing:-.01em;
}

.section-lead,
.section-subtitle{
    color:var(--text-muted);
}
.text-block,
.info-card,
.solution-card,
.mini-panel{
    background:rgba(255,255,255,.75);
    border:1px solid rgba(0,0,0,.06);
    border-radius:18px;
    backdrop-filter:blur(10px);
    box-shadow:0 14px 40px rgba(0,0,0,.06);
}

.text-block{
    padding:26px 24px;
}

.solution-card{
    transition:transform .25s ease, box-shadow .25s ease;
}

.solution-card:hover{
    transform:translateY(-6px);
    box-shadow:0 24px 60px rgba(0,0,0,.12);
}
.btn{
    border-radius:999px;
    font-weight:500;
    padding:12px 28px;
    transition:all .25s ease;
}

.btn-primary{
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    border:none;
}

.btn-primary:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 30px rgba(56,189,248,.35);
}

.btn-outline-primary{
    color: var(--primary);
    border:1px solid rgba(56,189,248,.6);
    background:transparent;
}

.btn-outline-primary:hover{
    background:rgba(56,189,248,.1);
}

/* =====================================
   BOTÓN OUTLINE PREMIUM (CTA SECUNDARIO)
   ===================================== */

.btn-outline-tech {
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    background: rgba(56,189,248,.08);
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 999px;
    transition: all .25s ease;
}

.btn-outline-tech:hover {
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(56,189,248,.35);
}


.section-cta{
    background:
        linear-gradient(
            120deg,
            rgba(2,6,23,.96),
            rgba(2,6,23,.90)
        ),
        url('/images/contact-bg.jpg') center/cover no-repeat;
    color:#fff;
    position: relative;
}
.cta-card{
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(56,189,248,.25);
    border-radius: 22px;
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.section-cta .btn-primary{
    background: linear-gradient(
        135deg,
        #38bdf8,
        #0ea5e9
    );
    box-shadow: 0 10px 30px rgba(56,189,248,.35);
}

.section-cta .btn-outline-light{
    border-color: rgba(255,255,255,.5);
}

.section-cta .btn-outline-light:hover{
    background: rgba(255,255,255,.1);
}

footer{
    background: #020617;
    color: rgba(255,255,255,.7);
    padding: 48px 0 32px;
    border-top: 1px solid rgba(255,255,255,.06);
}

footer a{
    color: rgba(255,255,255,.7);
    text-decoration: none;
}

footer a:hover{
    color: var(--cta-accent);
}

.footer-logo{
    max-height: 52px;
    margin-bottom: 16px;
}

.footer-copy{
    font-size: .85rem;
    color: rgba(255,255,255,.45);
    margin-top: 24px;
}
/* ================= MOBILE NAV ================= */

.sivemaq-toggler {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sivemaq-toggler span {
    width: 26px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all .3s ease;
}

/* Menú mobile */
@media (max-width: 991px) {

    .navbar-collapse {
        background: rgba(2,6,23,.98);
        backdrop-filter: blur(14px);
        border-radius: 16px;
        margin-top: 12px;
        padding: 24px;
        box-shadow: 0 20px 60px rgba(0,0,0,.45);
    }

    .navbar-nav {
        gap: 18px;
        text-align: center;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-top: 12px;
    }
}
@media (max-width: 768px) {

    .hero-section .row {
        justify-content: center;
        text-align: center;
    }

    .hero-section .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ===== NAVBAR MOBILE FIX ===== */
.sivemaq-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* BOTÓN HAMBURGUESA */
.sivemaq-toggler {
    border: none;
    background: none;
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
}

.sivemaq-toggler span {
    display: block;
    height: 2px;
    width: 24px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s ease;
}

/* PREVENIR SCROLL HORIZONTAL */
body {
    overflow-x: hidden;
}

/* MENU MOBILE */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(2,6,23,.96);
        backdrop-filter: blur(12px);
        padding: 20px;
        border-radius: 16px;
        margin-top: 12px;
    }

    .navbar-nav {
        gap: 16px;
        text-align: center;
    }

    .navbar-nav .nav-link,
    .navbar-nav .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================================================
   FIX RESPONSIVE NAVBAR (SIN ROMPER DESKTOP)
   ================================================== */

/* Previene scroll horizontal SOLO en mobile */
@media (max-width: 991px) {
    html, body {
        overflow-x: hidden;
    }
}

/* ---------- BOTÓN HAMBURGUESA ---------- */
@media (max-width: 991px) {

    .sivemaq-header .navbar-toggler {
        margin-left: auto; /* 🔑 lo mantiene visible */
    }

    .sivemaq-toggler {
        border: none;
        background: transparent;
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }

    .sivemaq-toggler span {
        width: 24px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }
}

/* ---------- MENU MOBILE ---------- */
@media (max-width: 991px) {

    .navbar-collapse {
        max-width: 100%;
        background: rgba(2,6,23,.96);
        backdrop-filter: blur(14px);
        border-radius: 16px;
        margin-top: 12px;
        padding: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,.45);
    }

    .navbar-nav {
        width: 100%;
        text-align: center;
        gap: 18px;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-top: 12px;
    }
}
/* NAVBAR UX FIX */
.sivemaq-header .nav-link {
    cursor: pointer;
    user-select: none;
}
.sivemaq-header .nav-link.btn {
    cursor: pointer;
    user-select: none;
}

/* ==================================================
   ACORDEONES SIVEMAQ TECH
   ================================================== */

.accordion-item {
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,.06);
}

.accordion-button {
    font-weight: 600;
    color: var(--text-main);
    background: transparent;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(
        135deg,
        rgba(56,189,248,.15),
        rgba(37,99,235,.15)
    );
    color: var(--primary-dark);
}

.accordion-button::after {
    filter: brightness(0.5);
}

.accordion-body {
    color: var(--text-muted);
    line-height: 1.7;
    padding: 20px 22px;
}

/* ==================================================
   BLOQUE VISUAL IA / FLOTA / SEGURIDAD
   ================================================== */

.ai-visual {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.ai-visual img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* GRID FUTURISTA */
.ai-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(56,189,248,.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,.15) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: .35;
    pointer-events: none;
}

/* LABEL */
.ai-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(2,6,23,.85);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: .85rem;
    padding: 8px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==================================================
   WATERMARK LOGO SIVEMAQ
   ================================================== */

.ai-watermark {
    position: absolute;
    inset: 0;
    background: url('/images/logo.png') center/220px no-repeat;
    opacity: .08;
    pointer-events: none;
}


/*-----------------------------------------------------------*/

.ai-visual{
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.ai-visual img{
    width: 100%;
    height: auto;
    object-fit: cover;
}

.text-justify p {
    text-align: justify;
    line-height: 1.75;
}

/* ==================================================
   PORTAFOLIO TECNOLÓGICO – SIVEMAQ TECH
   ================================================== */

.portfolio-tech {
    position: relative;
    background:
        radial-gradient(circle at 20% 20%, rgba(56,189,248,.12), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(37,99,235,.12), transparent 45%),
        linear-gradient(180deg, #eef2f7, #e5ebf3);
}


/* EYEBROW */
.tech-eyebrow {
    font-size: .7rem;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--primary-dark);
}

/* CARD BASE */
.tech-card {
    position: relative;
    height: 100%;
    padding: 28px 26px;
    border-radius: 22px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(56,189,248,.25);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px rgba(0,0,0,.12);
    transition: transform .35s ease, box-shadow .35s ease;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 45px 100px rgba(56,189,248,.25);
}

/* HEADER CARD */
.tech-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.tech-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--primary-dark);
}

/* STATUS */
.tech-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,.8);
}

/* ICON */
.tech-icon {
    font-size: 2.6rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

/* TEXT */
.tech-title {
    font-weight: 800;
    margin-bottom: 10px;
}

.tech-desc {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

/* FEATURES */
.tech-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.tech-features li {
    font-size: .85rem;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
}

.tech-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-dark);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tech-domain {
    font-size: .7rem;
    letter-spacing: .14em;
    font-weight: 700;
    color: #2563eb;
}

.tech-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,.8);
}


/* =========================================
   SOLUCIÓN TECNOLÓGICA – SEGURIDAD
   ========================================= */

.tech-solution {
    position: relative;
}

/* HEADER */
.tech-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-domain {
    font-size: .75rem;
    letter-spacing: .14em;
    font-weight: 700;
    color: var(--primary-dark);
}

/* DOT ACTIVO */
.tech-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,.8);
}

/* TEXTO */
.tech-lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.tech-text {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* VISUAL */
.tech-visual {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.tech-visual img {
    width: 100%;
    display: block;
}

/* OVERLAY SUTIL */
.tech-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(2,6,23,.0),
            rgba(2,6,23,.6)
        );
    pointer-events: none;
}

/* INFO BAJO IMAGEN */
.tech-visual-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 22px 26px;
    background: rgba(2,6,23,.85);
    backdrop-filter: blur(12px);
    color: #fff;
}

.tech-visual-info h6 {
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--primary);
}

.tech-visual-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-visual-info li {
    font-size: .85rem;
    color: rgba(255,255,255,.9);
    margin-bottom: 4px;
}

.tech-visual-large img {
    width: 100%;
    height: auto;          /* 🔑 evita recortes */
    object-fit: contain;   /* 🔑 muestra imagen completa */
    background: #020617;   /* fondo neutro si sobra espacio */
}

/* =========================================
   SOLUCIÓN TECNOLÓGICA – SEGURIDAD (LIMPIO)
   ========================================= */

.tech-lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.tech-text {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* LISTA */
.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.tech-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-dark);
}

/* VISUAL */
.tech-visual {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 25px 70px rgba(0,0,0,.25);
}

.tech-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.tech-visual-large img {
    height: 100%;
    object-fit: cover;
}

.tech-watermark {
    position: absolute;
    inset: 0;
    background: url('/images/logo-white.png') center/220px no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.tech-solution-box {
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 14px 40px rgba(0,0,0,.06);
}


.tech-solution-box h6 {
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--primary);
}

.tech-solution-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-solution-box li {
    font-size: .9rem;
    margin-bottom: 6px;
    color: rgba(255,255,255,.9);
}


/* ===============================
   TECH SOLUTION – SEGURIDAD
================================ */

.tech-solution {
    position: relative;
}

/* Encabezado pequeño */
.tech-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.tech-domain {
    font-size: .75rem;
    letter-spacing: .15em;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Texto */
.tech-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.tech-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

/* ===============================
   BLOQUES VISUALES
================================ */

.tech-visual {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
    background: #000;
}

.tech-visual img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Marca de agua */
.tech-watermark {
    position: absolute;
    inset: 0;
    background: url('/images/logo-white.png') center/220px no-repeat;
    opacity: .08;
    pointer-events: none;
}

/* Texto bajo la imagen */
.tech-image-caption {
    background: rgba(2,6,23,.92);
    color: #fff;
    padding: 18px 22px;
}

.tech-image-caption h6 {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
}

.tech-image-caption p {
    font-size: .95rem;
    line-height: 1.6;
    color: rgba(255,255,255,.85);
    margin: 0;
}

/* ===============================
   QUÉ RESUELVE
================================ */

.tech-solution-box {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 22px 24px;
    backdrop-filter: blur(8px);
}

.tech-solution-box h6 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.tech-solution-box ul {
    padding-left: 18px;
    margin: 0;
}

.tech-solution-box li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 991px) {
    .tech-image-caption {
        text-align: center;
    }
}

/* =========================================
   SEGURIDAD OPERACIONAL – LAYOUT FINAL
========================================= */

/* .tech-solution .tech-visual {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
} */

/* Todas las imágenes iguales visualmente */
/* .tech-solution .tech-visual img {
    width: 100%;
    height: 240px;              
    object-fit: cover;         
    display: block;
} */

/* Imagen grande derecha */
/* .tech-solution .tech-visual-large img {
    height: 100%;
    min-height: 520px;          
} */

/* Marca de agua */
.tech-solution .tech-watermark {
    position: absolute;
    inset: 0;
    background: url('/images/logo-white.png') center/220px no-repeat;
    opacity: .07;
    pointer-events: none;
}

/* =========================================
   TEXTO BAJO IMÁGENES DMS
========================================= */

.tech-image-caption {
    background: rgba(2,6,23,.92);
    padding: 18px 22px;
    color: #fff;
}

.tech-image-caption h6 {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
}

.tech-image-caption p {
    font-size: .9rem;
    line-height: 1.6;
    color: rgba(255,255,255,.85);
    margin: 0;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .tech-solution .tech-visual img,
    .tech-solution .tech-visual-large img {
        height: auto;
        min-height: unset;
    }

    .tech-image-caption {
        text-align: center;
    }
}

/* ===============================
   IMÁGENES SECUNDARIAS – DMS
================================ */


/* Imágenes secundarias DMS / FCW */
/* .ai-visual-small {
    max-height: 220px;
} */

.ai-visual-small img {
    height: 220px;
    object-fit: cover;
}



/* ===============================
   DMS – BLOQUE SECUNDARIO
================================ */

/* .dms-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
} */

/* .dms-item {
    border-radius: 18px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
} */

.dms-item img {
    width: 100%;
    height: 180px;         
    object-fit: cover;
    display: block;
}

.dms-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dms-stack .dms-image img {
    border-radius: 22px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.dms-stack .dms-image {
    transition: transform .4s ease, box-shadow .4s ease;
    border-radius: 22px;
}

.dms-stack .dms-image:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 10px 10px rgba(0,0,0,.3);
    border-radius: 22px;
}



/* RESPONSIVE */
@media (max-width: 991px) {

    /* .dms-gallery {
        grid-template-columns: 1fr;
    } */

    .dms-item img {
        height: auto;
    }

}

/* =====================================
   SEGURIDAD OPERACIONAL – AJUSTES FINOS
===================================== */

/* Título alineado con la imagen */
#seguridad-operacional .seguridad-title {
    margin-top: -12px;
}

/* Texto DMS justificado */
#seguridad-operacional .dms-text {
    text-align: justify;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 14px;
}

/* Contenedor imágenes DMS */
#seguridad-operacional .dms-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

/* Cards DMS */
#seguridad-operacional .dms-card {
    background: #020617;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

/* Imagenes DMS SIN CORTES */
#seguridad-operacional .dms-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;   /* 🔑 NO se cortan */
    background: #020617;
    padding: 10px;
}

/* Responsive */
@media (max-width: 991px) {

    #seguridad-operacional .seguridad-title {
        margin-top: 0;
        text-align: center;
    }

    #seguridad-operacional .dms-images {
        grid-template-columns: 1fr;
    }

    #seguridad-operacional .dms-text {
        text-align: center;
    }
}

/* =====================================
   SEGURIDAD OPERACIONAL – BLOQUE FINAL
===================================== */

#seguridad-operacional .seguridad-title {
    margin-top: -8px;
}

/* Texto DMS */
#seguridad-operacional .dms-text {
    text-align: justify;
    line-height: 1.75;
    /* font-size: larger; */
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 50px;
}

/* Galería DMS */
#seguridad-operacional .dms-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 28px;
}

/* Card DMS */
#seguridad-operacional .dms-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,.15);
    transition: transform .35s ease, box-shadow .35s ease;
}

/* Hover suave */
#seguridad-operacional .dms-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(56,189,248,.25);
}

/* Imagen SIN CORTES */
#seguridad-operacional .dms-card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: #f8fafc;
    padding: 14px;
}

/* Responsive */
@media (max-width: 991px) {

    #seguridad-operacional .seguridad-title {
        margin-top: 0;
        text-align: center;
    }

    #seguridad-operacional .dms-images {
        grid-template-columns: 1fr;
    }

    #seguridad-operacional .dms-text {
        text-align: center;
    }

    #seguridad-operacional .dms-card img {
        height: auto;
        padding: 12px;
    }
}



/* =========================================
   FIX REAL HERO MOBILE (SIN ESPACIO NEGRO)
   ========================================= */
@media (max-width: 768px) {

    .hero-section {
        display: block !important;   /* 🔑 mata flex */
        min-height: auto !important;
        height: auto !important;

        padding-top: 96px;
        padding-bottom: 12px;

        background-size: contain !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }

}
/* =========================================
   HERO PRO – MOBILE FIX DEFINITIVO
   ========================================= */

.hero-image-mobile {
    display: none;
}

@media (max-width: 768px) {

    .hero-section {
        display: block !important;          /* 🔑 MATA FLEX */
        background-image: none !important;

        min-height: unset !important;
        height: auto !important;

        padding-top: 88px;
        padding-bottom: 16px;
    }

    .hero-image-mobile {
        display: block;
        width: 100%;
        margin-bottom: 16px;
    }

    .hero-image-mobile img {
        width: 100%;
        height: auto;
        display: block;
    }
}
/* =========================================
   HERO MOBILE – ELIMINAR ESPACIO FANTASMA
   ========================================= */
@media (max-width: 768px) {

    .hero-image-mobile {
        margin-bottom: 0% !important;
    }

    .hero-title,
    .hero-text {
        margin-bottom: 12px !important; /* 🔑 reduce mb-4 */
    }

}

@media (max-width: 768px) {
    .hero-section .row {
        margin-bottom: 0;
    }

    .hero-section .col-lg-7 {
        padding-bottom: 0;
    }
}
/* =========================================
   HERO MOBILE – BLOQUE ÚNICO Y CORRECTO
   ========================================= */
.hero-image-mobile {
    display: none;
}

@media (max-width: 768px) {

    .hero-section {
        display: block !important;
        background-image: none !important;

        padding-top: 88px;
        padding-bottom: 0; /* 🔑 */
    }

    .hero-image-mobile {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }

    .hero-image-mobile img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Texto compacto */
    .hero-title {
        margin-bottom: 8px !important;
    }

    .hero-text {
        margin-bottom: 0 !important;
    }
}

/* =========================================
   ELIMINAR ESPACIO BLANCO POST-HERO (MOBILE)
   ========================================= */
@media (max-width: 768px) {

    #hero + section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    main {
        padding-top: 0 !important;
    }
}
 

/* =========================================
   HERO MOBILE – SOLUCIÓN FINAL DEFINITIVA
   ========================================= */
@media (max-width: 768px) {

    .hero-section {
        background-color: transparent !important; /* 🔥 CLAVE FINAL */
        background-image: none !important;

        min-height: auto !important; 
        height: auto !important;

        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

}
/* =========================================
   AJUSTE SECCIÓN QUIÉNES SOMOS (MOBILE)
   ========================================= */
@media (max-width: 768px) {

    #quienes-somos {
        padding-top: 24px !important;  /* antes 80+ */
    }

    #quienes-somos.section {
        padding-top: 34px !important;
    }

}
@media (max-width: 768px) {
    #quienes-somos {
        padding-top: 16px !important;
    }
}

/* =========================================
   HERO – FIX FINAL DE CONTENCIÓN (MOBILE)
   ========================================= */
@media (max-width: 768px) {

    .hero-section {
        margin-bottom: 0 !important;   /* 🔥 clave */
        overflow: hidden !important;   /* 🔥 corta overlays */
    }

    /* Si existe overlay */
    .hero-section::before,
    .hero-section::after {
        display: none !important;
    }

}
/* =========================================
   AOS FIX – HERO MOBILE
   ========================================= */
@media (max-width: 768px) {
    #hero [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}



/* ===============================
   HERO ICONOS LINKED
================================ */

.hero-icons {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
    margin-top: 40px;
    flex-wrap: nowrap;
}

.hero-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #e6e8ee;
    transition: transform .3s ease, opacity .3s ease;
}

.hero-icon:hover {
    transform: translateY(-6px);
    opacity: 0.9;
}

.hero-icon img {
    width: 90px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 18px rgba(56,189,248,.45));
}

.hero-icon span {
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    max-width: 160px;
}

/* ===============================
   MOBILE FIX – ÍCONOS EN FILA
================================ */

@media (max-width: 768px) {

    .hero-icons {
        flex-direction: row;       /* 🔑 horizontal */
        justify-content: center;
        gap: 20px;
        margin-top: 28px;
        flex-wrap: nowrap;
    }

    .hero-icon img {
        width: 60px;               /* más pequeños en móvil */
    }

    .hero-icon span {
        font-size: .7rem;
        max-width: 90px;
    }
}

/* ===============================
   HERO FEATURES (ICONOS)
================================ */

.hero-features {
    display: flex;
    gap: 60px;
    justify-content: center;

    position: absolute;              /* desktop */
    left: 50%;
    bottom: 250px;                    
    transform: translateX(-50%);
    z-index: 5;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #e6e8ee;
    transition: transform .3s ease, opacity .3s ease;
}

.hero-feature img {
    width: 180px;
    height: auto;
    margin-bottom: -25px;
    filter: drop-shadow(0 0 18px rgba(56,189,248,.45));
}

.hero-feature span {
    font-size: .85rem;
    font-weight: 600;
}

.hero-feature:hover {
    transform: translateY(-6px);
    opacity: .9;
}

/* ===============================
   MOBILE FIX – MUY IMPORTANTE
================================ */

@media (max-width: 768px) {

    .hero-features {
        position: relative;          /* 🔑 vuelve al flujo */
        left: auto;
        bottom: auto;
        transform: none;

        margin-top: 32px;
        gap: 18px;
    }

    .hero-feature img {
        width: 117px;
        
    }

    .hero-feature span {
        font-size: .7rem;
        color: #020202;
    }
}

.link{
    text-decoration: none;
    
}








