/* =========================================================
   STRATEGY EC - BASE
   ========================================================= */

:root {
    --header-height: 88px;
    --container-width: 1200px;
    --page-padding: 32px;

    --navy-950: #061426;
    --navy-900: #081a33;
    --blue-600: #256dff;
    --blue-500: #4f83ff;
    --blue-400: #79a4ff;

    --white: #ffffff;
    --white-soft: rgba(255,255,255,.72);

    --font:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font);
    color: #10233f;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(121,164,255,.9);
    outline-offset: 4px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: absolute;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;

    color: var(--white);
    border-bottom: 1px solid transparent;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        backdrop-filter .18s ease;
}

.site-header.is-scrolled {
    position: fixed;

    background: rgba(6, 20, 38, 0.62);

    border-bottom-color: rgba(255, 255, 255, 0.12);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.16);

    backdrop-filter:
        blur(6px)
        saturate(125%);

    -webkit-backdrop-filter:
        blur(5px)
        saturate(125%);
}

.header-container {
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--container-width)
    );

    min-height: var(--header-height);
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

/* =========================================================
   MARCA
   ========================================================= */

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
}

.brand-logo {
    display: block;
    width: auto;
    height: 56px;
    max-width: 230px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 1.2rem;
    letter-spacing: -.025em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--white-soft);
    font-size: .75rem;
    font-weight: 500;
}

/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link {
    position: relative;
    padding: 12px 0;

    color: rgba(255,255,255,.82);

    font-size: 1.04rem;
    font-weight: 600;

    transition: color .16s ease;
}

.nav-link::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 4px;

    width: 100%;
    height: 2px;

    border-radius: 999px;
    background: var(--blue-500);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform .16s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* =========================================================
   MENÚ MÓVIL
   ========================================================= */

.menu-toggle {
    display: none;

    width: 46px;
    height: 46px;

    padding: 11px;

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;

    background: rgba(255,255,255,.06);

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    border-radius: 999px;
    background: #fff;

    transition:
        transform .18s ease,
        opacity .18s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    min-height: 720px;

    display: flex;
    align-items: flex-start;

    padding:
        calc(var(--header-height) + 46px)
        var(--page-padding)
        80px;

    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(4, 15, 30, 0.9) 0%,
            rgba(4, 15, 30, 0.76) 32%,
            rgba(4, 15, 30, 0.28) 62%,
            rgba(4, 15, 30, 0.04) 100%
        ),
        url("../img/hero-strategyec.png");

    background-size: cover;
    background-position: 58% top;
    background-repeat: no-repeat;
}

.preview-content {
    width: min(100%, 1200px);
    margin-inline: auto;
}

.preview-content > * {
    max-width: 640px;
}

.preview-label {
    display: inline-block;
    margin-bottom: 12px;

    color: var(--blue-400);

    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.preview-content h1 {
    margin: 0;

    font-size: clamp(3.75rem, 5.1vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.preview-content p {
    max-width: 570px;
    margin: 26px 0 0;

    color: rgba(255,255,255,.78);
    font-size: 1.08rem;
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 34px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 48px;
    padding: 13px 22px;

    border: 1px solid transparent;
    border-radius: 12px;

    font-size: .98rem;
    font-weight: 700;

    transition:
        background-color .16s ease,
        border-color .16s ease,
        transform .16s ease;
}

.hero-button:hover {
    transform: translateY(-1px);
}

.hero-button-primary {
    color: #fff;
    background: var(--blue-600);
    border-color: rgba(255,255,255,.08);
}

.hero-button-primary:hover {
    background: #1d5ee0;
}

.hero-button-secondary {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.46);
}

.hero-button-secondary:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.68);
}

.empty-section {
    min-height: 1px;
}

/* =========================================================
   SOLUCIONES
   ========================================================= */

.solutions-section {
    scroll-margin-top: calc(var(--header-height) + 22px);
    padding: 60px var(--page-padding) 96px;
    background: #f8fbff;
}

.solutions-container {
    width: min(100%, var(--container-width));
    margin-inline: auto;
}

.solutions-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    align-items: end;
    gap: 72px;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 14px;

    color: var(--blue-600);

    font-size: .93rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.solutions-heading h2 {
    max-width: 620px;
    margin: 0;

    color: var(--navy-950);

    font-size: clamp(2.35rem, 4.1vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.solutions-heading p {
    margin: 0 0 8px;

    color: #52647c;

    font-size: 1.05rem;
    line-height: 1.68;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    margin-top: 64px;
    border-top: 1px solid rgba(37,109,255,.14);
    border-bottom: 1px solid rgba(37,109,255,.14);
}

.solution-item {
    min-width: 0;
    padding: 34px 28px 36px;
    border-right: 1px solid rgba(37,109,255,.12);

    transition:
        background-color .16s ease,
        transform .16s ease;
}

.solution-item:last-child {
    border-right: 0;
}

.solution-item:hover {
    background: rgba(255,255,255,.68);
    transform: translateY(-2px);
}

.solution-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    margin-bottom: 24px;

    border: 1px solid rgba(37,109,255,.12);
    border-radius: 16px;

    color: var(--blue-600);
    background: rgba(37,109,255,.08);

    transition:
        color .16s ease,
        background-color .16s ease;
}

.solution-item:hover .solution-icon {
    color: #1d5ee0;
    background: rgba(37,109,255,.12);
}

.solution-icon svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.solution-icon img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.solution-item h3 {
    margin: 0;

    color: var(--navy-950);

    font-size: 1.08rem;
    line-height: 1.25;
}

.solution-item p {
    margin: 14px 0 0;

    color: #586a82;

    font-size: .96rem;
    line-height: 1.68;
}

@media (max-width: 1199px) and (min-width: 901px) {
    .solutions-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .solution-item {
        grid-column: span 2;
        border-bottom: 1px solid rgba(37,109,255,.12);
    }

    .solution-item:nth-child(3),
    .solution-item:nth-child(5) {
        border-right: 0;
    }

    .solution-item:nth-child(4),
    .solution-item:nth-child(5) {
        grid-column: span 3;
        border-bottom: 0;
    }
}

/* =========================================================
   PRODUCTOS
   ========================================================= */

.products-section {
    scroll-margin-top: calc(var(--header-height) + 22px);
    padding: 76px var(--page-padding) 96px;

    background:
            linear-gradient(
                    180deg,
                    #eef5fc 0%,
                    #f8fbff 100%
            );
}

.products-container {
    width: min(100%, var(--container-width));
    margin-inline: auto;
}

/* =========================================================
   ENCABEZADO PRODUCTOS
   ========================================================= */

.products-heading {
    margin-bottom: 42px;
}

.products-heading h2 {
    max-width: 850px;
    margin: 0;

    color: var(--navy-950);

    font-size: clamp(2.35rem, 3.7vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -.025em;
}

/* =========================================================
   GRID PRODUCTOS
   ========================================================= */

.products-grid {
    display: flex;
    align-items: stretch;

    gap: 24px;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
            4px
            4px
            18px;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-color:
            rgba(37,109,255,.32)
            rgba(37,109,255,.08);
    scrollbar-width: thin;
}

.products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(37,109,255,.08);
}

.products-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(37,109,255,.28);
}

.products-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(37,109,255,.42);
}

.products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 16px;
}

.products-pagination-item {
    display: block;

    width: 18px;
    height: 4px;

    padding: 0;

    border: 0;
    border-radius: 999px;

    background: rgba(37,109,255,.30);

    cursor: pointer;

    transition:
            width .18s ease,
            background-color .18s ease,
            opacity .18s ease;
}

.products-pagination-item.is-active {
    width: 32px;

    background: var(--blue-600);
    opacity: 1;
}

/* =========================================================
   TARJETA
   ========================================================= */

.product-card {
    position: relative;

    flex:
            0
            0
            clamp(620px, 58vw, 680px);

    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(220px, .92fr);

    min-width: 0;
    min-height: 390px;

    overflow: hidden;

    scroll-snap-align: start;

    border:
            1px solid
            rgba(16, 43, 79, .09);

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
            0 14px 40px
            rgba(8, 26, 51, .07);

    transition:
            transform .18s ease,
            box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-3px);

    box-shadow:
            0 18px 50px
            rgba(8, 26, 51, .11);
}

/* =========================================================
   CONTENIDO
   ========================================================= */

.product-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 34px 18px 32px 30px;
}

/* Nombre + símbolo */

.product-name {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}

.product-name h3 {
    margin: 0;

    color: var(--navy-950);

    font-size: 1.85rem;
    line-height: 1;
    letter-spacing: -.035em;
}

.product-symbol {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    overflow: hidden;

    font-size: 1.35rem;
    font-weight: 800;
}

.product-symbol img {
    display: block;

    width: 28px;
    height: 28px;
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}

/* Fidelio */

.product-symbol-fidelio {
    color: #ef674f;
    background: #fff0ec;
}

/* Clinovexis */

.product-symbol-health {
    color: #1d79d5;
    background: #e8f5ff;
}

.product-symbol-pay {
    color: #1d79d5;
    background: #e8f5ff;
}

/* =========================================================
   TEXTOS
   ========================================================= */

.product-tagline {
    max-width: 290px;
    margin: 0;

    color: var(--navy-950);

    font-size: 1.13rem;
    font-weight: 750;
    line-height: 1.25;
}

.product-description {
    max-width: 330px;
    margin: 16px 0 26px;

    color: #52647c;

    font-size: .94rem;
    line-height: 1.6;
}

/* =========================================================
   BOTÓN
   ========================================================= */

.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 46px;
    margin-top: auto;

    padding: 11px 18px;

    border:
            1px solid
            rgba(37,109,255,.08);

    border-radius: 12px;

    color: var(--blue-600);
    background: rgba(37,109,255,.09);

    font-size: .94rem;
    font-weight: 700;

    transition:
            background-color .16s ease,
            color .16s ease,
            transform .16s ease;
}

.product-link:hover {
    color: #ffffff;
    background: var(--blue-600);

    transform: translateY(-1px);
}

/* =========================================================
   IMAGEN
   ========================================================= */

.product-visual {
    position: relative;
    min-width: 0;
    min-height: 100%;

    overflow: hidden;
}

.product-visual img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
            transform .4s ease;
}

.product-card-fidelio .product-visual img {
    object-position: 78% center;
}

.product-card-clinovexis .product-visual img {
    object-position: 70% center;
}

.product-card-paybridge .product-visual img {
    object-position: 58% center;
}

.product-card:hover .product-visual img {
    transform: scale(1.025);
}

/*
 * Transición muy suave entre contenido blanco e imagen.
 */
.product-visual::before {
    content: "";

    position: absolute;
    z-index: 1;

    top: 0;
    bottom: 0;
    left: 0;

    width: 48px;

    pointer-events: none;

    background:
            linear-gradient(
                    90deg,
                    #ffffff 0%,
                    rgba(255,255,255,.78) 30%,
                    rgba(255,255,255,0) 100%
            );
}

/* =========================================================
   NOSOTROS / NUESTRA FILOSOFÍA
   ========================================================= */

.about-section {
    position: relative;
    isolation: isolate;

    overflow: hidden;

    scroll-margin-top:
            calc(var(--header-height) + 22px);

    padding:
            88px
            var(--page-padding)
            92px;

    color: #ffffff;

    background: var(--navy-950);
}


/* =========================================================
   IMAGEN DE FONDO
   ========================================================= */

.about-background {
    position: absolute;
    z-index: -3;

    inset: 0;

    overflow: hidden;
}

.about-background img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
     * Queremos conservar más detalle
     * hacia el centro / derecha.
     */
    object-position: 62% center;

    transform: scale(1.01);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.about-overlay {
    position: absolute;
    z-index: -2;

    inset: 0;

    pointer-events: none;

    background:
            linear-gradient(
                    90deg,
                    rgba(4, 15, 30, .97) 0%,
                    rgba(4, 15, 30, .92) 35%,
                    rgba(4, 15, 30, .74) 68%,
                    rgba(4, 15, 30, .60) 100%
            ),
            linear-gradient(
                    180deg,
                    rgba(4, 15, 30, .20) 0%,
                    rgba(4, 15, 30, .54) 100%
            );
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.about-container {
    position: relative;
    z-index: 1;

    width:
            min(
                    100%,
                    var(--container-width)
            );

    margin-inline: auto;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.about-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(320px, .88fr);

    align-items: end;

    gap: 72px;
}


/* Eyebrow claro */

.section-eyebrow-light {
    color: #8ab0ff;
}


.about-title-block h2 {
    max-width: 680px;

    margin: 0;

    color: #ffffff;

    font-size:
            clamp(
                    2.8rem,
                    4.4vw,
                    4.15rem
            );

    line-height: 1.04;

    letter-spacing: -.035em;
}


.about-description {
    max-width: 500px;

    margin:
            0
            0
            6px;

    color:
            rgba(
                    255,
                    255,
                    255,
                    .76
            );

    font-size: 1.06rem;

    line-height: 1.72;
}


/* =========================================================
   PRINCIPIOS
   ========================================================= */

.about-principles {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 0;

    margin-top: 58px;

    border-top:
            1px solid
            rgba(255,255,255,.15);
}


/* Cada principio */

.about-principle {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    min-width: 0;

    padding:
            32px
            32px
            4px;

    border-right:
            1px solid
            rgba(255,255,255,.12);
}

.about-principle:first-child {
    padding-left: 0;
}

.about-principle:last-child {
    padding-right: 0;
    border-right: 0;
}


/* =========================================================
   ICONOS
   ========================================================= */

.about-principle-icon {
    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    border:
            1px solid
            rgba(121,164,255,.42);

    border-radius: 15px;

    background:
            rgba(248,251,255,.96);

    box-shadow:
            0 6px 18px
            rgba(0,0,0,.12);

    overflow: hidden;
}

.about-principle-icon img {
    display: block;

    width: 32px;
    height: 32px;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    filter: none;
}


/* =========================================================
   TEXTOS DE PRINCIPIOS
   ========================================================= */

.about-principle h3 {
    margin:
            2px
            0
            7px;

    color: #ffffff;

    font-size: 1.05rem;

    line-height: 1.25;
}


.about-principle p {
    margin: 0;

    color:
            rgba(
                    255,
                    255,
                    255,
                    .62
            );

    font-size: .94rem;

    line-height: 1.55;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact-section {
    scroll-margin-top: calc(var(--header-height) + 22px);

    padding:
            58px
            var(--page-padding)
            62px;

    background: #f8fbff;
}

.contact-container {
    width: min(100%, var(--container-width));
    margin-inline: auto;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 360px);

    align-items: center;
    gap: 56px;
}


/* =========================================================
   CONTACTO - INTRO
   ========================================================= */

.contact-intro h2 {
    max-width: 720px;
    margin: 0;

    color: var(--navy-950);

    font-size:
            clamp(
                    1.95rem,
                    3vw,
                    2.35rem
            );

    line-height: 1.13;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.contact-intro,
.contact-card {
    min-width: 0;
}

.contact-intro p {
    max-width: 520px;

    margin:
            16px
            0
            0;

    color: #52647c;

    font-size: 1.05rem;
    line-height: 1.58;
}


/* =========================================================
   CONTACTO - CARD
   ========================================================= */

.contact-card {
    position: relative;

    padding:
            26px
            28px;

    border:
            1px solid
            rgba(16, 43, 79, .10);

    border-radius: 16px;

    color: var(--navy-950);

    background: #ffffff;

    box-shadow:
            0 12px 32px
            rgba(8,26,51,.08);
}

.contact-list {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #253b59;

    font-size: .98rem;
    font-weight: 650;
    line-height: 1.35;

    transition:
            color .16s ease,
            transform .16s ease;
}

.contact-link:hover {
    color: var(--blue-600);
    transform: translateX(2px);
}

.contact-link svg {
    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    color: var(--navy-900);

    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding:
            34px
            var(--page-padding)
            22px;

    color: #ffffff;

    background: #061426;
}

.footer-container {
    width: min(100%, var(--container-width));
    margin-inline: auto;
}


/* =========================================================
   FOOTER PRINCIPAL
   ========================================================= */

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    padding-bottom: 24px;
}

.footer-brand-block {
    flex: 0 0 auto;
}

.footer-brand {
    display: inline-flex;
    align-items: center;

    gap: 14px;
}

.footer-brand img {
    display: block;

    width: auto;
    height: 42px;
}

.footer-brand div {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.footer-brand strong {
    color: #ffffff;

    font-size: 1.15rem;
    line-height: 1.1;
}

.footer-brand span {
    color:
            rgba(255,255,255,.60);

    font-size: .72rem;
}

.footer-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    gap: 10px 18px;
}

.footer-navigation a {
    color:
            rgba(255,255,255,.72);

    font-size: .92rem;

    transition:
            color .16s ease,
            transform .16s ease;
}

.footer-navigation a:hover {
    color: #ffffff;

    transform: translateY(-1px);
}

.footer-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 10px;

    min-width: 180px;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border:
            1px solid
            rgba(255,255,255,.14);

    border-radius: 10px;

    color: rgba(255,255,255,.76);
    background: rgba(255,255,255,.05);

    transition:
            color .16s ease,
            background-color .16s ease,
            transform .16s ease;
}

.footer-social a:hover {
    color: #ffffff;
    background: rgba(255,255,255,.10);
    transform: translateY(-1px);
}

.footer-social svg {
    width: 20px;
    height: 20px;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-side p {
    margin: 0;

    color: rgba(255,255,255,.56);

    font-size: .82rem;
    line-height: 1.35;
    text-align: right;
}


/* =========================================================
   FOOTER INFERIOR
   ========================================================= */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;

    padding-top: 18px;

    border-top:
            1px solid
            rgba(255,255,255,.10);
}

.footer-bottom p {
    margin: 0;

    color:
            rgba(255,255,255,.42);

    font-size: .82rem;
}

/* =========================================================
   CONTACTO + FOOTER - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .contact-section {
        padding-top: 54px;
        padding-bottom: 60px;
    }

    .contact-container {
        grid-template-columns:
                minmax(0, 1fr)
                minmax(260px, 330px);

        gap: 32px;
    }

    .contact-intro h2 {
        max-width: 620px;

        font-size:
                clamp(
                        1.85rem,
                        4vw,
                        2.25rem
                );
    }

    .contact-card {
        width: 100%;
    }


    /* Footer */

    .footer-main {
        flex-wrap: wrap;
        align-items: flex-start;

        gap: 24px 32px;
    }

    .footer-navigation {
        justify-content: flex-start;
    }

    .footer-side {
        margin-left: auto;
    }
}


/* =========================================================
   CONTACTO + FOOTER - MÓVIL
   ========================================================= */

@media (max-width: 560px) {

    .contact-section {
        scroll-margin-top:
                calc(var(--header-height) + 14px);

        padding-top: 48px;
        padding-bottom: 52px;
    }

    .contact-container {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .contact-intro h2 {
        max-width: 100%;

        font-size:
                clamp(
                        1.85rem,
                        8.4vw,
                        2.2rem
                );

        line-height: 1.12;
    }

    .contact-intro p {
        font-size: .98rem;
        line-height: 1.65;
    }

    .contact-card {
        padding:
                24px
                20px;

        border-radius: 16px;
    }


    /* Footer */

    .site-footer {
        padding-top: 34px;
        padding-bottom: 20px;
    }

    .footer-main {
        flex-direction: column;
        align-items: flex-start;

        gap: 22px;

        padding-bottom: 24px;
    }

    .footer-brand img {
        height: 38px;
    }

    .footer-navigation {
        justify-content: flex-start;
        gap: 10px 16px;
    }

    .footer-side {
        align-items: flex-start;
        min-width: 0;
        margin-left: 0;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom {
        align-items: flex-start;
        justify-content: flex-start;

        padding-top: 16px;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .about-section {
        scroll-margin-top:
                calc(var(--header-height) + 18px);

        padding-top: 72px;
        padding-bottom: 76px;
    }


    .about-background img {
        object-position: 68% center;
    }


    .about-overlay {
        background:
                linear-gradient(
                        90deg,
                        rgba(4,15,30,.96) 0%,
                        rgba(4,15,30,.88) 55%,
                        rgba(4,15,30,.70) 100%
                );
    }


    .about-heading {
        grid-template-columns: 1fr;

        align-items: start;

        gap: 24px;
    }


    .about-title-block h2 {
        max-width: 650px;

        font-size:
                clamp(
                        2.4rem,
                        6vw,
                        3.1rem
                );
    }


    .about-description {
        max-width: 620px;

        margin-bottom: 0;
    }


    .about-principles {
        gap: 18px;

        margin-top: 46px;
    }


    .about-principle {
        flex-direction: column;

        gap: 15px;

        padding:
                26px
                18px
                0;

        border-right:
                1px solid
                rgba(255,255,255,.12);
    }


    .about-principle:first-child {
        padding-left: 0;
    }


    .about-principle:last-child {
        padding-right: 0;
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 560px) {

    .about-section {
        scroll-margin-top:
                calc(var(--header-height) + 14px);

        padding-top: 56px;
        padding-bottom: 62px;
    }


    .about-background img {
        object-position: 72% center;
    }


    /*
     * En móvil damos más prioridad a la
     * legibilidad del contenido.
     */
    .about-overlay {
        background:
                linear-gradient(
                        180deg,
                        rgba(4,15,30,.94) 0%,
                        rgba(4,15,30,.88) 48%,
                        rgba(4,15,30,.80) 100%
                );
    }


    .about-heading {
        gap: 20px;
    }


    .about-title-block h2 {
        max-width: 100%;

        font-size:
                clamp(
                        2.15rem,
                        10vw,
                        2.65rem
                );

        line-height: 1.06;
    }


    .about-description {
        max-width: 100%;

        font-size: .98rem;

        line-height: 1.65;
    }


    .about-principles {
        grid-template-columns: 1fr;

        gap: 0;

        margin-top: 38px;
    }


    .about-principle,
    .about-principle:first-child,
    .about-principle:last-child {
        flex-direction: row;

        align-items: flex-start;

        gap: 16px;

        padding:
                24px
                0;

        border-right: 0;

        border-bottom:
                1px solid
                rgba(255,255,255,.12);
    }


    .about-principle:last-child {
        border-bottom: 0;

        padding-bottom: 0;
    }


    .about-principle-icon {
        width: 50px;
        height: 50px;

        border-radius: 14px;
    }


    .about-principle-icon img {
        width: 31px;
        height: 31px;
    }


    .about-principle h3 {
        font-size: 1.02rem;
    }


    .about-principle p {
        font-size: .92rem;
    }
}

/* =========================================================
   PRODUCTOS - LAPTOP / TABLET GRANDE
   ========================================================= */
@media (max-width: 1100px) {

    .product-card {
        flex-basis: clamp(520px, 74vw, 600px);
        grid-template-columns:
            minmax(0, 1fr)
            minmax(260px, .9fr);

        min-height: 350px;
    }

    .product-content {
        padding:
                36px
                32px
                34px;
    }

    .product-description {
        max-width: 470px;
    }

    .product-card-fidelio .product-visual img {
        object-position: 76% center;
    }

    .product-card-clinovexis .product-visual img {
        object-position: 68% center;
    }

    .product-card-paybridge .product-visual img {
        object-position: 56% center;
    }
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 900px) {
    :root {
        --page-padding: 24px;
        --header-height: 78px;
    }

    .header-container {
        gap: 20px;
    }

    .brand-logo {
        height: 40px;
        max-width: 190px;
    }

    .main-nav {
        position: absolute;

        top: calc(100% + 10px);
        left: var(--page-padding);
        right: var(--page-padding);

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 12px;

        border: 1px solid rgba(255,255,255,.12);
        border-radius: 18px;

        background: rgba(6,20,38,.98);

        box-shadow: 0 24px 60px rgba(0,0,0,.24);
        backdrop-filter: blur(18px);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 14px;
        border-radius: 10px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255,255,255,.06);
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .hero {
        min-height: 700px;

        padding-top:
            calc(var(--header-height) + 50px);

        background:
            linear-gradient(
                90deg,
                rgba(4, 15, 30, 0.92) 0%,
                rgba(4, 15, 30, 0.8) 44%,
                rgba(4, 15, 30, 0.36) 76%,
                rgba(4, 15, 30, 0.1) 100%
            ),
            url("../img/hero-strategyec.png");

        background-size: cover;
        background-position: 66% top;
        background-repeat: no-repeat;
    }

    .preview-content > * {
        max-width: 540px;
    }

    .preview-content h1 {
        font-size: clamp(3rem, 7.4vw, 4rem);
    }

    .solutions-section {
        padding-top: 56px;
        padding-bottom: 78px;
    }

    .solutions-container {
        width: 100%;
    }

    .solutions-heading {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
    }

    .solutions-heading h2 {
        max-width: 620px;
        font-size: clamp(2.3rem, 6vw, 2.8rem);
    }

    .solutions-heading p {
        max-width: 620px;
        margin-bottom: 0;
    }

    .section-eyebrow {
        font-size: .88rem;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 52px;
    }

    .solution-item {
        border-bottom: 1px solid rgba(37,109,255,.12);
    }

    .solution-item:nth-child(2n) {
        border-right: 0;
    }

    .solution-item:nth-child(5) {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 0;
    }

    /* Productos */

    .products-section {
        padding-top: 64px;
        padding-bottom: 78px;
    }

    .products-heading {
        margin-bottom: 34px;
    }

    .products-heading h2 {
        max-width: 700px;

        font-size:
                clamp(2.3rem, 6vw, 2.9rem);
    }

    .product-card {
        flex-basis: clamp(480px, 78vw, 560px);
        grid-template-columns:
        minmax(0, 1fr)
        minmax(220px, .85fr);

        min-height: 340px;
    }

    .product-card-fidelio .product-visual img {
        object-position: 74% center;
    }

    .product-card-clinovexis .product-visual img {
        object-position: 66% center;
    }

    .product-card-paybridge .product-visual img {
        object-position: 54% center;
    }

    .product-content {
        padding:
                32px
                26px
                30px;
    }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 560px) {
    :root {
        --page-padding: 18px;
        --header-height: 72px;
    }

    .brand-copy strong {
        font-size: 1.05rem;
    }

    .brand-copy small {
        display: none;
    }

    .brand-logo {
        height: 34px;
        max-width: 150px;
    }

    .hero {
        min-height: 0;
        height: auto;

        align-items: flex-start;

        padding-top:
            calc(var(--header-height) + 48px);

        padding-bottom: 52px;

        background:
            linear-gradient(
                180deg,
                rgba(4, 15, 30, 0.9) 0%,
                rgba(4, 15, 30, 0.78) 46%,
                rgba(4, 15, 30, 0.44) 78%,
                rgba(4, 15, 30, 0.2) 100%
            ),
            url("../img/hero-strategyec.png");

        background-size: cover;
        background-position: 70% top;
    }

    .preview-content {
        width: 100%;
    }

    .preview-content > * {
        max-width: 100%;
    }

    .preview-content h1 {
        font-size: clamp(2.55rem, 10.8vw, 3.3rem);
        line-height: 1.04;
    }

    .preview-content p {
        max-width: 430px;
        font-size: .98rem;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;

        max-width: 360px;
        margin-top: 28px;
    }

    .hero-button {
        width: 100%;
    }

    .solutions-section {
        scroll-margin-top: calc(var(--header-height) + 14px);
        padding-top: 50px;
        padding-bottom: 66px;
    }

    .solutions-heading {
        gap: 18px;
    }

    .section-eyebrow {
        margin-bottom: 12px;
        font-size: .85rem;
    }

    .solutions-heading h2 {
        font-size: clamp(2rem, 10vw, 2.3rem);
        line-height: 1.08;
    }

    .solutions-heading p {
        font-size: .98rem;
        line-height: 1.64;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        margin-top: 42px;
    }

    .solution-item,
    .solution-item:nth-child(2n) {
        padding: 28px 0 30px;
        border-right: 0;
        border-bottom: 1px solid rgba(37,109,255,.12);
    }

    .solution-item:last-child {
        border-bottom: 0;
    }

    .solution-item:hover {
        transform: none;
    }

    .solution-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 20px;
    }

    /* =========================================================
   PRODUCTOS - MÓVIL
   ========================================================= */

    .products-section {
        scroll-margin-top:
                calc(var(--header-height) + 14px);

        padding-top: 54px;
        padding-bottom: 66px;
    }

    .products-heading {
        margin-bottom: 30px;
    }

    .products-heading h2 {
        font-size:
                clamp(2rem, 10vw, 2.35rem);

        line-height: 1.08;
    }

    .products-grid {
        gap: 16px;

        padding-bottom: 16px;
        scroll-snap-type: x mandatory;
    }

    .product-card {
        flex-basis: min(92vw, 420px);
        grid-template-columns:
                minmax(0, 1fr)
                minmax(112px, .78fr);

        min-height: 0;

        border-radius: 20px;
    }

    .product-content {
        padding:
                28px
                16px
                26px;
    }

    .product-visual {
        width: 100%;
        min-height: 100%;
    }

    .product-card-fidelio .product-visual img {
        object-position: 72% center;
    }

    .product-card-clinovexis .product-visual img {
        object-position: 64% center;
    }

    .product-card-paybridge .product-visual img {
        object-position: 52% center;
    }

    .product-visual::before {
        top: 0;
        right: auto;
        bottom: 0;
        left: 0;

        width: 34px;
        height: auto;

        background:
                linear-gradient(
                        90deg,
                        #ffffff 0%,
                        rgba(255,255,255,.45) 38%,
                        rgba(255,255,255,0) 100%
                );
    }

    .product-name {
        margin-bottom: 16px;
    }

    .product-name h3 {
        font-size: 1.7rem;
    }

    .product-tagline {
        max-width: 100%;

        font-size: 1.08rem;
    }

    .product-description {
        max-width: 100%;

        margin-top: 14px;
        margin-bottom: 24px;
    }

    .product-link {
        margin-top: 0;
    }
}
