html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    width: 100% !important;
    overflow-x: clip !important;
    position: relative;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: border-box;
}

:root {
    --primary-blue: #000B59;
    --social-bg: #1da1f2; /* Default blue for icons, will refine */
    --text-white: #ffffff;
    --text-dark: #333333;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f5f6fa;
}

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

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    width: 100%;
}

#header {
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
}

/* TOP BAR */
.top-bar {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
    position: relative;
    z-index: 1100;
}

.container-top {
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.social-links {
    display: flex;
    gap: 8px; /* Slightly tighter gap as per general design feeling */
}

.social-icon {
    width: 30px;
    height: 30px;
    background-color: #1CA5EA; /* Standard celeste */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.social-icon i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    transform: scale(1.1);
}

.country-selector {
    position: relative;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.selected-country {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.selected-country:hover {
    background-color: #f8f9fa;
}

.flag-icon {
    width: 27px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
}

.selected-country span {
    color: var(--primary-blue);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
}

.selected-country i {
    font-size: 12px;
    color: var(--primary-blue);
}

/* DROPDOWN */
.country-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 600px;
    display: none;
    z-index: 1101;
    padding: 30px;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 40px;
}

.country-dropdown.active {
    display: flex;
}

.country-option {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flag-icon-large {
    width: 36px;
    height: 24px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.country-info span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.country-link {
    color: #4466ff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.country-link:hover {
    text-decoration: underline;
}

/* MAIN NAV */
.main-nav {
    background-color: var(--primary-blue);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container-nav {
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: auto;
    margin-right: 0;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    transition: opacity 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 1;
    color: #1CA5EA !important;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .top-bar {
        border-bottom: 2px dotted #1CA5EA;
        padding: 15px 0;
    }

    .container-top {
        justify-content: center;
        gap: 20px; /* Space between social icons and country selector */
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2.5px;
        background-color: #FFFFFF;
        border-radius: 2px;
        transition: all 0.3s 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(-7.5px) rotate(-45deg);
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000B59;
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
        margin: 0;
        z-index: 1000;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .country-dropdown {
        min-width: calc(100vw - 40px);
        right: -10px;
        padding: 20px;
        top: 100%;
    }
    
    .social-links {
        gap: 15px;
    }

    .main-nav {
        padding: 10px 0;
    }
    
    .logo img {
        height: 35px;
    }

    /* HERO MOBILE */
    .hero {
        height: auto !important;
        min-height: auto !important;
        padding: 60px 0;
    }

    .hero-bg-video {
        height: 100%;
    }

    .hero-content {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .slide {
        text-align: center !important;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 42px) !important;
        line-height: 1.1 !important;
        margin-bottom: 15px;
        height: auto !important;
        min-height: calc(1.1em * 3) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .hero-subtitle {
        font-size: clamp(16px, 4vw, 18px) !important;
        line-height: 1.4 !important;
        max-width: 100%;
        margin: 0 auto 30px auto;
        height: auto !important;
        min-height: calc(1.4em * 4) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .slider-dots {
        margin-top: 20px;
        justify-content: center;
    }

    .dot {
        width: 20.72px !important;
        height: 20.72px !important;
        margin: 0 10px;
        background-color: #B2E5FF !important; /* Lighter blue for inactive */
    }

    .dot.active {
        background-color: #1CA5EA !important;
    }

    .slider-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-content {
        height: auto !important;
        padding: 20px 0 0 0 !important;
        align-items: center !important;
    }

    .hero-logos-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 60px;
    }

    .logo-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 40px;
        width: 100%;
        max-width: 320px;
        justify-items: center;
        align-items: center;
    }

    .logo-grid img {
        max-width: 120px;
        max-height: 35px;
        object-fit: contain;
        filter: brightness(0) invert(1);
        opacity: 0.9;
    }

    .logo-drubbit-container {
        margin-top: 50px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logo-drubbit {
        max-width: 140px;
        max-height: 30px;
        filter: brightness(0) invert(1);
        opacity: 0.9;
    }

    .hero-partners {
        display: none !important;
    }

    .nosotros-image {
        content: url('../media/img/ilustracion-movil.png');
        width: 100%;
        height: auto;
    }

    .nosotros-grid-wrapper {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .nosotros-box, .nosotros-box-celeste {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        border-radius: 8px !important;
        padding: 40px 25px !important;
    }

    .certificados {
        height: auto !important;
        padding: 60px 0 !important;
    }

    .container-certificados {
        padding: 0 20px !important;
        gap: 20px !important;
    }

    .certificados-logos {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        margin-top: 40px !important;
    }

    .certificado-logo {
        width: 100% !important;
        max-width: 350px !important;
        height: auto !important;
    }

    /* FUNCIONALIDADES MOBILE */
    .container-funcionalidades {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .func-left {
        flex: 0 0 100% !important;
        position: relative !important;
        top: 0 !important;
        padding-top: 0 !important;
    }

    .func-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .func-card {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        padding: 40px 25px !important;
        border-radius: 12px !important;
    }

    .func-card:nth-child(1) {
        padding-top: 40px !important; /* Reset desktop offset */
    }

    .card-icon img {
        filter: brightness(0) invert(1) !important;
    }

    .card-func-title, .card-func-text {
        color: #FFFFFF !important;
    }

    /* INTEGRACIONES & CLIENTES VIDEO MOBILE */
    .integraciones-video,
    .clientes-section-video {
        height: auto !important;
        min-height: 450px !important;
        padding: 80px 0 !important;
    }

    .container-integraciones {
        padding: 0 20px !important;
        gap: 40px !important;
    }

    .integraciones-video-text {
        font-size: 24px !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
    }

    /* CLIENTES LOGO GRID MOBILE */
    .clientes-carousel-section {
        padding-bottom: 40px !important;
    }

    .carousel-container {
        width: 100% !important;
        padding: 0 15px !important;
    }

    .carousel-track {
        display: flex !important;
        gap: 15px !important;
        animation: scroll-carousel 60s linear infinite !important;
        width: max-content !important;
    }

    .logo-card-carousel {
        width: 120px !important;
        height: 100px !important;
        padding: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .logo-card-carousel img {
        max-width: 85% !important;
        max-height: 85% !important;
        object-fit: contain !important;
    }

    /* TESTIMONIALS MOBILE */
    .testimonials-section {
        padding-bottom: 60px !important;
    }

    .testimonials-container {
        padding: 0 15px !important;
    }

    .testimonial-card {
        min-width: 90% !important;
        max-width: 90% !important;
        height: auto !important;
        min-height: 480px !important;
        margin-right: 20px !important;
    }

    .testimonials-nav {
        justify-content: flex-start !important;
        margin-top: 30px !important;
        gap: 15px !important;
    }

    .testimonial-nav-btn {
        width: 45px !important;
        height: 45px !important;
    }

    /* INTEGRACIONES GALLERY MOBILE */
    .integraciones-gallery {
        padding: 60px 0 !important;
    }

    .gallery-container {
        width: 100% !important;
        padding: 0 20px !important;
    }

    .gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        gap: 10px !important;
        box-sizing: border-box !important;
    }

    .logo-card {
        width: 100% !important;
        height: 60px !important;
        padding: 8px !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .logo-card img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    .gallery-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 30px !important;
    }

    .gallery-title br {
        display: none !important;
    }

    /* COMPUTADORA SECTION MOBILE */
    .computadora-section {
        height: 80vh !important;
        min-height: 500px !important;
        background-position: 75% center !important;
    }

    .computadora-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0) 100%) !important;
    }

    .computadora-text-box {
        width: 85% !important;
        height: auto !important;
        top: auto !important;
        bottom: 120px !important;
        left: 20px !important;
    }

    .computadora-text {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .computadora-logo-box {
        width: 150px !important;
        height: auto !important;
        top: auto !important;
        bottom: 40px !important;
        left: 20px !important;
        padding: 0 !important;
    }

    /* FAQ SECTION MOBILE */
    .faq-section {
        padding: 60px 0 !important;
    }

    .container-faq {
        padding: 0 20px !important;
    }

    .faq-accordion {
        border: 1.5px solid #FFFFFF !important;
        border-radius: 20px !important;
        padding: 30px 20px !important;
        gap: 30px !important;
    }

    .accordion-question {
        font-size: 16px !important;
        line-height: 1.3 !important;
        max-width: 85% !important;
    }

    .accordion-icon {
        opacity: 1 !important;
        font-size: 22px !important;
    }

    .accordion-content p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* CONECTA SECTION MOBILE */
    .conecta-section {
        height: auto !important;
        padding: 80px 0 !important;
    }

    .container-conecta {
        padding: 0 20px !important;
    }

    .conecta-content {
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center !important;
    }

    .conecta-left, .conecta-right {
        width: 100% !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .conecta-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .conecta-text {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 90vh;
    min-height: 750px;
    width: 100%;
    overflow: hidden;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
    padding-top: 15px;
    padding-bottom: 96px;
    z-index: 5;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    min-height: 450px; /* Ensures consistent slide height without rigid per-element constraints */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide {
    display: none;
    animation: fadeIn 0.8s ease-in-out;
}

.slide.active {
    display: block;
}

.hero-title {
    color: #FFF;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.448px;
    margin-bottom: 20px;
    min-height: calc(1.15em * 3); /* Stable height for 3 lines */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-subtitle {
    color: #FFF;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(18px, 2vw, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.14px;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
    min-height: calc(1.5em * 3); /* Stable height for 3 lines */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 20.72px;
    height: 20.72px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.dot.active {
    background-color: #2ab1e4;
}

.hero-partners {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 10;
    overflow: hidden;
}

.partners-carousel-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: scroll-hero-carousel 30s linear infinite;
}

.partners-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-hero-carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 20px)); /* Adjust for half the gap */
    }
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 15px;
}

.partner-logo {
    width: 115px;
    height: 49.75px; 
    opacity: 1;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
    object-fit: contain;
}

.partner-logo:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .partners-grid {
        gap: 30px;
    }
}
/* NOSOTROS SECTION */
.nosotros {
    padding: 100px 0;
    padding-bottom: 0;
    background-color: #ffffff;
}

.clientes-stats {
    padding-top: 100px;
    padding-bottom: 50px;
    background-color: #ffffff;
}

.clientes-stats .container-nosotros {
    margin-bottom: 0;
}

.container-nosotros {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 30px;
}

.nosotros-text-left {
    flex: 1;
}

.nosotros-text-right {
    flex: 1;
    padding-top: 67px; /* Align with title's first line roughly */
}

.nosotros-label {
    display: block;
    color: #1CA5EA;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 51px;
    letter-spacing: -0.007em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.nosotros-label::after {
    content: "";
    display: block;
    width: 31px;
    height: 2px;
    background-color: #1CA5EA;
    border-radius: 1px;
}

.nosotros-title {
    color: #4C4C4C;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 35px;
    line-height: 51px;
    letter-spacing: -0.007em;
}

.nosotros-description {
    color: #4C4C4C;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5; /* User said 100%, but for paragraph 1.5 is better. User also said letter-spacing -0.7% */
    letter-spacing: -0.007em;
}

.container-nosotros-image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nosotros-image {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.container-nosotros-image a {
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 1100px;
}

.container-nosotros-image a:hover .nosotros-image {
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .container-nosotros {
        flex-direction: column;
        gap: 0px;
    }
    .nosotros-text-right {
        padding-top: 0;
    }
    .nosotros-title {
        font-size: 32px;
        line-height: 1.2;
    }
}

/* NOSOTROS BOXES SECTION */
.nosotros-boxes {
    padding: 60px 0 0px 0;
    background-color: #ffffff;
    padding-top: 30px;
    overflow: hidden; /* Prevent horizontal scroll from negative margin grid */
}

.nosotros-grid-wrapper {
    display: flex;
    gap: 45px;
    margin-top: 60px;
    width: 100%;
    justify-content: flex-start;
}

.nosotros-box-celeste {
    background-color: #1CA5EA;
    border-radius: 12px 12px 0 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: background-color 0.3s ease;
    min-height: 378px;
    max-width: 402.5px;
    flex: 1; /* Allow to shrink if needed */
}

.nosotros-box-celeste:hover {
    background-color: #158bc7;
}

.nosotros-box {
    background-color: #F5F5F5;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: background-color 0.3s ease;
    height: 315px;
    max-width: 402.5px;
    flex: 1; /* Allow to shrink if needed */
}

.nosotros-box:hover {
    background-color: #e8e8e8;
}

.box-gray {
    background-color: #F5F5F5;
}

.box-blue {
    background-color: #1CA5EA;
}

.box-gray .box-title,
.box-gray .box-description {
    color: #4C4C4C;
}

.box-blue .box-title,
.box-blue .box-description {
    color: #FFFFFF;
}

.box-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    letter-spacing: -0.007em;
    margin: 0;
}

.box-description {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1;
    /* letter-spacing: -0.007em; */
    margin: 0;
}

@media (max-width: 992px) {
    .container-nosotros-boxes {
        flex-direction: column;
        padding: 0 20px;
    }
    .nosotros-box {
        padding: 30px;
    }
}

/* CERTIFICADOS SECTION */
.certificados {
    position: relative;
    width: 100%;
    height: 624px;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificados .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.certificados-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Eliminate baseline gap */
}

.certificados .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Black overlay as requested */
}

.container-certificados {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 96px;
    gap: 8px;
    color: #FFFFFF;
}

/* INTEGRACIONES GALLERY SECTION */
.integraciones-gallery {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.gallery-label {
    display: block;
    color: #1CA5EA;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 51px;
    letter-spacing: -0.007em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.gallery-label::after {
    content: "";
    display: block;
    width: 31px;
    height: 2px;
    background-color: #1CA5EA;
    border-radius: 1px;
}

.gallery-title {
    color: #4C4C4C;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 35px;
    line-height: 51px;
    letter-spacing: -0.007em;
    margin-top: 0;
    margin-bottom: 0;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.gallery-header .hablemos-btn-wrapper {
    margin-bottom: 0 !important;
}

@media (min-width: 993px) {
    .gallery-header .hablemos-btn-wrapper {
        transform: translateY(10px) !important; /* Desplaza el botón hacia abajo para alinearlo visualmente con el final de la tipografía */
    }
}

@media (max-width: 992px) {
    .gallery-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
}

.gallery-container {
    max-width: 1297.5px;
    width: 100%;
    margin: 0 auto;
    padding: 0 25px;
}

@media (max-width: 1300px) {
    .gallery-container {
        padding: 0 20px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(8, 120px);
    grid-template-rows: repeat(7, 80px);
    gap: 24px;
    width: 1128px;
    height: 704px;
    margin: 0 auto;
}

.logo-card {
    width: 120px;
    height: 80px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.logo-card:hover {
    background-color: #F5F5F5;
}

.logo-placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    text-align: center;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.subir-container {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.subir-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000B59;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 27px;
    letter-spacing: -0.007em;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.subir-link:hover {
    opacity: 0.7;
}

.subir-link svg {
    margin-top: 2px;
}

.certificados-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1248px; /* 1440 - 2*96 */
}

.certificados-logos {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 50px;
}

.certificado-logo {
    height: 102px; 
    width: 200px;
}

.certificados-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 51px;
    letter-spacing: -0.007em;
    margin: 0;
    margin-bottom: 25px;
}

.certificados-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.007em;
    max-width: 1248px;
    margin: 0;
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .certificados-title {
        font-size: 32px;
        line-height: 40px;
    }
    .certificados-text {
        font-size: 18px;
        line-height: 26px;
    }
    .certificados-logos {
        gap: 20px;
    }
    .certificado-logo {
        height: 50px;
    }
}

/* FUNCIONALIDADES SECTION */
.funcionalidades {
    padding: 45px 0 100px 0; /* Add top padding to account for the offset cards */
    margin-top: -1px; /* Ensure overlap to avoid subpixel white line */
    background-color: #ffffff;
    overflow: hidden;
}

.container-funcionalidades {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.func-left {
    flex: 0 0 387.5px;
    position: sticky;
    top: 50px; /* Sticky below header - User manually set this */
    padding-top: 55px; /* Aligned with section top padding + subpixel correction */
}

.nosotros-title-main {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 40px;
    line-height: 51px;
    color: #4C4C4C;
    margin: 20px 0 0 0;
}

.func-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 402.5px);
    grid-auto-rows: 502px; /* Fixed row height to ensure uniform gaps */
    gap: 45px; /* Uniform gap for both rows and columns */
}

.func-right-bottom {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 402.5px);
    grid-auto-rows: 0; /* Fixed row height to ensure uniform gaps */
    gap: 45px; /* Uniform gap for both rows and columns */
}

.func-card {
    background-color: #1CA5EA;
    padding: 32px;
    display: flex;
    flex-direction: column; /* Ensure vertical stack inside card */
    transition: background-color 0.3s ease;
    height: 502px; /* Fixed height for all cards by default */
    box-sizing: border-box;
    overflow-wrap: break-word;
    border-radius: 8px;
    max-width: 402.5px;
    width: 100%;
}

.func-card:nth-child(1) {
    transform: translateY(-45px); /* ONLY first card touches the top */
    height: 547px; /* 502px + 45px offset to reach the same bottom as Card 2 */
    padding-top: 77px; /* 32px base + 45px offset to align icon/title with Card 2 */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.func-card:hover {
    background-color: #158bc7;
}

.func-card:nth-child(6) {
    height: 602px; /* 502px + 100px gap to touch the video section below */
    padding-bottom: 132px; /* Keep content aligned with Card 5 (32px base + 100px stretch) */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.func-card:nth-child(6):hover {
    background-color: #158bc7;
}

.card-icon {
    margin-bottom: 25px; /* Added space between icon and title */
}

.card-icon img {
    width: 61px;
    height: 61px;
    object-fit: contain;
}

.card-func-title {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 33px;
    letter-spacing: -0.007em;
    margin: 0;
}

.card-func-text {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 27px;
    letter-spacing: -0.007em;
    margin: 0;
    margin-top: auto; /* Align to the bottom of the card */
}

.integraciones-video,
.clientes-section-video {
    position: relative;
    width: 100%;
    height: 624px;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.integraciones-video .video-container,
.clientes-section-video .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.integraciones-video video,
.clientes-section-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.integraciones-video .video-overlay,
.clientes-section-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Black overlay for readability */
    z-index: 1;
}

.integraciones-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container-integraciones {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 32px;
}

.integraciones-video-text {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 51px;
    letter-spacing: -0.007em;
    text-align: center;
    margin: 0;
    max-width: 1100px;
}

.btn-demo {
    background-color: #1CA5EA;
    color: #FFFFFF;
    width: 235px;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 27px;
    letter-spacing: -0.007em;
    border-radius: 8px;
    gap: 8px;
    border: 2px solid #1CA5EA; /* Same as background for solid look */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    vertical-align: middle;
    box-sizing: border-box;
}

.btn-demo:hover {
    background-color: transparent;
    color: #1CA5EA;
}

.btn-demo i {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; /* Ensure icon is also sized correctly */
}

.integraciones-transition {
    background-color: #FFFFFF;
    position: relative;
    /* Remove height: 100px so it fits the content */
}

.transition-card-container {
    display: grid;
    grid-template-columns: repeat(2, 402.5px);
    gap: 45px;
}

.transition-card {
    grid-column: 2; /* Align with Card 6 (Right Column) */
    width: 402.5px;
    height: 104px;
    background-color: #1CA5EA;
    padding: 32px;
    gap: 45px;
    border-radius: 0 0 8px 8px;
    opacity: 1;
    z-index: 20;
    margin-top: 0; /* Ensures it touches the top of the section */
}

@media (max-width: 1200px) {
    .container-funcionalidades {
        flex-direction: column;
        gap: 40px;
    }
    .func-left {
        flex: 1;
        position: relative;
        top: 0;
    }
    .func-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .func-right {
        grid-template-columns: 1fr;
    }
    .func-card {
        min-height: auto;
    }
}

/* CLIENTES CAROUSEL */
.clientes-carousel-section {
    padding-bottom: 50px;
    background-color: #ffffff;
    overflow: hidden;
}

.carousel-container {
    max-width: 1348px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 32px;
    animation: scroll-carousel 80s linear infinite;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
    padding-bottom: 100px;
    background-color: #ffffff;
}

.testimonials-container {
    max-width: 1348px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.testimonials-slider {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 322px;
    max-width: 322px;
    height: 600px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.testimonial-card:hover {
    background-color: #F5F5F5;
}

.testimonial-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 33px;
    letter-spacing: -0.7%;
    color: #333333;
    margin-bottom: 20px;
}

.testimonial-quote-icon {
    width: 32px;
    height: 40px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 27px;
    letter-spacing: -0.7%;
    color: #333333;
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    text-align: left;
}

.testimonial-stars {
    width: 252px;
    height: 24px;
    margin-top: 20px;
}

.testimonial-quote-icon img,
.testimonial-stars img {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-quote-icon img,
.testimonial-card:hover .testimonial-stars img {
    transform: scale(1.1);
}

.testimonials-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 40px;
}

.testimonial-nav-btn {
    width: 50px;
    height: 51px;
    background-color: #1CA5EA;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 16px;
    padding: 12px 18px;
}

.testimonial-nav-btn:hover {
    background-color: #158bc7;
}

@media (max-width: 1400px) {
    .testimonials-container {
        max-width: 100%;
    }
}

.logo-card-carousel {
    position: relative;
    width: 160px;
    height: 160px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    flex: 0 0 auto;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.logo-card-carousel:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo-card-carousel img {
    position: absolute;
    top: 24.41px;
    left: 20.84px;
    width: 119.663px;
    height: 115.254px;
    object-fit: contain;
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 16px)); /* Adjust for half the gap between duplicate sets */
    }
}
/* COMPUTADORA SECTION */
.computadora-section {
    position: relative;
    width: 100%;
    height: 960px;
    background-image: url('../media/img/computadora.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.computadora-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(223.9deg, rgba(0, 11, 89, 0) 49.05%, rgba(0, 0, 0, 0.65) 76.47%);
    z-index: 1;
}

.computadora-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    z-index: 2;
}

.computadora-text-box {
    position: absolute;
    width: 601px;
    height: 141px;
    top: 656px;
    left: 73px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.computadora-text {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 38px;
    line-height: 47px;
    letter-spacing: -0.007em;
    margin: 0;
}

.computadora-logo-box {
    position: absolute;
    width: 175px;
    height: 48px;
    top: 852px;
    left: 73px;
    padding: 8px;
    display: flex;
    align-items: center;
}

.computadora-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1440px) {
    .computadora-section {
        height: auto;
        aspect-ratio: 1440 / 960;
    }
    .computadora-text-box {
        width: 80%;
        left: 5%;
        top: 65%;
    }
    .computadora-text {
        font-size: 24px;
        line-height: 1.2;
    }
    .computadora-logo-box {
        left: 5%;
        top: 85%;
    }
}

/* FAQ SECTION */
.faq-section {
    background-color: #1CA5EA;
    padding: 96px 0 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.container-faq {
    flex-direction: column;
    max-width: 1440px;
    width: 100%;
    padding: 0 73px;
    box-sizing: border-box;
}

.faq-header {
    width: 100%;
    margin-bottom: 48px;
}

.label-white {
    color: #FFFFFF !important;
}

.label-white::after {
    background-color: #FFFFFF !important;
}

.title-white {
    color: #FFFFFF !important;
}

.faq-accordion {
    width: 100%; /* Changed from fixed 1248px to follow container padding */
    display: flex;
    flex-direction: column;
    gap: 40px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
}

.accordion-item {
    border: none; /* Removed individual borders */
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.accordion-question {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    margin: 0;
    letter-spacing: -0.007em;
}

.accordion-icon {
    color: #FFFFFF;
    font-size: 20px;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-in-out, padding-top 0.3s ease;
    overflow: hidden;
}

.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
    padding-top: 16px;
}

.accordion-inner {
    overflow: hidden;
    min-height: 0;
}

.accordion-content p {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.007em;
    margin: 0;
}

.slider-subir-white {
    color: #FFFFFF !important;
}

.slider-subir-white svg path {
    stroke: #FFFFFF !important;
}

@media (max-width: 1440px) {
    .faq-accordion {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .faq-section {
        padding: 60px 20px 20px 20px;
    }
    .accordion-question {
        font-size: 18px;
    }
    .accordion-content p {
        font-size: 16px;
        line-height: 24px;
    }
}

/* CONECTA SECTION */
.conecta-section {
    position: relative;
    width: 100%;
    height: 590px;
    background-image: url('../media/img/conecta.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.conecta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.27); /* #00000045 */
    z-index: 1;
}

.container-conecta {
    position: relative;
    max-width: 1440px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 72px 96px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    z-index: 2;
}

.conecta-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 113px;
    width: 100%;
}

.conecta-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.conecta-right {
    flex: 1;
}

.conecta-title {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 51px;
    letter-spacing: -0.007em;
    margin: 0;
}

.conecta-text {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.007em;
    margin: 0;
}

@media (max-width: 1200px) {
    .conecta-content {
        gap: 50px;
    }
    .conecta-title {
        font-size: 32px;
        line-height: 1.2;
    }
}

@media (max-width: 992px) {
    .conecta-section {
        height: auto;
        padding: 60px 0;
    }
    .container-conecta {
        padding: 0 20px;
    }
    .conecta-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}

/* --- CONTACT MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: #FFFFFF;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden; /* Keep rounded corners clean */
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.modal-close:hover {
    color: #333;
}

.modal-header {
    padding: 40px 40px 20px 40px;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 32px;
    color: #333;
    margin: 0;
}

.modal-body {
    padding: 0 40px 40px 40px;
    overflow-y: auto;
    flex: 1;
    margin-right: 6px; /* Inset scrollbar to avoid rounded corner clipping */
}

/* Scrollbar styling inside modal-body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #444;
}

.required {
    color: #ff4d4d;
    margin-left: 4px;
}

.form-group input,
.form-group textarea,
.iti {
    width: 100%;
}

.form-group input,
.form-group textarea,
.iti__input {
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #333;
    background-color: #FFFFFF;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.iti__input:focus {
    outline: none;
    border-color: #1CA5EA;
    box-shadow: 0 0 0 2px rgba(28, 165, 234, 0.1);
}

/* Intl-tel-input specific fixes */
.iti__selected-flag {
    padding: 0 10px 0 12px;
    border-right: 1px solid #E0E0E0;
    border-radius: 6px 0 0 6px;
}

/* Dropdown visibility and styling */
.iti--container {
    z-index: 10002 !important;
}

.iti__country-list {
    background-color: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-submit {
    align-self: flex-end;
    background-color: #1CA5EA;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #158bc5;
}

.btn-submit:active {
    transform: scale(0.98);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .modal-overlay {
        padding: 10px;
    }
    .modal-container {
        max-height: 95vh;
    }
    .modal-header {
        padding: 30px 20px 15px 20px;
    }
    .modal-body {
        padding: 0 20px 30px 20px;
        margin-right: 4px;
    }
    .modal-title {
        font-size: 26px;
    }
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}
.main-footer {
    background-color: #000B59;
    padding: 96px 0;
}

.footer-mobile {
    display: none;
}

.container-footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-areas: 
        "brand countries contact"
        "legal countries contact";
    gap: 0 80px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 96px;
    box-sizing: border-box;
}

.footer-branding { grid-area: brand; }
.footer-countries { grid-area: countries; }
.footer-contact { grid-area: contact; }
.footer-legal { grid-area: legal; align-self: end; margin-top: 40px; }

.footer-logo { width: 165px; height: 30px; object-fit: contain; }
.footer-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: #FFFFFF; margin-bottom: 20px; }
.footer-subtitle { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: #FFFFFF; margin-bottom: 10px; }

.countries-grid { display: flex; gap: 60px; }
.countries-list { display: flex; flex-direction: column; }
.countries-list span, .contact-info span, .contact-info a {
    font-family: 'Poppins', sans-serif; font-weight: 300; font-size: 16px; line-height: 34px; color: #FFFFFF; text-decoration: none; display: block;
}

.footer-social { display: flex; gap: 12px; margin-top: 30px; }
.footer-social-icon {
    width: 37.6px; height: 37.6px; background-color: #181DB2; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; color: #FFFFFF; text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.footer-social-icon:hover { transform: scale(1.1); background-color: #1CA5EA; }

.footer-disclaimer { color: #1CA5EA; font-family: 'Poppins', sans-serif; font-size: 14px; margin-top: 20px; }
.footer-links { color: #1CA5EA; font-family: 'Poppins', sans-serif; font-size: 14px; margin-top: 10px; }
.footer-links a { color: #1CA5EA; text-decoration: none; }

/* Mobile Footer Styles (Isolated) */
@media (max-width: 1200px) {
    .footer-desktop { display: none !important; }
    .footer-mobile {
        display: block !important;
        padding: 60px 24px !important;
        background-color: #000B59;
    }
    .container-footer-mobile {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 40px !important;
    }
    .footer-mobile-brand, .footer-mobile-countries, .footer-mobile-contact, .footer-mobile-legal {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    .mobile-countries-grid {
        display: flex !important;
        justify-content: center !important;
        gap: 40px !important;
        text-align: left !important;
    }
    .mobile-countries-col span {
        font-family: 'Poppins', sans-serif; font-weight: 300; font-size: 15px !important; line-height: 2.2 !important; color: #FFFFFF;
    }
    .mobile-contact-info i, .mobile-contact-info a, .mobile-contact-info span {
        font-family: 'Poppins', sans-serif; font-weight: 300; font-size: 16px !important; line-height: 2 !important; color: #FFFFFF; text-decoration: none;
    }
    .mobile-social { display: flex !important; justify-content: center !important; gap: 15px !important; margin-top: 10px !important; }
    .footer-disclaimer-mobile { font-size: 13px !important; color: #1CA5EA !important; line-height: 1.5 !important; margin-top: 20px !important; text-align: center !important; }
    .footer-disclaimer-mobile p { margin-bottom: 15px !important; }
    .footer-links-mobile { margin-top: 10px !important; font-size: 14px !important; text-align: center !important; }
    .footer-links-mobile a { color: #1CA5EA !important; text-decoration: none; }
}

/* Inicio CSS Boton nuevo con animacion */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.hablemos-btn-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px !important;
    border-radius: 11px !important;
    --angle: 0deg;
    background: conic-gradient(from var(--angle), #0016B2, #8CEAF4, #0016B2) !important;
    animation: border-spin 2s linear infinite !important;
    width: max-content !important;
    height: 54px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    align-self: center !important;
}

.hablemos-btn-inner {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ffffff !important;
    color: #0016B2 !important;
    border-radius: 8px !important;
    border: none !important;
    width: max-content !important;
    height: 48px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

@keyframes border-spin {
    to { --angle: 360deg; }
}

.hablemos-btn-wrapper:hover {
    animation: none !important;
    background: #8CEAF4 !important;
}

.hablemos-btn-wrapper:hover .hablemos-btn-inner {
    background-color: #0E5375 !important;
    color: #ffffff !important;
}

.hablemos-icon {
    height: 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    margin-left: 10px !important;
    display: block !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
}

.hablemos-btn-wrapper:hover .hablemos-icon {
    content: url("https://softland.com/co/wp-content/uploads/sites/15/2026/02/chat-bubble-empty-hover.svg") !important;
}

.btn-hero-slider {
    margin-top: 40px !important;
    align-self: flex-start !important;
}

@media (max-width: 992px) {
    .btn-hero-slider {
        align-self: center !important;
    }
}

.btn-certificados-section {
    margin-top: 40px !important;
}
/* Fin CSS Boton nuevo con animacion */
.hablemos-btn-floating {
    position: fixed !important;
    bottom: 80px !important;
    right: 20px !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 900px) {
    .hablemos-btn-floating {
        bottom: 20px !important; /* On mobile reCAPTCHA might be different or hidden, but 20px is safer for general use if not overlapping */
    }
}


/* Ajuste de alineaciÃ³n para el botÃ³n en la secciÃ³n Conecta */
.conecta-section .hablemos-btn-wrapper {
    align-self: flex-start !important;
}

/* En mobile, lo mantenemos centrado si la secciÃ³n lo requiere */
@media (max-width: 900px) {
    .conecta-section .hablemos-btn-wrapper {
        align-self: center !important;
    }
}

/* Security: Honeypot field */
.hp-field {
    display: none !important;
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog-section {
    background-color: #ffffff;
    padding: 80px 0;
    width: 100%;
}

.container-blog {
    flex-direction: column;
}

.blog-header {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.blog-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 51px;
    letter-spacing: -0.007em; /* -0.7% */
    text-transform: uppercase;
    color: #1CA5EA;
}

.blog-line {
    width: 31px;
    height: 0px;
    border-top: 2px solid #1CA5EA;
    opacity: 1;
    margin-top: -8px;
    margin-bottom: 12px;
}

.blog-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 40px;
    line-height: 51px;
    letter-spacing: -0.007em; /* -0.7% */
    color: #3C3C3C;
    margin: 0;
    width: 750px;
    max-width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    justify-items: center;
    width: 100%;
}

.blog-card {
    width: 402px;
    height: 486px;
    opacity: 1;
    border-radius: 8px;
    background-color: #F7F8FA;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.blog-card-image-wrapper {
    position: relative;
    width: 402px;
    height: 192px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 121px;
    height: 35px;
    background: #5CA3E6;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.blog-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.007em;
    color: #3C3C3C;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 27px;
    letter-spacing: -0.007em;
    color: #818181;
    margin: 0 0 20px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.blog-card-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #818181;
    text-transform: uppercase;
}

.blog-card-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 27px;
    letter-spacing: -0.007em;
    color: #000B59;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.blog-card-link:hover {
    color: #1CA5EA;
}

/* RESPONSIVE DESIGN FOR BLOG */
@media (max-width: 1300px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        justify-items: center;
    }
}

@media (max-width: 900px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-header {
        align-items: center;
        text-align: center;
        margin-bottom: 35px;
    }

    .blog-line {
        margin-top: -4px;
        margin-bottom: 12px;
    }
    
    .blog-title {
        font-size: 28px;
        line-height: 38px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        justify-items: center;
    }

    .blog-card {
        width: 100%;
        max-width: 402px;
    }

    .blog-card-image-wrapper {
        width: 100%;
    }
}

