:root {
    --entix-red: #E51717;
    --entix-red-dark: #C12121;
    --entix-text: #202124;
    --entix-muted: #6c757d;
    --entix-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
    --entix-shadow-hover: 0 22px 45px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: auto;
    scroll-padding-top: 96px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: var(--entix-text);
}

body:not(.has-splash) {
    animation: page-enter 0.28s ease-out both;
}

body.has-splash {
    animation: none;
}

body.has-splash > :not(.site-splash) {
    opacity: 0;
    visibility: hidden;
}

body.page-exiting {
    animation: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.site-splash {
    align-items: flex-start;
    background-color: #fff;
    box-sizing: border-box;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 1;
    padding-top: clamp(5rem, 22vh, 9rem);
    position: fixed;
    transition: opacity .35s ease, visibility .35s ease;
    visibility: visible;
    z-index: 9999;
}

.site-splash.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.site-splash-image {
    display: block;
    height: auto;
    width: min(190px, 42vw);
}

@keyframes page-enter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.seminegrita {
    font-weight: 600 !important;
}

.img-intro {
    max-height: 360px;
    max-width: 42%;
    height: auto;
    object-fit: contain;
}

.hero-intro {
    padding-block: 2.25rem;
}

.hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .35rem;
}

.hero-image-carousel {
    margin-inline: auto;
    max-width: 520px;
}

.hero-image-carousel .carousel-inner {
    overflow: hidden;
}

.hero-image-carousel .carousel-item {
    min-height: 360px;
}

.hero-image-carousel .carousel-item.active,
.hero-image-carousel .carousel-item-next,
.hero-image-carousel .carousel-item-prev {
    align-items: center;
    display: flex;
    justify-content: center;
}

.hero-carousel-image {
    display: block;
    height: 360px;
    margin-inline: auto;
    max-width: 100%;
    object-fit: contain;
}

.hero-carousel-image-cloud {
    transform: scale(1.16);
    transform-origin: center;
}

[id] {
    scroll-margin-top: 96px;
}

.entix-link-reset {
    color: inherit;
    text-decoration: none;
}

.entix-link-reset:hover {
    color: var(--entix-red);
}

.entix-strong-accent {
    color: var(--entix-red);
    font-weight: 700;
}

.col-md-6.py-md-5 p:not(.card-text),
.container-fluid.py-5.bg-light .py-5 p.m-0,
.container-fluid.py-5.bg-light .py-5 p.mt-2 {
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
}

.entix-icon,
.entix-icon-xl {
    color: var(--entix-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.entix-icon {
    font-size: 2rem;
}

.entix-icon-xl {
    font-size: 4rem;
}

.card {
    border: 0;
    border-radius: 8px !important;
    box-shadow: var(--entix-shadow);
    cursor: pointer;
    height: 100%;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    box-shadow: var(--entix-shadow-hover);
    transform: translateY(-4px);
}

.linked-card {
    cursor: pointer;
}

.linked-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(229, 23, 23, 0.28), var(--entix-shadow-hover);
    outline: none;
    transform: translateY(-4px);
}

.card a {
    color: inherit;
    text-decoration: none !important;
}

.card a:hover {
    color: var(--entix-red);
}

.card-img-top {
    object-fit: contain;
}

.bd-navbar {
    background-color: var(--entix-red);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(255, 255, 255, 0.15);
    padding: .1rem 0;
}

.navbar .nav-link {
    border-radius: 6px;
    color: rgb(228, 228, 228) !important;
    margin-inline: .1rem;
    padding-inline: .75rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.14);
    color: #fff !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.75);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .18rem rgba(255, 255, 255, .28);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.carousel-inner {
    overflow: visible;
}

.banner {
    align-items: center;
    display: flex;
    justify-content: center;
}

.banner img,
.partner-logo {
    max-height: 40px;
    object-fit: contain;
}

.partner-logo-lg {
    max-height: 50px;
}

.client-logo-section {
    padding-block: 1.35rem;
    text-align: center;
}

.client-logo-heading {
    color: #495057;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
}

.client-logo-strip {
    overflow: hidden;
    padding-top: 1.35rem;
    position: relative;
}

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

.client-logo-strip::before {
    background: linear-gradient(90deg, var(--bs-secondary-bg), rgba(233, 236, 239, 0));
    left: 0;
}

.client-logo-strip::after {
    background: linear-gradient(270deg, var(--bs-secondary-bg), rgba(233, 236, 239, 0));
    right: 0;
}

.client-logo-track {
    animation: client-logo-scroll 48s linear infinite;
    display: flex;
    gap: 0;
    text-decoration: none;
    transform: translateX(0);
    --client-logo-distance: 50%;
    width: max-content;
}

.client-logo-track:focus-visible {
    outline: 3px solid rgba(229, 23, 23, 0.3);
    outline-offset: 6px;
}

.client-logo-strip:hover .client-logo-track {
    animation-play-state: paused;
}

.client-logo-group {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 2.5rem;
    padding-right: 2.5rem;
}

.client-logo-group .partner-logo {
    max-width: 140px;
    opacity: .82;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.client-logo-group .partner-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

@keyframes client-logo-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(var(--client-logo-distance) * -1));
    }
}

#scrollButton {
    align-items: center;
    background-color: #fff;
    border: 1px solid rgba(229, 23, 23, 0.2);
    border-radius: 50%;
    bottom: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    right: 20px;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: 44px;
    z-index: 1000;
}

#scrollButton.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-button-icon {
    color: var(--entix-red);
    font-size: 2rem;
    line-height: 1;
}

.section-top-action {
    display: flex;
    justify-content: flex-end;
    margin-top: .5rem;
    width: 100%;
}

.section-top-button {
    align-items: center;
    background-color: #fff;
    border: 1px solid rgba(229, 23, 23, 0.25);
    border-radius: 50%;
    color: var(--entix-red);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    margin: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 36px;
}

.section-top-button:hover,
.section-top-button:focus-visible {
    background-color: var(--entix-red);
    color: #fff;
    outline: none;
    transform: translateY(-2px);
}

.section-top-button i {
    font-size: 1.5rem;
    line-height: 1;
}

#logonav {
    transition: transform 0.25s ease;
}

#logonav:hover {
    transform: scale(1.06);
}

.text-danger {
    color: var(--entix-red) !important;
}

.btn-danger {
    background-color: var(--entix-red) !important;
    border-color: var(--entix-red) !important;
}

.btn-danger:hover {
    background-color: var(--entix-red-dark) !important;
    border-color: var(--entix-red-dark) !important;
}

.card-square .card {
    aspect-ratio: 1;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    padding: .75rem;
    width: 100%;
}

.card-square .row {
    justify-content: center;
}

.card-square .col {
    display: flex;
}

.card-square .col > a {
    display: block;
    width: 100%;
}

.card-square .card-image-container {
    align-items: center;
    display: flex;
    flex: 0 0 58%;
    height: auto;
    justify-content: center;
    overflow: hidden;
    padding: .5rem;
    width: 100%;
}

.card-square .card-body {
    align-items: center;
    display: flex;
    flex: 0 0 42%;
    justify-content: center;
    padding: .35rem;
    text-align: center;
    width: 100%;
}

.card-square .card-text {
    font-size: .95rem;
    line-height: 1.25;
    margin: 0;
}

.card-square .card-img-top {
    max-height: 72%;
    max-width: 76%;
    object-fit: contain;
}

#carouselModalidades .card-img-top {
    height: 190px;
    margin: 0 auto;
    max-width: 82%;
    object-fit: contain;
    padding: 1rem 1rem 0;
}

.detail-section-image {
    align-items: center;
    display: flex;
    justify-content: center;
}

.detail-illustration {
    display: block;
    max-height: 310px;
    max-width: min(340px, 78%);
    object-fit: contain;
}

.technology-logo {
    max-height: 72px;
    max-width: 78%;
    object-fit: contain;
    padding: .35rem;
}

.page-clientes #quienessomos {
    padding-block: 2rem 1rem !important;
}

.page-clientes #quienessomos .text-center {
    padding-block: 2rem 1rem !important;
}

.page-clientes #quienessomos .display-5 {
    font-size: clamp(2rem, 3vw, 2.75rem);
}

.page-clientes #quienessomos .fs-5 {
    font-size: 1rem !important;
    margin-bottom: 0;
}

.page-clientes .img-intro {
    max-height: 230px;
    max-width: min(280px, 34%);
}

.page-clientes .client-category-nav {
    margin-inline: auto;
    max-width: 1120px;
}

.page-clientes .client-category-card {
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: .45rem;
    justify-content: center;
    min-height: 106px;
    padding: .75rem .45rem;
    text-align: center;
    transition: box-shadow .2s ease, transform .2s ease;
}

.page-clientes .client-category-card:hover,
.page-clientes .client-category-card:focus-visible {
    box-shadow: var(--entix-shadow-hover);
    color: var(--entix-red);
    outline: none;
    transform: translateY(-3px);
}

.page-clientes .client-category-card .entix-icon {
    font-size: 1.65rem;
}

.page-clientes .client-category-card span {
    color: var(--entix-text);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.15;
}

.page-clientes .container-fluid.py-5.bg-light {
    padding-block: 1.35rem !important;
}

.page-clientes .container-fluid.py-5.bg-light + .container-fluid.py-5.bg-light {
    padding-top: .35rem !important;
}

.page-clientes .container > .py-3 {
    align-items: center;
    display: flex;
    gap: .7rem;
    padding-block: .35rem .75rem !important;
}

.page-clientes .container > .py-3 .entix-icon {
    font-size: 1.35rem;
}

.page-clientes .container > .py-3 .display-5 {
    color: var(--entix-text);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.2;
    margin: 0;
}

.page-clientes .album.bg-body-tertiary {
    background-color: transparent !important;
}

.page-clientes .card-square .row {
    row-gap: 1rem;
}

.page-clientes .card-square .card {
    aspect-ratio: auto;
    min-height: 128px;
    padding: .55rem;
}

.page-clientes .card-square .card-image-container {
    flex: 0 0 70%;
    padding: .4rem .5rem .2rem;
}

.page-clientes .card-square .card-body {
    flex: 0 0 30%;
    padding: .2rem;
}

.page-clientes .card-square .card-img-top {
    max-height: 72px;
    max-width: 88%;
}

.page-clientes .card-square .card-text {
    color: #495057;
    font-size: .82rem;
    line-height: 1.15;
}

#carouselExampleIndicators {
    margin: 0 auto;
    max-width: 800px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    align-items: center;
    background-color: rgba(0, 0, 0, 1);
    background-size: 20px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    height: 50px;
    justify-content: center;
    padding: 20px;
    width: 50px;
}

#carouselExampleIndicators .carousel-inner img {
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.carousel-inner .card-img-top {
    display: block;
    margin-inline: auto;
    max-height: 190px;
    max-width: 82%;
    object-fit: contain;
    padding: 1rem 1rem 0;
}

h5.rectangulo {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 5px !important;
    color: #fff !important;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    min-height: 3rem;
    padding: .5rem;
    text-align: center;
    width: min(250px, 90%);
}

@media (max-width: 768px) {
    .hero-intro {
        padding-block: 1.75rem 2rem;
    }

    .hero-image-carousel .carousel-item {
        min-height: 280px;
    }

    .hero-carousel-image {
        height: 280px;
    }

    .img-intro {
        max-height: 280px;
        max-width: 72%;
    }

    .client-logo-strip::before,
    .client-logo-strip::after {
        width: 42px;
    }

    .client-logo-group {
        gap: 1.8rem;
        padding-right: 1.8rem;
    }

    .client-logo-group .partner-logo {
        max-height: 34px;
        max-width: 112px;
    }

    .card-square .col {
        justify-content: stretch;
    }

    .card-square .row {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-left: 0;
        margin-right: 0;
    }

    .card-square .col {
        display: block;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .card-square .card {
        min-height: 142px;
    }

    #carouselExampleIndicators {
        max-width: 100%;
    }

    #carouselExampleIndicators .carousel-inner img {
        max-height: 300px;
    }

    .carousel-inner .card-img-top {
        max-height: 160px;
        max-width: 76%;
    }

    .display-5 {
        font-size: 2rem;
    }

    .entix-icon-xl {
        font-size: 2.65rem;
    }

    .detail-illustration {
        max-height: 240px;
        max-width: 68%;
    }

    .technology-logo {
        max-height: 64px;
        max-width: 72%;
    }

    .page-tecnologia .card-square .row {
        gap: 1rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-tecnologia .card-square .card {
        aspect-ratio: 1.08;
        min-height: 168px;
        padding: .7rem;
    }

    .page-tecnologia .card-square .card-image-container {
        flex-basis: 62%;
        padding: .45rem;
    }

    .page-tecnologia .card-square .card-body {
        flex-basis: 38%;
        padding: .35rem .2rem;
    }

    .page-tecnologia .card-square .card-text {
        font-size: .9rem;
        line-height: 1.22;
    }

    .page-tecnologia .card-square .card-img-top,
    .page-tecnologia .technology-logo {
        max-height: 82%;
        max-width: 82%;
    }

    .page-tecnologia .entix-icon-xl {
        font-size: 2.95rem;
    }

    .page-clientes .img-intro {
        max-height: 190px;
        max-width: 58%;
    }

    .page-clientes .container-fluid.py-5.bg-light {
        padding-block: 1rem !important;
    }

    .page-clientes .client-category-card {
        min-height: 94px;
        padding: .65rem .4rem;
    }

    .page-clientes .client-category-card .entix-icon {
        font-size: 1.45rem;
    }

    .page-clientes .client-category-card span {
        font-size: .76rem;
    }

    .page-clientes .container > .py-3 {
        gap: .55rem;
        padding-block: .25rem .65rem !important;
    }

    .page-clientes .container > .py-3 .display-5 {
        font-size: 1.45rem;
    }

    .page-clientes .card-square .row {
        gap: .75rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-clientes .card-square .card {
        min-height: 116px;
        padding: .45rem;
    }

    .page-clientes .card-square .card-image-container {
        flex-basis: 68%;
        padding: .25rem;
    }

    .page-clientes .card-square .card-body {
        flex-basis: 32%;
    }

    .page-clientes .card-square .card-img-top {
        max-height: 58px;
        max-width: 84%;
    }

    .page-clientes .card-square .card-text {
        font-size: .72rem;
    }
}

@media (max-width: 576px) {
    .hero-intro {
        padding-block: 1.35rem 1.75rem;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-image-carousel {
        max-width: 88%;
    }

    .hero-image-carousel .carousel-item {
        min-height: 230px;
    }

    .hero-carousel-image {
        height: 230px;
    }

    .card-square .row {
        gap: .9rem;
    }

    .card-square .card {
        min-height: 132px;
        padding: .55rem;
        width: 100%;
    }

    .card-square .card-image-container {
        flex-basis: 54%;
        padding: .25rem;
    }

    .card-square .card-body {
        flex-basis: 46%;
        padding: .25rem .1rem;
    }

    .card-square .card-text {
        font-size: .78rem;
        line-height: 1.18;
    }

    .card-square .card-img-top {
        max-height: 68%;
        max-width: 70%;
    }

    .entix-icon-xl {
        font-size: 2rem;
    }

    .page-tecnologia .card-square .row {
        gap: .85rem;
    }

    .page-tecnologia .card-square .card {
        min-height: 156px;
        padding: .6rem;
    }

    .page-tecnologia .card-square .card-text {
        font-size: .84rem;
        line-height: 1.18;
    }

    .page-tecnologia .card-square .card-img-top,
    .page-tecnologia .technology-logo {
        max-height: 80%;
        max-width: 84%;
    }

    .page-tecnologia .entix-icon-xl {
        font-size: 2.55rem;
    }

    .page-clientes #quienessomos {
        padding-block: 1.35rem .75rem !important;
    }

    .page-clientes #quienessomos .text-center {
        padding-block: 1.25rem .75rem !important;
    }

    .page-clientes .img-intro {
        max-height: 165px;
        max-width: 64%;
    }

    .page-clientes .client-category-nav .row {
        --bs-gutter-x: .6rem;
        --bs-gutter-y: .6rem;
    }

    .page-clientes .client-category-card {
        min-height: 88px;
    }

    .page-clientes .card-square .row {
        gap: .7rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-clientes .card-square .card {
        min-height: 122px;
    }

    .page-clientes .card-square .card-img-top {
        max-height: 62px;
    }

    .page-clientes .card-square .card-text {
        font-size: .76rem;
    }

    .site-splash {
        padding-top: clamp(4rem, 18vh, 7rem);
    }

    .site-splash-image {
        width: min(170px, 46vw);
    }
}

@media (max-width: 390px) {
    .card-square .row {
        gap: .65rem;
    }

    .card-square .card {
        min-height: 118px;
        padding: .45rem;
    }

    .card-square .card-text {
        font-size: .72rem;
    }

    .entix-icon-xl {
        font-size: 1.8rem;
    }

    .page-tecnologia .card-square .row {
        gap: .75rem;
    }

    .page-tecnologia .card-square .card {
        min-height: 142px;
        padding: .5rem;
    }

    .page-tecnologia .card-square .card-text {
        font-size: .78rem;
    }

    .page-tecnologia .entix-icon-xl {
        font-size: 2.25rem;
    }

    .page-clientes .card-square .row {
        gap: .6rem;
    }

    .page-clientes .card-square .card {
        min-height: 112px;
    }

    .page-clientes .card-square .card-img-top {
        max-height: 54px;
    }

    .page-clientes .card-square .card-text {
        font-size: .72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    body.page-exiting {
        animation: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .site-splash {
        transition: none;
    }

    .client-logo-track {
        animation: none;
    }
}
