/* =========================================================
   RESET + VARIABLES
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF8C42;
    --primary-yellow: #FFD700;
    --primary-blue: #4A9FD8;
    --dark-blue: #1A3C5E;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);

    /* compat */
    --azul: var(--primary-blue);
    --naranja: var(--primary-orange);
    --amarillo: var(--primary-yellow);
    --blanco: var(--white);

    /* extras */
    --radius-1: 14px;
    --radius-2: 18px;
    --shadow-1: 0 10px 25px rgba(0, 0, 0, .12);
    --shadow-2: 0 18px 45px rgba(0, 0, 0, .16);
    --border-soft: 1px solid rgba(26, 60, 94, .10);
    --navH: 90px;

    /* ✅ faltaban (los usabas y no existían) */
    --radius-xl: 22px;
    --line: 1px solid rgba(26, 60, 94, .10);
    --shadow-pop: 0 18px 40px rgba(0, 0, 0, .10);
    --ink: var(--dark-blue);
}

html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 1.1vw, 16px);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-blue);
    overflow-x: hidden;
    background: #fff;
    line-height: 1.45;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: min(1200px, 92vw);
}


/* =========================================================
   NAVBAR
========================================================= */

/* base navbar */
.navbar {
    height: auto !important;
    min-height: var(--navH);
    align-items: stretch;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all .25s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

/* menú desktop */
.nav-menu {
    display: flex;
    gap: 14px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    padding: 10px 22px;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark-blue);
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-menu a:hover {
    color: var(--primary-orange);
    background: rgba(255, 140, 66, 0.05);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
    background: rgba(255, 140, 66, 0.08);
}

/* botón hamburguesa (mobile) */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: var(--border-soft);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    font-size: 0;
    line-height: 0;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark-blue);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* =========================================================
   NAVBAR 3 COLUMNAS + LOGO CENTRO
========================================================= */
#navbar.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1200;
    padding: 14px 0;
    background: transparent;
    box-shadow: none;
    transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}

#navbar.navbar.is-scrolled {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
}

#navbar .nav3 {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

#navbar .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

#navbar .nav-left {
    justify-content: flex-start;
}

#navbar .nav-right {
    justify-content: flex-end;
}

#navbar .nav-menu a {
    text-decoration: none;
    font-weight: 800;
    font-size: .90rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
    color: rgba(255, 255, 255, .92);
}

#navbar.is-scrolled .nav-menu a {
    color: var(--dark-blue);
}

#navbar .nav-menu a:hover {
    transform: translateY(-1px);
    color: var(--primary-yellow);
}

#navbar.is-scrolled .nav-menu a:hover {
    color: var(--primary-orange);
    background: rgba(255, 140, 66, .06);
}

#navbar .nav-menu a.active {
    position: relative;
}

#navbar .nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 12%;
    bottom: 3px;
    width: 76%;
    height: 3px;
    border-radius: 999px;
    background: var(--primary-yellow);
}

#navbar.is-scrolled .nav-menu a.active::after {
    background: var(--primary-orange);
}

#navbar .nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
}

#navbar .nav-logo img {
    height: 74px;
    width: auto;
    opacity: 1 !important;
    visibility: visible !important;
    transition: height .2s ease, transform .2s ease, opacity .2s ease;
    filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 4px #ffffff);
}

#navbar.is-scrolled .nav-logo img {
    height: 74px;
}

#navbar .hamburger {
    display: none;
    justify-self: end;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
}

#navbar .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .25s ease;
}

#navbar.is-scrolled .hamburger {
    border: 1px solid rgba(26, 60, 94, .18);
    background: #fff;
}

#navbar.is-scrolled .hamburger span {
    background: var(--dark-blue);
}

#navbar .nav-mobile {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    margin-top: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(26, 60, 94, .12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

#navbar .nav-mobile a {
    color: var(--dark-blue) !important;
    padding: 12px 14px;
    border-radius: 14px;
    letter-spacing: 1px;
    text-align: left;
}

#navbar .nav-mobile a:hover {
    background: rgba(255, 140, 66, .08);
    color: var(--primary-orange) !important;
}

@media (max-width: 900px) {
    #navbar .nav3 {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo burger"
            "mobile mobile";
        gap: 12px;
    }

    #navbar .nav-left,
    #navbar .nav-right {
        display: none;
    }

    #navbar .nav-logo {
        grid-area: logo;
        justify-content: flex-start;
    }

    #navbar .hamburger {
        display: flex;
        grid-area: burger;
    }

    #navbar .nav-mobile {
        grid-area: mobile;
        width: 100%;
    }

    #navbar .nav-mobile.active {
        display: flex;
    }

    #navbar .nav-logo img {
        height: 56px;
    }
}

#navbar.menu-open {
    height: auto !important;
}


/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    padding-top: var(--navH);
    background-image: url("/view/img/prueba_final.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    overflow: hidden;
    animation: bgMovement 25s infinite alternate ease-in-out;
    margin-bottom: 12px;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 103, 160, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0;
    padding: clamp(18px, 3.5vw, 46px) 0;
    gap: clamp(14px, 3vw, 42px);
}

.hero-text {
    flex: 1.6;
    color: var(--white);
    margin-left: 0;
    animation: fadeInLift 1s ease-out forwards;
    z-index: 2;
    max-width: 720px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: left;
    letter-spacing: .5px;
}

.hero-title .line2 {
    color: var(--primary-yellow);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 300;
    letter-spacing: clamp(2px, .6vw, 4px);
    color: var(--white);
    margin-bottom: 2.5rem;
    border-left: 5px solid var(--primary-orange);
    padding-left: 15px;
    text-transform: uppercase;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 26px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    font-size: .92rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-orange), #ffae42);
    color: var(--white);
    border: none;
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 140, 66, 0.5);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

.main-slider-offer-box {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    padding-right: 0;
    min-width: min(480px, 90vw);
}

.main-slider-offer-box img {
    width: min(920px, 85vw);
    max-width: 920px;
    animation: floatingLogo 6s ease-in-out infinite;
    filter:
        drop-shadow(3px 0px 0px #ffffff) drop-shadow(-3px 0px 0px #ffffff) drop-shadow(0px 3px 0px #ffffff) drop-shadow(0px -3px 0px #ffffff) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease-out;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 1) 100%);
}


/* =========================================================
   TYPEWRITER
========================================================= */
.typewriter .line {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid rgba(255, 255, 255, 0.9);
}

.typewriter .line1 {
    width: 24ch;
    animation: typingLine1 2.5s steps(24, end) forwards;
}

.typewriter .line2 {
    width: 18ch;
    opacity: 0;
    animation: typingLine2 2s steps(18, end) forwards;
    animation-delay: 2.6s;
}

@keyframes typingLine1 {
    from {
        width: 0;
    }

    to {
        width: 24ch;
        border-right-color: transparent;
    }
}

@keyframes typingLine2 {
    from {
        width: 0;
        opacity: 1;
    }

    to {
        width: 18ch;
        opacity: 1;
        border-right-color: transparent;
    }
}


/* =========================================================
   CTA SLIDER
========================================================= */
.cta-sgi {
    position: relative;
    min-height: 520px;
    height: 70vh;
    max-height: 680px;
    overflow: hidden;
    margin-top: 0;
    background: #ffffff;
    margin-bottom: 0;
}

.cta-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* slides */
.cta-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
    z-index: 0;
}

.cta-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: contrast(1.06) saturate(1.06);
}

.cta-slide.active {
    opacity: 1;
    z-index: 1;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: transparent;
}

.cta-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 0;
}

.cta-grid {
    position: absolute;
    top: 50%;
    left: -134px;
    transform: translateY(-50%);
    width: min(520px, 92vw);
}

.cta-card {
    width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
    padding: clamp(18px, 2.2vw, 28px);
    text-align: left;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: .4px;
    font-size: .80rem;
    color: #fff;
    background: var(--primary-blue);
    margin-bottom: 12px;
}

.cta-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 2.5vw, 2.35rem);
    line-height: 1.12;
    color: #0b1220;
}

.cta-card p {
    margin: 0 0 16px;
    max-width: 48ch;
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    line-height: 1.65;
    color: rgba(11, 18, 32, .82);
}

.cta-card strong {
    color: var(--dark-blue);
    font-weight: 900;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-whatsapp-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    background: #25D366;
    border: 1px solid rgba(0, 0, 0, .10);
    box-shadow: 0 14px 30px rgba(37, 211, 102, .20);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-whatsapp-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(37, 211, 102, .28);
    filter: brightness(.98);
}

.cta-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .18s ease, background .18s ease;
}

.cta-arrow:hover {
    background: rgba(0, 0, 0, .55);
    transform: translateY(-50%) scale(1.05);
}

.cta-arrow.left {
    left: 16px;
}

.cta-arrow.right {
    right: 16px;
}

/* MOBILE CTA */
@media (max-width: 900px) {
    .cta-grid {
        top: auto;
        bottom: -190px;
        left: 14px;
        right: 14px;
        transform: none;
        width: auto;
        z-index: 5;
    }

    .cta-sgi {
        overflow: visible;
        margin-bottom: 220px;
    }

    .cta-card {
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
    }

    .btn-whatsapp-pro {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cta-sgi {
        height: 72vh;
        min-height: 520px;
        max-height: 720px;
    }

    .cta-arrow {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .cta-arrow.left {
        left: 10px;
    }

    .cta-arrow.right {
        right: 10px;
    }
}


/* =========================================================
   ABOUT SGI (✅ UNIFICADO + SLIDER + RESPONSIVE)
========================================================= */
.about-sgi {
    padding: 120px 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* decorativos */
.about-sgi::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 215, 0, .20);
}

.about-sgi::after {
    content: "";
    position: absolute;
    bottom: -70px;
    left: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(74, 159, 216, .18);
}

/* ✅ grid en desktop */
.about-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(18px, 4vw, 60px);
    max-width: 1200px;
    margin: 0 auto;
}

.about-image,
.about-content {
    min-width: 0;
}

/* caja imagen */
.about-image {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: var(--line);
    background: #fff;
    box-shadow: var(--shadow-pop);

    /* reveal desktop */
    transform: translateX(-60px);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease, box-shadow .35s ease;
}

.about-image:hover {
    box-shadow: 0 22px 60px rgba(26, 60, 94, .20);
}

/* ✅ slider crossfade */
.about-slider {
    position: relative;
    overflow: hidden;
    height: clamp(240px, 45vw, 460px);
}

.about-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.1s ease;
}

/* zoom hover */
.about-image:hover .slide {
    transform: scale(1.05);
}

/* animaciones crossfade */
.about-slider .s1 {
    animation: fade1 8s infinite linear;
}

.about-slider .s2 {
    animation: fade2 8s infinite linear;
}

@keyframes fade1 {
    0% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    55% {
        opacity: 0;
    }

    95% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade2 {
    0% {
        opacity: 0;
    }

    45% {
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* texto */
.about-content {
    transform: translateX(60px);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
    text-align: left;
}

.about-content h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.6rem);
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.12;
    letter-spacing: -0.6px;
}

.about-accent {
    color: var(--primary-blue);
    position: relative;
}

.about-accent::after {
    content: "";
    display: inline-block;
    margin-left: 10px;
    width: 46px;
    height: 10px;
    border-radius: 999px;
    background: var(--primary-yellow);
    vertical-align: middle;
}

.about-content p {
    font-size: clamp(.98rem, 1.2vw, 1.06rem);
    margin-bottom: 14px;
    line-height: 1.75;
    color: #4b4b4b;
    max-width: 60ch;
    text-align: justify;
}

/* cuando activas */
.about-sgi.active .about-image,
.about-sgi.active .about-content {
    transform: translateX(0);
    opacity: 1;
}

/* ✅ responsive: apila y NO se oculta si no hay JS */
@media (max-width: 900px) {
    .about-sgi {
        padding: 75px 16px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }

    /* en móvil, no ocultar ni mover */
    .about-image,
    .about-content {
        transform: none !important;
        opacity: 1 !important;
    }

    .about-content {
        text-align: center;
    }

    .about-content p {
        max-width: 100%;
        text-align: left;
    }

    .about-slider {
        height: clamp(220px, 60vw, 340px);
    }
}

@media (max-width: 480px) {
    .about-sgi {
        padding: 56px 14px;
    }

    .about-image {
        border-radius: 18px;
    }

    .about-slider {
        height: 240px;
    }
}


/* =========================================================
   WHY ELEGIRNOS
========================================================= */
.why-sgi-v2 {
    padding: 140px 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 65%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-header-v2 {
    max-width: 900px;
    margin: 0 auto 60px;
}

.why-header-v2 h2 {
    font-size: 2.6rem;
    color: var(--dark-blue);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.why-row {
    display: flex;
    justify-content: space-between;
    gap: 26px;
    max-width: 1200px;
    margin: auto;
    align-items: stretch;
}

.why-item {
    flex: 1;
    padding: 34px 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    transform: translateY(50px);
    opacity: 0;
    position: relative;
}

.why-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.10);
}

.why-circle {
    width: 170px;
    height: 170px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), #0b5bd3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 34px rgba(11, 91, 211, 0.25);
    transition: transform .35s ease, box-shadow .35s ease;
    position: relative;
}

.why-circle::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.why-item:hover .why-circle {
    transform: scale(1.06);
    box-shadow: 0 18px 40px rgba(11, 91, 211, 0.35);
}

.why-circle img {
    width: 115px;
    height: 115px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25));
}

.why-item h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.25rem;
    letter-spacing: -0.2px;
}

.why-item p {
    color: #5b5b5b;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

.why-sgi-v2.active .why-item {
    transform: translateY(0);
    opacity: 1;
}

.why-sgi-v2.active .why-item:nth-child(1) {
    transition-delay: .08s;
}

.why-sgi-v2.active .why-item:nth-child(2) {
    transition-delay: .16s;
}

.why-sgi-v2.active .why-item:nth-child(3) {
    transition-delay: .24s;
}

.why-sgi-v2.active .why-item:nth-child(4) {
    transition-delay: .32s;
}

@media (max-width: 992px) {
    .why-sgi-v2 {
        padding: 70px 16px;
    }

    .why-header-v2 {
        margin-bottom: 28px;
    }

    .why-header-v2 h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .why-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 760px;
        justify-items: stretch;
    }

    .why-item {
        opacity: 1;
        transform: translateY(0);
        padding: 18px 14px;
        border-radius: 18px;
    }

    .why-circle {
        width: 120px;
        height: 120px;
        margin-bottom: 12px;
    }

    .why-circle img {
        width: 78px;
        height: 78px;
    }

    .why-item h3 {
        font-size: 1.08rem;
        margin-bottom: 8px;
    }

    .why-item p {
        font-size: 0.93rem;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    .why-row {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   CERTIFICACIONES
========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    visibility: hidden;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.reveal.animate__animated {
    --animate-duration: 1.2s;
    animation-fill-mode: both;
}

.certificaciones-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.certificaciones-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.cert-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    text-align: center;
}

.cert-logo-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(70px, 8vw, 110px);
    height: auto;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.cert-text {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding-top: 10px;
}

.cert-title {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    color: #003366;
    line-height: 1.12;
    letter-spacing: -0.2px;
}

.cert-title span {
    color: #FF8C00;
}

.cert-desc {
    margin: 0 auto 16px;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 780px;
    text-align: justify;
}

.cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    color: #003366;
    font-weight: 800;
}

.cert-list i {
    color: #FF8C00;
}

.cert-image-container {
    width: 100%;
}

.cert-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border-bottom: 8px solid #FF8C00;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.cert-img {
    width: min(720px, 100%);
    height: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: zoom-in;
    display: block;
    margin: 0 auto;
}

.cert-caption {
    margin-top: 14px;
    font-size: .95rem;
    color: #666;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .cert-desc {
        text-align: left;
        font-size: 1rem;
    }

    .cert-logo-corner {
        position: static;
        margin: 0 auto;
        display: block;
        width: 96px;
    }

    .cert-wrapper {
        gap: 18px;
    }

    .cert-card {
        padding: 16px;
    }
}


/* =========================================================
   TÍTULO “Nuestros Clientes”
========================================================= */
.titulo-seccion {
    text-align: center;
    color: var(--azul);
    margin-bottom: 50px;
}


/* =========================================================
   CLIENTES SLIDER
========================================================= */
.clientes-slider {
    background-color: var(--primary-blue);
    padding: 40px 0;
    overflow: hidden;
    width: 100%;
    box-shadow:
        inset 0 10px 20px rgba(0, 0, 0, 0.08),
        inset 0 -10px 20px rgba(0, 0, 0, 0.08);
    margin-top: 60px;
}

.clientes-wrapper {
    width: 100%;
    overflow: hidden;
}

.clientes-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    transform: translate3d(var(--start, 0px), 0, 0);
    animation: clientesMarquee var(--duration, 35s) linear infinite;
}

.clientes-wrapper:hover .clientes-track {
    animation-play-state: paused;
}

@keyframes clientesMarquee {
    from {
        transform: translate3d(var(--start), 0, 0);
    }

    to {
        transform: translate3d(0px, 0, 0);
    }
}

.clientes-item {
    flex: 0 0 auto;
    margin: 0 20px;
    height: 120px;
    min-width: 200px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.clientes-item img {
    max-height: 72px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform .25s ease;
}

.clientes-item:hover img {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .clientes-item {
        height: 105px;
        min-width: 170px;
        margin: 0 14px;
    }

    .clientes-item img {
        max-height: 60px;
        max-width: 130px;
    }

    .clientes-slider {
        margin-top: 40px;
    }
}


/* =========================================================
   FOOTER
========================================================= */
.sgi-footer {
    position: relative;
    color: #fff;
    overflow: hidden;
    margin-top: 70px;
    background:
        linear-gradient(135deg, rgba(26, 60, 94, .94), rgba(10, 18, 28, .88)),
        url("./img/prueba.png") center/cover no-repeat;
    border-top: 6px solid var(--primary-orange);
}

.sgi-footer__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 215, 0, .18), transparent 55%),
        radial-gradient(circle at 85% 15%, rgba(74, 159, 216, .18), transparent 55%),
        linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .35));
    pointer-events: none;
}

.sgi-footer__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 38px;
    padding: 58px 0;
}

.sgi-footer__col {
    min-width: 0;
}

.sgi-footer__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.sgi-footer__logo {
    width: 124px;
    height: 114px;
    object-fit: contain;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

.sgi-footer__title {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: .5px;
}

.sgi-footer__tagline {
    margin: 2px 0 0;
    opacity: .9;
    font-size: .95rem;
}

.sgi-footer__desc {
    margin: 14px 0 16px;
    opacity: .92;
    line-height: 1.6;
    max-width: 520px;
}

.sgi-footer__badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sgi-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .4px;
    background: rgba(255, 140, 66, .16);
    border: 1px solid rgba(255, 140, 66, .35);
}

.sgi-badge--yellow {
    background: rgba(255, 215, 0, .16);
    border: 1px solid rgba(255, 215, 0, .35);
}

.sgi-footer__heading {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 900;
    position: relative;
    padding-left: 12px;
}

.sgi-footer__heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 18px;
    border-radius: 99px;
    background: var(--primary-yellow);
}

.sgi-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.sgi-footer__list a {
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
    transition: .25s ease;
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.sgi-footer__list a::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, .18);
}

.sgi-footer__list a:hover {
    color: #fff;
    transform: translateX(4px);
}

.sgi-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.sgi-footer__contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, .92);
}

.sgi-footer__contact a {
    color: rgba(255, 255, 255, .95);
    text-decoration: none;
}

.sgi-footer__contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.sgi-ico {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--primary-orange);
}

.sgi-ico svg {
    width: 18px;
    height: 18px;
}

.sgi-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.sgi-social {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    transition: .25s ease;
    text-decoration: none;
}

.sgi-social svg {
    width: 20px;
    height: 20px;
}

.sgi-social:hover {
    transform: translateY(-3px);
    background: rgba(255, 140, 66, .22);
    border-color: rgba(255, 140, 66, .40);
}

.sgi-social--wa:hover {
    background: rgba(37, 211, 102, .20);
    border-color: rgba(37, 211, 102, .40);
}

.sgi-footer__bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, .18);
    background: rgba(0, 0, 0, .22);
}

.sgi-footer__bottomInner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.sgi-footer__bottom p {
    margin: 0;
    opacity: .92;
    font-size: .92rem;
}

.sgi-footer__top {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: .25s ease;
}

.sgi-footer__top:hover {
    transform: translateY(-2px);
    background: rgba(255, 215, 0, .16);
    border-color: rgba(255, 215, 0, .35);
}

@media (max-width: 980px) {
    .sgi-footer__content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 0;
    }

    .sgi-footer__logo {
        width: 58px;
        height: 58px;
    }
}


/* =========================================================
   WHATSAPP WIDGET
========================================================= */
.wa-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.wa-fab {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: #25D366;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
    display: grid;
    place-items: center;
    transition: transform .15s ease, box-shadow .15s ease;
}

.wa-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .28);
}

.wa-fab:active {
    transform: translateY(0);
}

.wa-fab__icon {
    width: 34px;
    height: 34px;
    display: block;
    background: url("https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/whatsapp.svg") no-repeat center/contain;
    filter: invert(1);
}

.wa-popup {
    width: 320px;
    max-width: calc(100vw - 44px);
    position: absolute;
    right: 0;
    bottom: 78px;
    background: #0b0f10;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    overflow: hidden;

    opacity: 0;
    transform: translateY(10px) scale(.98);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.wa-popup.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wa-popup__header {
    background: #25D366;
    color: #fff;
    padding: 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-popup__brand {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
}

.wa-popup__logo {
    width: 28px;
    height: 28px;
    background: url("https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/whatsapp.svg") no-repeat center/contain;
    filter: invert(1);
}

.wa-popup__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, .18);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.wa-popup__close:hover {
    background: rgba(0, 0, 0, .28);
}

.wa-popup__body {
    padding: 16px;
    background: #0b0f10;
}

.wa-bubble {
    background: #2a2f32;
    color: #e9edef;
    border-radius: 16px;
    padding: 14px 14px;
    line-height: 1.35;
    font-size: 14px;
}

.wa-bubble__title {
    margin: 0 0 8px;
    font-weight: 700;
}

.wa-popup__footer {
    padding: 14px;
    background: #0b0f10;
}

.wa-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 14px 14px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(37, 211, 102, .25);
}

.wa-open:hover {
    filter: brightness(.98);
}

.wa-open__arrow {
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 5l7 7-7 7M20 12H4' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 5l7 7-7 7M20 12H4' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
}

@media (max-width: 420px) {
    .wa-widget {
        right: 14px;
        bottom: 14px;
    }

    .wa-popup {
        bottom: 74px;
    }
}


/* =========================================================
   MODAL LIGHTBOX
========================================================= */
.img-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 18px;
}

.img-modal.is-open {
    display: flex;
}

.img-modal__img {
    max-width: 96vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
    transform: scale(.85);
    opacity: 0;
    transition: transform .18s ease, opacity .18s ease;
}

.img-modal.is-open .img-modal__img {
    transform: scale(1);
    opacity: 1;
}

.img-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.img-modal__close:hover {
    background: rgba(255, 255, 255, .22);
}


/* =========================================================
   RESPONSIVE HERO
========================================================= */
@media (max-width: 1100px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .main-slider-offer-box img {
        max-width: 350px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 22px;
    }

    .hero-text {
        margin-left: 0;
        flex: 1;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .main-slider-offer-box img {
        max-width: 300px;
    }
}

@media (max-width: 900px) {
    :root {
        --navH: 110px;
    }

    .hero {
        padding-top: var(--navH);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-top: 8px;
        padding-bottom: 18px;
    }

    .hero-text {
        transform: translateY(-105px);
    }
}

@media (max-width: 600px) {
    .hero-content {
        padding: 18px 0;
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}