/********** Template CSS **********/
:root {
    --primary: #1363C6;
    --secondary: #15ACE1;
    --light: #F4F7FE;
    --dark: #14183E;
    --gradient-bg: linear-gradient(90deg, #3c72fc -10.59%, #00060c 300.59%);
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Heading ***/
h1,
h2,
h3,
.fw-bold {
    font-weight: 700 !important;
}

h4,
h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Navbar ***/
.fixed-top {
    top: -150px;
    transition: .5s;
    background-color: #0d6efd;

}

.navbar {
    padding: 11px 0 !important;
    height: 75px;
    background-color: #0d6efd;
}

/* Logo sizing and placement */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand img {
    height: 62px;
    width: auto;
    display: block;
}
.navbar-brand h1 {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1;
}

@media (max-width: 767.98px) {
    /* On small screens show only the reduced logo in top-left */
    .navbar-brand h1 {
        display: none;
    }
    .navbar-brand img {
        height: 36px;
    }
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 0;
    color: rgba(255, 255, 255, .7);
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        padding: 0 15px;
        background: var(--primary);
    }

    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -60px;
    background: url(../img/bg-hero.png) center center no-repeat;
    background-size: cover;
}

/* Responsive navbar adjustments */
/* Ensure page content is not hidden behind the fixed navbar */
body {
    padding-top: 75px;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 64px;
    }
}

/* Make logo scale on smaller devices */
.navbar-brand img {
    max-height: 56px;
    height: auto;
}

@media (max-width: 767.98px) {
    .navbar-brand img {
        max-height: 40px;
    }
    .navbar {
        height: auto;
        padding: 8px 0 !important;
    }
    /* place language buttons inside collapsed menu on small screens */
    .lang-switch.d-none.d-lg-flex {
        display: none !important;
    }
}

/* Desktop language switch positioning (keeps previous visual) */
.lang-switch {
    position: absolute;
    right: 16px;
    top: 12px;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: var(--dark);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 4px;
    bottom: 0;
    left: 50px;
    background: var(--dark);
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -25px;
}

.section-title.text-center::after {
    left: 50%;
    margin-left: 25px;
}

.section-title h6::before,
.section-title h6::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    top: 2px;
    left: 0;
    background: rgba(33, 66, 177, .5);
}

.section-title h6::after {
    top: 5px;
    left: 3px;
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px;
    background: #FFFFFF;
    transition: transform .35s, box-shadow .35s;
    min-height: 220px;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(3,12,30,0.12);
}

.service-item .service-icon {
    margin: 0 auto 18px auto;
    width: auto;
    height: auto;
    transition: transform .35s;
}

.service-icon .icon-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#3c72fc 0%, #1f63c9 100%);
    color: #fff;
    box-shadow: 0 8px 26px rgba(31,99,201,0.18);
}
.service-item:hover .icon-circle { transform: translateY(-6px) scale(1.03); }

.service-item h5,
.service-item p {
    transition: color .25s ease;
}

.service-item a.btn {
    position: relative;
    display: inline-flex;
    color: var(--primary);
    transition: .25s;
    z-index: 1;
}

.service-item a.btn::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    top: 0;
    left: 0;
    border-radius: 35px;
    background: var(--light);
    transition: .5s;
    z-index: -1;
}

.service-item:hover a.btn::before {
    width: 100%;
    background: var(--light);
}


/*** Case Study ***/
.case-item img {
    transition: .5s;
}
  
.case-item:hover img {
    transform: scale(1.2);
}
  
.case-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(20, 24, 62, 0), var(--dark));
    z-index: 1;
}

.case-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: #FFFFFF;
    background: rgba(20, 24, 62, .7);
    border-radius: 25px;
    margin-bottom: 15px;
}

.case-overlay span.btn:hover {
    color: var(--primary);
    background: #FFFFFF;
    border-color: #FFFFFF;
}


/*** Footer ***/
.footer-tech {
  background: #0d1117;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #2563eb;
}

.social-icons a {
  margin-right: 10px;
  font-size: 20px;
  text-decoration: none;
}

/* Footer custom styles to match attached design */
.footer-area {
    position: relative;
    color: #e6e9f2;
    overflow: hidden;
    background: linear-gradient(180deg,#07102a 0%, #081432 70%);
    padding-top: 140px;
}
.footer-area img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Partners: nuevo diseño visual (sin tocar animaciones) */
.partners-section .partner-card {
    position: relative;
    background: linear-gradient(135deg,#07142a 0%, #0b2b52 100%);
    border-radius: 14px;
    padding: 2.25rem 1rem 1.25rem;
    color:#ffffff;
    overflow: visible;
    min-height: 160px;
    box-shadow: 0 10px 30px rgba(3,12,30,0.6);
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform .35s ease, box-shadow .35s ease;
}

.partners-section .partner-card:hover {
    transform: translateY(-6px);
}

.partners-section .partner-icon {
    width:72px;
    height:72px;
    border-radius:50%;
    background: radial-gradient(circle at 30% 30%, #5aa1ff 0%, #1f63c9 45%, #09244a 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    top:-36px;
    box-shadow: 0 8px 20px rgba(9,20,40,0.6);
    border: 3px solid rgba(255,255,255,0.06);
}

.partners-section .partner-icon img {
    width:44px;
    height:auto;
    display:block;
    filter: brightness(1.02) saturate(0.9);
}

.partners-section .partner-card h5 {
    margin-top: 46px;
    font-weight:700;
    letter-spacing:0.6px;
    color: #eaf3ff;
    font-size: .95rem;
}

.partners-section .partner-card::before {
    content: "";
    position:absolute;
    right:12px;
    top:12px;
    width:42px;
    height:42px;
    background: linear-gradient(135deg,#113a7a,#0b2b5b);
    transform: rotate(-45deg);
    border-radius:6px 0 6px 0;
    opacity:0.95;
}

.partners-section .partner-card::after {
    content: "";
    position:absolute;
    left:12px;
    bottom:12px;
    width:36px;
    height:36px;
    background: linear-gradient(135deg,#0b2750,#07203a);
    transform: rotate(-45deg);
    border-radius:6px 0 6px 0;
    opacity:0.9;
}

@media (max-width:575.98px) {
    .partners-section .partner-card { padding:1.6rem .75rem 1rem; min-height:150px; }
    .partners-section .partner-icon { width:64px; height:64px; top:-32px; }
    .partners-section .partner-card h5 { margin-top:42px; font-size:.9rem; }
}

/* Service grid adjustments */
.service-grid .service-item { background: #ffffff; color: var(--dark); }
.service-grid .service-item h5 { color: var(--dark); font-weight:700; }
.service-grid .service-item p { color: rgba(20,24,62,.7); }

/* Ensure buttons in service cards look consistent */
.service-grid .service-item .btn-outline-primary { border-color: rgba(31,99,201,0.18); color: var(--primary); }
.service-grid .service-item .btn-outline-primary:hover { background: var(--primary); color: #fff; border-color: var(--primary); }


/* Partners small-icon cards */
.partner-card {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 22px 12px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.partner-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.15));
    box-shadow: 0 6px 18px rgba(2,6,23,0.45), inset 0 2px 6px rgba(255,255,255,0.02);
}
.partner-icon img {
    max-width: 48px;
    max-height: 48px;
    display: block;
}

@media (max-width: 576px) {
    .partner-card { padding: 14px 10px; min-height: 100px; }
    .partner-icon { width: 56px; height: 56px; }
    .partner-icon img { max-width: 36px; max-height: 36px; }
}

/* Hover / animated scalene triangles and overlapping icon */
.partner-card {
    position: relative;
    overflow: visible;
    transition: transform .36s cubic-bezier(.2,.9,.2,1), box-shadow .36s ease, border-color .36s ease;
}

/* Small corner scalene triangles near the card corners */
.partner-card::before,
.partner-card::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 56px;
    background: linear-gradient(140deg,#2b63ff 0%, #4a8cff 100%);
    opacity: 0;
    transition: transform .36s ease, opacity .24s ease;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 5px 10px rgba(2,6,23,0.28));
}

/* Top-right small scalene triangle (puntita hacia dentro) */
.partner-card::before {
    /* small rounded bar anchored to top-right that follows card contour */
    clip-path: none;
    top: 6px;
    right: 6px;
    left: auto;
    bottom: auto;
    width: 56px;
    height: 22px;
    border-radius: 8px;
    background: linear-gradient(90deg,#3b7bff 0%, #2b63ff 100%);
    transform: scale(0.18) rotate(22deg);
    transform-origin: 100% 0%;
}

/* Bottom-left small scalene triangle (puntita hacia dentro) */
.partner-card::after {
    /* small rounded bar anchored to bottom-left that follows card contour */
    clip-path: none;
    bottom: 6px;
    left: 6px;
    top: auto;
    right: auto;
    width: 56px;
    height: 22px;
    border-radius: 8px;
    background: linear-gradient(90deg,#2b63ff 0%, #4a8cff 100%);
    transform: scale(0.18) rotate(-22deg);
    transform-origin: 0% 100%;
}

.partner-icon {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    transition: transform .6s cubic-bezier(.2,.9,.2,1), box-shadow .36s ease, background .28s ease;
}
.partner-icon img { transition: transform .6s cubic-bezier(.2,.9,.2,1); }

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(2,6,23,0.46);
    border-color: rgba(60,114,252,0.45);
}

/* On hover move triangles toward their final corners (top-right & bottom-left) */
.partner-card:hover::before {
    opacity: 1;
    transform: scale(1) rotate(22deg);
}
.partner-card:hover::after {
    opacity: 1;
    transform: scale(1) rotate(-22deg);
}

.partner-card:hover .partner-icon {
    transform: translateX(-50%) translateY(-12px) scale(1.06);
    box-shadow: 0 10px 26px rgba(60,114,252,0.22), 0 2px 6px rgba(0,0,0,0.35);
}
.partner-card:hover .partner-icon img {
    transform: rotate(360deg);
}

.partner-card h5 { transition: color .22s ease; }
.partner-card:hover h5 { color: #fff; }

/* --- Split square & image split effect --- */
.partner-icon { position: relative; width: 86px; height: 86px; }
.split-square { position: absolute; left:50%; top:50%; transform: translate(-50%,-50%); width:64px; height:64px; pointer-events:none; z-index:3; }
.split-square .sq-part { position:absolute; width:50%; height:100%; top:0; background: linear-gradient(135deg,#0f3b86,#1e63c9); border-radius:6px; box-shadow:0 10px 26px rgba(7,20,56,0.6); transition: transform .5s cubic-bezier(.2,.9,.2,1), opacity .45s ease; }
.split-square .sq-a { left:0; transform-origin: 100% 50%; }
.split-square .sq-b { right:0; transform-origin: 0% 50%; }

.split-imgs { position: absolute; left:50%; top:50%; transform: translate(-50%,-50%); width:64px; height:64px; z-index:4; overflow: visible; }
.split-img { position: absolute; width:64px; height:64px; object-fit:contain; left:0; top:0; transition: transform .55s cubic-bezier(.2,.9,.2,1), opacity .45s ease; }
.split-img.img-a { clip-path: inset(0 50% 0 0); }
.split-img.img-b { clip-path: inset(0 0 0 50%); }

/* Initial: parts centered, visible */
.partner-card .sq-part, .partner-card .split-img { opacity: 1; }

/* Hover: split and move to corners, fade */
.partner-card:hover .split-square .sq-a { transform: translate(46px,-46px) rotate(12deg); opacity:0; }
.partner-card:hover .split-square .sq-b { transform: translate(-46px,46px) rotate(-12deg); opacity:0; }
.partner-card:hover .split-img.img-a { transform: translate(48px,-48px) rotate(8deg); opacity:0; }
.partner-card:hover .split-img.img-b { transform: translate(-48px,48px) rotate(-8deg); opacity:0; }

/* When mouse leaves, transitions bring them back to center and disappear (handled by hover reverse) */

@media (max-width:576px) {
    .partner-icon { width:72px; height:72px; }
    .split-square, .split-imgs { width:56px; height:56px; }
    .split-img, .split-square .sq-part { width:56px; height:56px; }
    .split-img.img-a { clip-path: inset(0 50% 0 0); }
    .split-img.img-b { clip-path: inset(0 0 0 50%); }
    .partner-card:hover .split-square .sq-a { transform: translate(40px,-40px) rotate(12deg); }
    .partner-card:hover .split-square .sq-b { transform: translate(-40px,40px) rotate(-12deg); }
}

/* Partners section background using provided image (place image at img/partners-bg.png)
     Fallback to gradient if image missing. */
.partners-section {
    background-image: linear-gradient(180deg, rgba(3,12,40,0.70), rgba(6,15,35,0.70)), url('../img/offer-shadow-shape.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.partners-section .partner-card {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.06);
    padding-top: 3.25rem; /* espacio para el icono circular superpuesto */
    position: relative;
}

/* Decorative corner pills for partners cards */
.partners-section .partner-card::before,
.partners-section .partner-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 2;
    width: 84px;
    height: 20px;
    border-radius: 12px;
    background: linear-gradient(90deg,#2b63ff 0%, #4ba6ff 100%);
    opacity: 1;
    transform-origin: center;
}
.partners-section .partner-card::before {
    top: 12px;
    right: 12px;
    transform: rotate(18deg);
}
.partners-section .partner-card::after {
    bottom: 12px;
    left: 12px;
    transform: rotate(-18deg);
}

/* Centered circular icon overlapping the top of the card */
.partners-section .partner-card .partner-icon {
    position: absolute !important;
    top: -36px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 84px !important;
    height: 84px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle at 30% 30%, #5aa1ff 0%, #1f63c9 45%, #09244a 100%) !important;
    box-shadow: 0 12px 30px rgba(9,20,40,0.6) !important;
    border: 3px solid rgba(255,255,255,0.06) !important;
    z-index: 6;
}
.partners-section .partner-card .partner-icon img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 52%;
    height: auto;
    filter: brightness(1.02) saturate(0.9) !important;
}

/* Forzar imagen centrada dentro de las tarjetas partners
   - anula el posicionamiento absoluto que usábamos para icon overlap
   - mantiene el aspecto circular y centra el img */
.partners-section .partner-card .partner-icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.partners-section .partner-card .partner-icon img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 60%;
    height: auto;
}

/* Left / Right decorative shapes (triangles, solids) */
.footer__shape-regular-left {
    position: absolute;
    top: -30px;
    left: -40px;
    width: 260px;
    z-index: 60;
    transform-origin: center center;
}
.footer__shape-solid-left {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 300px;
    z-index: 20;
    transform-origin: center center;
}
.footer__shape-regular-right {
    position: absolute;
    top: -30px;
    right: -200px;
    width: 260px;
    z-index: 60;
    transform-origin: center center;
}
.footer__shape-solid-right {
    position: absolute;
    bottom: -10px;
    right: -200px;
    width: 300px;
    z-index: 20;
    transform-origin: center center;
}

/* Large glow / semicircle at top center */
.footer__shadow-shape {
    position: absolute;
    bottom: -120px; /* moved to bottom of footer */
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    z-index: 1;
    opacity: .95;
    pointer-events: none;
}

/* Decorative motion animations for footer shapes */
@keyframes swayY {
    0% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}

@keyframes swayX {
    0% { transform: translateX(0); }
    50% { transform: translateX(12px); }
    100% { transform: translateX(0); }
}

.sway_Y__animation{
    animation: swayY 6s ease-in-out infinite;
    will-change: transform;
}

.sway_X__animation{
    animation: swayX 8s ease-in-out infinite;
    will-change: transform;
}

/* Simplify partners visuals: centrar logo y quitar rectángulos laterales */
.partners-section .partner-card::before,
.partners-section .partner-card::after,
.partner-card::before,
.partner-card::after,
.split-square,
.split-imgs,
.split-img,
.split-square .sq-part {
    display: none !important;
}

/* Asegurar que la imagen del partner esté centrada */
.partners-section .partner-card .partner-icon img,
.partner-icon img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 60% !important;
    height: auto !important;
}

/* Reglas finales y muy específicas para asegurar centrado absoluto */
.partner-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.partner-card > .partner-icon {
    position: relative !important;
    margin: 0 auto !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 86px !important;
    height: 86px !important;
    border-radius: 50% !important;
}

.partner-card > .partner-icon img {
    max-width: 60% !important;
    max-height: 60% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Restablecer icono como elemento superpuesto y ajustar glow */
.partners-section .partner-card .partner-icon {
    position: absolute !important;
    top: -36px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 84px !important;
    height: 84px !important;
    margin: 0 !important;
    z-index: 6 !important; /* arriba del glow */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Glow ajustado: degradado visible delante de la textura de imagen, pero detrás del icono */
.partners-section .partner-card::after {
    top: -20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 220px !important;
    height: 220px !important;
    border-radius: 50% !important;
    background-image: radial-gradient(circle at center, rgba(9,20,40,1) 0%, rgba(12,34,70,0.65) 22%, rgba(58,123,255,0.24) 42%, rgba(58,123,255,0.08) 60%, rgba(0,0,0,0) 100%), url('../img/offer-shadow-shape.png');
    background-position: center, center;
    background-size: cover, contain;
    background-repeat: no-repeat, no-repeat;
    z-index: 5 !important; /* detrás del icono */
    pointer-events: none !important;
}

@media (max-width: 576px) {
    .partners-section .partner-card::after {
        width: 140px !important;
        height: 140px !important;
        top: -10px !important;
    }
}

/* Degradado central (glow) detrás del logo: usa imagen si está disponible, si no usa radial-gradient */
.partners-section .partner-card {
    position: relative;
    overflow: visible;
}
.partners-section .partner-card::after {
    content: "";
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    /* colocar la imagen como capa superior y el degradado detrás */
    /* Degradado delante de la imagen (overlay) */
    background-image: radial-gradient(circle at center, rgba(58,123,255,0.34) 0%, rgba(58,123,255,0.14) 28%, rgba(9,20,40,0) 70%), url('../img/offer-shadow-shape.png');
    background-position: center, center;
    background-size: cover, contain;
    background-repeat: no-repeat, no-repeat;
    z-index: 10 !important;
    display: block !important;
    pointer-events: none !important;
}

@media (max-width: 576px) {
    .partners-section .partner-card::after {
        width: 120px !important;
        height: 120px !important;
        top: 6px !important;
    }
}

/* Brand / partners carousel specific styles */
.brand-area {
    padding: 32px 0 48px;
    color: #ffffff;
}
.brand__wrp {
    position: relative;
    max-width: 1200px; /* limitar ancho del bloque de logos */
    margin: 0 auto; /* centrar */
    padding: 18px 20px; /* espacio interior para el degradado */
    background: var(--gradient-bg); /* degradado en caja centrada */
    border-radius: 12px;
}
.brand__slider {
    padding: 12px 0;
}
.brand__slider .swiper-wrapper {
    align-items: center; /* vertically center slides */
}
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px; /* fixed slide box to make sizing predictable */
    height: 90px;
    padding: 8px 12px;
    background: #ffffff; /* caja blanca detrás del logo */
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(2,6,23,0.08);
    transition: transform .28s ease, box-shadow .28s ease;
}
.brand__image img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform .28s ease;
}

/* Hover: pequeño scale y glow blanco */
.brand__image:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 30px rgba(2,6,23,0.12), 0 0 22px rgba(255,255,255,0.85);
}
.brand__image:hover img { transform: scale(1.08); }

/* Reduce sizes on small screens */
@media (max-width: 768px) {
    .brand__image { width: 140px; height: 70px; }
    .brand__image img { max-height: 56px; }
}
@media (max-width: 480px) {
    .brand__image { width: 110px; height: 56px; }
    .brand__image img { max-height: 44px; }
}

/* Ensure Swiper navigation/pagination (if added) is visible on gradient */
.brand__wrp .swiper-button-next,
.brand__wrp .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(2,6,23,0.12);
}
.brand__wrp .swiper-button-next::after,
.brand__wrp .swiper-button-prev::after {
    font-size: 16px;
    color: var(--dark);
}
.brand__wrp .swiper-button-next:hover,
.brand__wrp .swiper-button-prev:hover {
    transform: translateY(-2px);
}


.footer__shape-solid-left img,
.footer__shape-regular-right img,
.footer__shape-solid-right img{
    display:block;
    pointer-events:none;
    position:relative;
}

/* Ensure image stacking within wrapper honors the wrapper z-index */
.footer__shape-regular-left img,
.footer__shape-regular-right img{
    z-index: 61;
}
.footer__shape-solid-left img,
.footer__shape-solid-right img{
    z-index: 21;
}

.footer__wrp{
    display:flex;
    gap:30px;
    flex-wrap:wrap;
    align-items:flex-start;
    padding: 40px 0 10px 0;
    z-index: 3;
}
.footer__item{ flex:1 1 220px; min-width:220px; padding:10px 20px; z-index:3 }
.footer__item.item-big{ flex:1 1 320px }
.footer-title{ color:#ffffff; font-weight:700; margin-bottom:18px; font-size:1.25rem }
.footer__item p{ color: rgba(230,233,242,.85); line-height:1.8 }
.social-icon a{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:1px solid rgba(255,255,255,.08); margin-right:8px; color:#fff; border-radius:6px }
.footer__item ul{ list-style:none; padding:0; margin:0 }
.footer__item ul li{ margin-bottom:12px }
.footer__item ul li a{ color: rgba(230,233,242,.85); text-decoration:none }
.footer-contact li{ display:flex; gap:12px; align-items:flex-start }
.footer-contact i{ font-size:22px; color:#fff; margin-top:4px }
.footer-contact .info h5{ color:#fff; font-size:1rem; margin:0 0 4px }
.footer-contact .info p{ margin:0; color: rgba(230,233,242,.85) }
.footer p.mb-20 i, .footer .mb-20 i{ font-size:22px; color:var(--accent-4); margin-top:4px; vertical-align:middle; margin-right:8px; display:inline-block }

/* Language switcher */
.lang-switch{ display:flex; gap:8px; align-items:center }
.lang-btn{ background:transparent; border:1px solid rgba(255,255,255,0.08); color:inherit; padding:6px 8px; border-radius:6px; cursor:pointer }
.lang-btn.active{ background:var(--accent-4); color:var(--accent-on-dark); border-color:var(--accent-4) }
.footer__copyright{ border-top:1px solid rgba(255,255,255,.03); padding:18px 0; margin-top:30px }
.footer__copyright p, .footer__copyright a{ color: rgba(230,233,242,.7) }

/* Responsive: simplify shapes and stack columns on mobile */
@media (max-width: 991.98px){
    .footer__shape-regular-left,
    .footer__shape-solid-left,
    .footer__shape-regular-right,
    .footer__shape-solid-right{
        display:none;
    }
    .footer__shadow-shape{ bottom: -60px; top: auto; width: 720px; opacity:.9 }
    .footer__wrp{ flex-direction:column }
    .footer__item{ min-width:100%; padding:20px }
    .footer-area{ padding-top:80px }
}

/* Cases / Case Study: uniform image sizing and nicer overlay */
.case-item {
    border-radius: 12px;
    overflow: hidden;
    background: #0f1724;
    position: relative;
}
.case-item img.img-fluid {
    width: 100%;
    height: 420px; /* aumentado: más grande en desktop */
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2,.9,.2,1);
}
.case-item:hover img.img-fluid { transform: scale(1.06); }

.case-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(3,6,12,0.62) 60%, rgba(3,6,12,0.9) 100%);
    align-items: flex-start;
    text-decoration: none;
}
.case-overlay small {
    display: inline-block;
    padding: 6px 12px;
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    font-size: 12px;
}
.case-overlay h5 {
    color: #fff;
    font-weight: 700;
    margin: 0;
}
.case-overlay .btn-square {
    background: #fff;
    color: var(--primary);
}

@media (max-width: 992px) {
    .case-item img.img-fluid { height: 360px; }
}
@media (max-width: 576px) {
    .case-item img.img-fluid { height: 280px; }
    .case-overlay { padding: 12px; }
}

/*** Card Hover Effect ***/
.btn-outline-primary.outline-fill {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Fondo animado */
.btn-outline-primary.outline-fill::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #0d6efd;
    border-radius: 50px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
    z-index: -1;
}

/* Hover */
.btn-outline-primary.outline-fill:hover {
    background-color: transparent !important;
    color: #031269 !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-outline-primary.outline-fill:hover::before {
    transform: scaleX(1);
}

/*** Case Description Modal ***/
.case-description-modal {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px);
    z-index: 1000 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.case-description-modal.show {
    opacity: 1;
    visibility: visible;
}

.case-item:hover .case-description-modal {
    opacity: 1;
    visibility: visible;
}

.case-description-card {
    background-color: white;
    animation: slideInCard 0.3s ease-in-out;
    cursor: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close-description {
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-description:hover {
    background-color: #0a58ca !important;
    transform: translateY(-2px);
}

/* Language switch (inline near logo on small screens, corner on large screens) */
.lang-switch{
    display:flex;
    align-items:center;
    gap:8px;
    margin-left:12px;
}
.lang-switch .lang-btn{
    border:1px solid rgba(255,255,255,.6);
    background:transparent;
    color:#fff;
    padding:6px 10px;
    border-radius:6px;
    font-weight:600;
    cursor:pointer;
}
.lang-switch .lang-btn:focus{
    outline:2px solid rgba(255,255,255,.15);
}

/* On large screens keep the language buttons inline between logo and menu */
@media (min-width: 992px){
    .lang-switch{
        position:static;
        margin-left:12px;
    }
}

@media (max-width: 991.98px){
    .navbar-brand{
        gap:8px;
    }
}
