/********** Template CSS **********/
:root {
    --primary: #1363C6;
    --secondary: #15ACE1;
    --light: #F4F7FE;
    --dark: #14183E;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}


/*** 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;
    /* Respaldo: si jQuery/CDN tarda o falla, el spinner se oculta solo a los 4s */
    animation: spinnerFailsafe .5s ease-out 4s forwards;
}

@keyframes spinnerFailsafe {
    to { opacity: 0; visibility: hidden; }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}
.btn-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    line-height: 63px;
    bottom: 20px;
    left: 80px; /* Se ajusta para no tapar el botón de 'Back to Top' */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

.btn-whatsapp:focus-visible {
    outline: 3px solid #FFF;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #25d366;
}

/* Anillo que late para llamar la atención sin tapar contenido */
.btn-whatsapp::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: wa-ring 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes wa-ring {
    0% { transform: scale(1); opacity: .8; }
    70%, 100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .btn-whatsapp::before { animation: none; display: none; }
}

/* Selector WhatsApp / WhatsApp Business (lo crea js/main.js) */
.wa-chooser {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.wa-chooser[hidden] {
    display: none;
}

.wa-chooser-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 62, .55);
    opacity: 0;
    transition: opacity .2s ease;
}

.wa-chooser-sheet {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 12px 12px;
    padding: 24px 20px 18px;
    background: #FFF;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(20, 24, 62, .35);
    transform: translateY(24px);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.wa-chooser.is-open .wa-chooser-backdrop { opacity: 1; }
.wa-chooser.is-open .wa-chooser-sheet { transform: none; opacity: 1; }

@media (min-width: 601px) {
    .wa-chooser { align-items: center; }
    .wa-chooser-sheet { margin: 0 16px; }
}

.wa-chooser-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--light);
    color: var(--dark);
    font-size: 22px;
    line-height: 1;
}

.wa-chooser-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 0 36px 18px 0;
}

.wa-chooser-logo {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #FFF;
    font-size: 28px;
}

.wa-chooser-head h2 {
    font-size: 1.15rem;
    margin: 0 0 4px;
    color: var(--dark);
}

.wa-chooser-head p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.4;
}

.wa-chooser-opts {
    display: grid;
    gap: 10px;
}

.wa-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid #E3E8F4;
    border-radius: 14px;
    color: var(--dark);
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.wa-opt:hover,
.wa-opt:focus-visible {
    border-color: #25d366;
    background: #F1FCF5;
    color: var(--dark);
    transform: translateY(-1px);
    outline: none;
}

.wa-opt.is-last {
    border-color: #25d366;
}

.wa-opt-icon {
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #FFF;
    font-size: 24px;
}

.wa-opt--biz .wa-opt-icon,
.wa-opt--desk .wa-opt-icon {
    background: #075E54;
}

.wa-opt-icon b {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFF;
    color: #075E54;
    font: 700 12px/20px "Ubuntu", sans-serif;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.wa-opt-txt {
    flex: 1;
    min-width: 0;
}

.wa-opt-txt strong {
    display: block;
    font-size: 1rem;
}

.wa-opt-txt small {
    display: block;
    color: #6B7280;
    line-height: 1.3;
}

.wa-opt em {
    flex: none;
    font-style: normal;
    font-size: .7rem;
    font-weight: 600;
    color: #128C7E;
    background: #E7F8EE;
    border-radius: 20px;
    padding: 2px 8px;
}

.wa-opt-go {
    flex: none;
    color: #9CA3AF;
}

.wa-chooser-alt {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: .82rem;
    color: #6B7280;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .wa-chooser-backdrop,
    .wa-chooser-sheet,
    .wa-opt { transition: none; }
}

/* Ajuste para móviles */
@media only screen and (max-width: 600px) {
    .btn-whatsapp {
        width: 50px;
        height: 50px;
        line-height: 53px;
        font-size: 30px;
        left: 20px;
        bottom: 70px; /* Sube un poco para no estorbar la navegación móvil */
    }
}

/*** Formularios ***/
/* Bootstrap 5.0 no contempla .form-floating dentro de .input-group (llegó en 5.1/5.2):
   sin esta regla el selector de país del celular se parte en dos líneas */
.input-group > .form-floating {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

/*** Heading ***/
h1,
h2,
h3,
.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: 0px !important;
    transition: .5s;
}

.navbar {
    padding: 11px 0 !important;
    height: 75px;
}

.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: 1199.98px) {
    .navbar .navbar-nav {
        padding: 0 15px;
        background: var(--primary);
    }

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

@media (min-width: 1200px) {
    .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;
    }
}


/* Navbar compacto para pantallas 1200px-1399px (evita que los enlaces se partan en dos líneas) */
@media (min-width: 1200px) {
    .navbar .navbar-nav .nav-link {
        white-space: nowrap;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 18px;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: 0px;
    background: url(../img/bg-hero.webp) center center no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    object-position: center;
}

/* En celulares el póster del video cubre el fondo: no se descarga la imagen grande */
@media (max-width: 768px) {
    .hero-header {
        background: var(--dark);
    }

    .feature,
    .newsletter {
        background-image: url(../img/bg-hero-m.webp);
    }

    .hero-header::after {
        background: rgba(20, 24, 62, 0.6);
    }
}

.hero-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(20, 24, 62, 0.7); /* Dark overlay for better text readability */
    z-index: 0;
}

.hero-header .container {
    position: relative;
    z-index: 1;
}

@media (min-width: 1200px) {
    .hero-header .container {
        max-width: 1368px; /* Expanded by 20% (1140px * 1.2) */
    }
}

@media (min-width: 1400px) {
    .hero-header .container {
        max-width: 1584px; /* Expanded by 20% (1320px * 1.2) */
    }
}

.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.webp) top left no-repeat;
    background-size: contain;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 45px 30px;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item .service-icon {
    margin: 0 auto 20px auto;
    width: 90px;
    height: 90px;
    color: var(--primary);
    background: var(--light);
    transition: .5s;
}

.service-item:hover .service-icon {
    background: #FFFFFF;
}

.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover h5,
.service-item:hover p {
    color: #FFFFFF;
}

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

.service-item:hover a.btn {
    color: var(--primary);
}

.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);
}


/*** Feature ***/
.feature {
    background: url(../img/bg-hero.webp) center center no-repeat;
    background-size: cover;
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/bg-hero.webp) center center no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** 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;
}


/*** FAQs ***/
.accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
}

.accordion .accordion-button {
    background: var(--light);
    border-radius: 2px;
}

.accordion .accordion-button:not(.collapsed) {
    color: #FFFFFF;
    background: var(--primary);
    box-shadow: none;
}

.accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion .accordion-body {
    padding: 15px 0 0 0;
}


/*** Testimonial ***/
.testimonial-carousel {
    position: relative;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 40px;
    height: 100%;
    top: calc(50% - 50px);
    left: -21px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 5px 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: 40px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    margin-left: 3rem;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    width: 15px;
    height: 15px;
    background: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}


/*** Team ***/
.team-item {
    transition: .5s;
    border: 1px solid transparent;
    transition: .5s;
}

.team-item:hover {

    border-color: var(--primary);
}


/*** Contact ***/
.contact-form .help-block ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}


/*** Footer ***/
.footer {
    background: url(../img/footer.webp) center center no-repeat;
    background-size: contain;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(256, 256, 256, .1);
    border-radius: 40px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/*** Service Card Gallery ***/
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

.service-card-img {
    height: 200px;
    background-color: #eaeaea;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.08);
}

.service-card-badge {
    z-index: 2;
    font-weight: 600;
}

/*** Brand Logo Marquee ***/
.logo-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 30px 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.logo-marquee-container::before,
.logo-marquee-container::after {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    content: "";
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-marquee-track {
    display: inline-flex;
    align-items: center;
    animation: marquee-scroll 35s linear infinite;
    gap: 80px;
}

.logo-marquee-container:hover .logo-marquee-track {
    animation-play-state: paused;
}

.logo-marquee-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 90px;
    flex-shrink: 0;
}

.logo-marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logo-marquee-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/*** Service Detail ***/
.detail-cover {
    box-shadow: 0 12px 30px rgba(20, 24, 62, .12);
}

.detail-stat {
    background: var(--light);
    border-left: 4px solid var(--primary);
}

.detail-feature {
    border: 1px solid transparent;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.detail-feature:hover {
    transform: translateY(-6px);
    border-color: rgba(19, 99, 198, .2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.detail-process li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 28px;
}

.detail-process li:last-child {
    padding-bottom: 0;
}

.detail-process li:not(:last-child)::before {
    position: absolute;
    content: "";
    top: 48px;
    bottom: 0;
    left: 23px;
    width: 2px;
    background: linear-gradient(var(--primary), var(--secondary));
    opacity: .35;
}

.detail-process-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 15px rgba(19, 99, 198, .3);
}

@media (min-width: 992px) {
    .detail-sidebar {
        position: sticky;
        top: 100px;
    }
}

.detail-service-nav a {
    display: block;
    color: var(--dark);
    transition: .3s;
}

.detail-service-nav a i {
    color: var(--primary);
}

.detail-service-nav a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.detail-service-nav a.active {
    color: var(--primary);
    font-weight: 600;
}

.detail-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 30px rgba(19, 99, 198, .25);
}


/*** Project Types ***/
.project-type-card {
    color: var(--dark);
    border: 1px solid transparent;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.project-type-card:hover {
    color: var(--dark);
    transform: translateY(-6px);
    border-color: rgba(19, 99, 198, .2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.project-type {
    scroll-margin-top: 100px;
}

.project-type-img {
    box-shadow: 0 12px 30px rgba(20, 24, 62, .15);
}

.project-type-img img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s ease;
}

.project-type-img:hover img {
    transform: scale(1.05);
}

.project-type-step {
    display: inline-block;
    margin-bottom: 8px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .5;
}

.project-check li {
    margin-bottom: 10px;
}

.project-tag {
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: #FFFFFF;
    border: 1px solid rgba(19, 99, 198, .25);
    border-radius: 50px;
}

/* Telegram chat mockup */
.tg-mock {
    max-width: 420px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(20, 24, 62, .15);
}

.tg-mock-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.tg-mock-header small {
    display: block;
    opacity: .75;
}

.tg-mock-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background: rgba(255, 255, 255, .2);
}

.tg-mock-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: var(--light);
}

.tg-msg {
    max-width: 85%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.tg-msg-bot {
    align-self: flex-start;
    color: var(--dark);
    background: #FFFFFF;
    border-bottom-left-radius: 4px;
}

.tg-msg-user {
    align-self: flex-end;
    color: #FFFFFF;
    background: var(--primary);
    border-bottom-right-radius: 4px;
}

.tg-msg-alert {
    border-left: 4px solid #DC3545;
}

.tg-msg-ok {
    border-left: 4px solid #198754;
}

/* Integration flow */
.project-flow-step {
    position: relative;
    height: 100%;
    padding: 24px 12px;
    background: var(--light);
    border-radius: 8px;
    transition: transform .3s ease;
}

.project-flow-step:hover {
    transform: translateY(-6px);
}

.project-flow-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #FFFFFF;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 15px rgba(19, 99, 198, .3);
}

@media (min-width: 992px) {
    .project-flow > div:not(:last-child) .project-flow-step::after {
        position: absolute;
        content: "\f054";
        top: 50px;
        right: -18px;
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        color: var(--secondary);
        z-index: 1;
    }
}


/*** Project Methodology & Success Cases ***/
.project-steps li {
    padding-bottom: 36px;
}

.step-deliverable {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--light);
    border-radius: 50px;
}

.success-case-block h4 {
    margin-bottom: 4px;
    color: var(--dark);
}

.success-case-block h4 i {
    color: var(--primary);
}

.success-case-block p {
    font-size: 15px;
}

.success-case-result {
    padding: 14px 16px;
    background: var(--light);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
}


/*** Buttons: CTA, glass y lift ***/
.btn-cta,
.btn-glass,
.btn-lift {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    font-weight: 600;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}

.btn-cta {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    box-shadow: 0 8px 20px rgba(19, 99, 198, .35);
}

/* Brillo que cruza el botón al pasar el mouse */
.btn-cta::after {
    position: absolute;
    content: "";
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    transition: left .6s ease;
}

.btn-cta:hover,
.btn-cta:focus {
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(19, 99, 198, .45);
}

.btn-cta:hover::after {
    left: 125%;
}

.btn-glass {
    color: #FFFFFF;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.btn-glass:hover,
.btn-glass:focus {
    color: var(--primary);
    background: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
}

.btn-lift {
    color: var(--primary);
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.btn-lift:hover,
.btn-lift:focus {
    color: var(--primary);
    background: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

/* Íconos con movimiento */
.btn .btn-arrow,
.btn .fa-arrow-right {
    transition: transform .3s ease;
}

.btn:hover .btn-arrow,
.btn:hover .fa-arrow-right {
    transform: translateX(4px);
}

.btn-cta .btn-icon,
.btn-glass .btn-icon,
.btn-lift .btn-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    transition: transform .3s ease;
}

.btn-lift .btn-icon {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-glass:hover .btn-icon {
    color: #FFFFFF;
    background: var(--primary);
}

.btn-cta:hover .btn-icon,
.btn-glass:hover .btn-icon,
.btn-lift:hover .btn-icon {
    transform: rotate(-12deg) scale(1.1);
}

/* "Leer más" de las tarjetas de servicio */
.service-item a.btn {
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.service-item a.btn::before {
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .btn-cta,
    .btn-glass,
    .btn-lift,
    .btn-cta::after,
    .btn .btn-arrow,
    .btn .fa-arrow-right {
        transition: none;
    }
}


/*** Hero: acceso destacado a la guía de soporte remoto ***/
.hero-guide {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    padding: 10px 22px 10px 10px;
    border-radius: 999px;
    color: #fff;
    text-align: left;
    background: linear-gradient(120deg, rgba(255, 179, 0, .22), rgba(21, 172, 225, .18));
    border: 2px solid rgba(255, 196, 0, .85);
    box-shadow: 0 0 0 0 rgba(255, 196, 0, .55), 0 12px 30px rgba(0, 0, 0, .25);
    backdrop-filter: blur(6px);
    overflow: hidden;
    animation: hero-guide-glow 2.4s ease-out infinite;
    transition: transform .25s ease, background .25s ease;
}

/* Brillo que cruza el botón */
.hero-guide::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    animation: hero-guide-shine 3.2s ease-in-out infinite;
    pointer-events: none;
}

.hero-guide:hover,
.hero-guide:focus-visible {
    color: #fff;
    transform: translateY(-3px);
    background: linear-gradient(120deg, rgba(255, 179, 0, .38), rgba(21, 172, 225, .28));
}

.hero-guide:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.hero-guide-icon {
    position: relative;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--dark);
    background: #ffc400;
}

.hero-guide-icon::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #ffc400;
    animation: hero-guide-ring 1.8s ease-out infinite;
}

.hero-guide-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero-guide-text small { font-size: 13px; color: rgba(255, 255, 255, .85); }
.hero-guide-text small b { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--dark); background: #ffc400; }
.hero-guide-text strong { font-family: 'Ubuntu', sans-serif; font-size: 17px; font-weight: 700; }
.hero-guide-arrow { flex: none; margin-left: 4px; transition: transform .25s ease; }
.hero-guide:hover .hero-guide-arrow { transform: translateX(5px); }

@keyframes hero-guide-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 196, 0, .55), 0 12px 30px rgba(0, 0, 0, .25); }
    70%, 100% { box-shadow: 0 0 0 14px rgba(255, 196, 0, 0), 0 12px 30px rgba(0, 0, 0, .25); }
}

@keyframes hero-guide-shine {
    0%, 55% { left: -60%; }
    100% { left: 130%; }
}

@keyframes hero-guide-ring {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 575.98px) {
    .hero-guide { padding-right: 16px; gap: 10px; }
    .hero-guide-text strong { font-size: 15px; }
    .hero-guide-icon { width: 42px; height: 42px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-guide,
    .hero-guide::after,
    .hero-guide-icon::before { animation: none; }
}


/*** Hero: accesos principales en una sola fila ***/
.hero-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.hero-action {
    --c: var(--secondary);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 118px;
    padding: 16px 10px 14px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* Franja de color arriba y halo que crece al pasar el mouse */
.hero-action::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--c);
    box-shadow: 0 0 14px var(--c);
    transition: left .3s ease, right .3s ease;
}

.hero-action:hover,
.hero-action:focus-visible {
    color: #fff;
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .16);
    border-color: var(--c);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .35), 0 0 0 1px var(--c);
}

.hero-action:hover::before,
.hero-action:focus-visible::before { left: 0; right: 0; }

.hero-action:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.hero-action-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 19px;
    color: #fff;
    background: var(--c);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    transition: transform .3s ease;
}

.hero-action:hover .hero-action-icon { transform: scale(1.1) rotate(-6deg); }

.hero-action strong { font-family: 'Ubuntu', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.2; }
.hero-action small { font-size: 12.5px; color: rgba(255, 255, 255, .78); line-height: 1.25; }

.hero-action--blue { --c: #15ACE1; }
.hero-action--green { --c: #20b26b; }
.hero-action--amber { --c: #f59f00; }

/* Portal Valletel: el acceso principal, relleno con degradado */
.hero-action--main {
    --c: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: rgba(255, 255, 255, .45);
    box-shadow: 0 12px 28px rgba(21, 172, 225, .4);
}

.hero-action--main .hero-action-icon { color: var(--primary); background: #fff; }
.hero-action--main small { color: rgba(255, 255, 255, .9); }
.hero-action--main:hover,
.hero-action--main:focus-visible { background: linear-gradient(135deg, #1a72dc, #2bbcef); }

@media (max-width: 575.98px) {
    .hero-actions { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-action { min-height: 108px; padding: 14px 8px 12px; }
    .hero-action strong { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-action,
    .hero-action::before,
    .hero-action-icon { transition: none; }
    .hero-action:hover { transform: none; }
}

/* Entre 992 y 1199 px la columna del hero es angosta: dos por fila */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-actions { grid-template-columns: repeat(2, 1fr); }
    .hero-action { min-height: 100px; }
}

/* Botones flotantes que se apartan cuando taparían una tarjeta del hero */
.btn-whatsapp.is-yielding,
.back-to-top.is-yielding {
    opacity: 0 !important;
    transform: scale(.6);
    pointer-events: none;
}

.back-to-top { transition: opacity .3s ease, transform .3s ease; }
