/* Identidad y estructura */
:root {
    --marca: #2c2e69;
    --marca-profunda: #232452;
    --violeta: #0075ad;
    --acento: #fcb80b;
    --tinta: #323232;
    --suave: #f2f2f2;
    --gris: #62666d;
    --linea: #dfe6eb;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
}
body {
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--tinta);
    line-height: 1.65;
    background: #fff;
}
a {
    overflow-wrap: anywhere;
    color: var(--marca);
}
img {
    max-width: 100%;
}
:where(h1, h2, h3, h4, p, li, dt, dd) {
    min-width: 0;
}
:focus-visible {
    outline: 3px solid var(--acento);
    outline-offset: 4px;
}
.saltar {
    position: absolute;
    top: -80px;
    left: 12px;
    background: #fff;
    padding: 12px;
    z-index: 2000;
}
.saltar:focus {
    top: 8px;
}
/* Navegación y progreso de lectura */
.cabecera {
    background: #fff;
    border-bottom: 1px solid var(--linea);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}
.cabecera.desplazada {
    background: rgba(255, 255, 255, 0.91);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px #2522500d;
}
.navbar {
    min-height: 88px;
}
.logo {
    width: 170px;
    height: 60px;
    object-fit: contain;
    object-position: center;
}
.navbar-brand {
    padding: 0;
}
.cabecera .nav-link {
    color: var(--tinta);
    font-size: 0.94rem;
    border-radius: 7px;
    padding: 9px 14px;
    position: relative;
    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}
.cabecera .nav-link::after {
    content: '';
    position: absolute;
    height: 3px;
    left: 14px;
    right: 14px;
    bottom: 3px;
    background: var(--acento);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}
.cabecera .nav-link:hover,
.cabecera .nav-link:focus-visible {
    color: var(--violeta);
    background: #e8f5fc;
}
.cabecera .nav-link:hover::after,
.cabecera .nav-link:focus-visible::after,
.cabecera .nav-link.activo::after {
    transform: scaleX(1);
}
.cabecera .nav-link.activo {
    color: var(--violeta);
    background: #e7f3fa;
    font-weight: 700;
}
.cabecera .nav-link.enlace-contacto {
    background: var(--acento);
    color: #171b3e;
    border: 0;
    margin: 0;
    font-weight: 700;
}
.cabecera .nav-link.enlace-contacto:hover,
.cabecera .nav-link.enlace-contacto:focus-visible {
    background: #ffd163;
    color: #171b3e;
}
.cabecera .nav-link.enlace-contacto::after {
    content: none;
}
.progreso-lectura {
    display: block;
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    color: var(--acento);
}
.progreso-lectura::-webkit-progress-bar {
    background: transparent;
}
.progreso-lectura::-webkit-progress-value {
    background: var(--acento);
}
.progreso-lectura::-moz-progress-bar {
    background: var(--acento);
}
.acciones-flotantes {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1020;
}
.volver-inicio {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #ffc354;
    border-radius: 50%;
    background: var(--acento);
    color: #171717;
    box-shadow: 0 4px 18px #0003;
    z-index: 1020;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.volver-inicio[hidden] {
    display: none;
}
.volver-inicio:hover {
    background: #ffc354;
}
.volver-inicio svg {
    width: 23px;
    height: 23px;
}

h1,
h2,
h3 {
    color: var(--marca);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.12;
}
h1 {
    font-size: clamp(2.7rem, 5.1vw, 4.8rem);
    max-width: 890px;
}
h2 {
    font-size: clamp(2rem, 3.5vw, 3.15rem);
}
h3 {
    font-size: 1.4rem;
    letter-spacing: -0.025em;
}
.btn {
    border-radius: 6px;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 14px 24px;
    box-shadow: none !important;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}
.btn-primary {
    background: var(--violeta);
    border-color: var(--violeta);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: #005885;
    border-color: #005885;
}
/* Sección Inicio */
.portada {
    position: relative;
    isolation: isolate;
    background: var(--marca-profunda);
    padding: 100px 0 85px;
    overflow: hidden;
    color: #fff;
}
.fondo-portada {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}
.portada::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 18, 53, 0.86), rgba(24, 29, 71, 0.48));
    z-index: -1;
}
.portada h1 {
    color: #fff;
}
.portada .btn-primary {
    background: var(--acento);
    border-color: var(--acento);
    color: #171b3e;
}
.portada .btn-primary:hover,
.portada .btn-primary:focus-visible {
    background: #ffd163;
    border-color: #ffd163;
}
.acciones-portada {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.portada .boton-contacto {
    background: transparent;
    border-color: #69738f;
    color: white;
}
.portada .boton-contacto:hover,
.portada .boton-contacto:focus-visible {
    background: transparent;
    border-color: var(--acento);
    color: white;
}
.descripcion-portada {
    color: #e3e9f7;
    font-size: 1.1rem;
    max-width: 620px;
    margin: 28px 0 32px;
}
.grafico-portada {
    padding: 35px 0 0;
}
.imagen-portada {
    display: block;
    width: min(100%, 240px);
    height: auto;
    max-height: 350px;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px #0003);
}
/* Sección Nuestras soluciones */
.seccion {
    padding: 90px 0;
}
.encabezado-seccion {
    text-align: center;
    margin-bottom: 42px;
}
.encabezado-seccion > p:last-child {
    color: var(--gris);
    margin-top: 20px;
}
.soluciones {
    background: #f7f8fa;
}
.tarjeta-solucion {
    width: 100%;
    min-width: 0;
    overflow-wrap: normal;
    border: 1px solid var(--linea);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 6px 22px #2324520d;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .tarjeta-solucion:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px #23245218;
    }
}
.imagen-solucion {
    width: 100%;
    height: 220px;
    flex: 0 0 220px;
    background: #eeeef7;
    position: relative;
    overflow: hidden;
}
.imagen-solucion img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}
.cuerpo-solucion {
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}
.cuerpo-solucion h3 {
    color: var(--marca);
    font-size: 1.3rem;
    line-height: 1.35;
    min-height: 2.7em;
    margin: 0;
}
.cuerpo-solucion p {
    font-size: 0.94rem;
    color: var(--gris);
    margin: 8px 0 25px;
    width: 100%;
    text-align: justify;
    hyphens: none;
}
.enlace-solucion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    border: 1px solid var(--acento);
    border-radius: 8px;
    background: var(--acento);
    color: #171b3e;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}
.enlace-solucion:hover,
.enlace-solucion:focus-visible {
    background: #ffd163;
    border-color: #ffd163;
    color: #171b3e;
    text-decoration: none;
}
/* Sección Quiénes somos */
.nosotros {
    background: var(--suave);
}
.nosotros h2 {
    max-width: 480px;
    margin: 0;
}
.presentacion-nosotros {
    padding-bottom: 36px;
    border-bottom: 1px solid #d8dde4;
}
.texto-nosotros {
    font-size: 1.12rem;
    color: var(--gris);
    margin: 0;
    line-height: 1.85;
}
.proposito-nosotros {
    margin-top: 12px;
}
.tarjeta-proposito {
    --color-proposito: var(--violeta);
    height: 100%;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: 12px;
    border-top: 3px solid var(--color-proposito);
}
.tarjeta-vision {
    --color-proposito: var(--acento);
}
.tarjeta-proposito h3 {
    color: var(--color-proposito);
    margin-bottom: 0;
}
.tarjeta-proposito p {
    text-align: justify;
    hyphens: none;
    margin: 8px 0 0;
    color: var(--gris);
    font-size: 1rem;
    line-height: 1.8;
}
#por-que-elegirnos {
    text-align: center;
}
.icono-diferencial {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    overflow: hidden;
}
.icono-diferencial img {
    display: block;
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}
.diferencial {
    min-width: 0;
    overflow-wrap: normal;
    border-top: 1px solid var(--linea);
    padding: 25px 0 0;
}
.diferencial p {
    color: var(--gris);
    margin-bottom: 0;
}
/* Sección Contacto y pie de página */
.contacto {
    background: var(--marca);
    color: white;
}
.contacto h2 {
    max-width: 600px;
    color: #fff;
}
.contacto p {
    color: #d9d7ef;
    max-width: 600px;
    margin-top: 22px;
}
.contacto .btn {
    margin-top: 15px;
}
.datos-contacto p {
    font-size: 1.1rem;
}
.datos-contacto span {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b7b2dd;
    margin-bottom: 7px;
}
.datos-contacto a {
    color: white;
    text-decoration: none;
} /* Formulario de consultas generales */
.formulario-contacto {
    padding: 28px;
    background: #fff;
    color: var(--tinta);
    border-radius: 12px;
}
.formulario-contacto h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.formulario-contacto .form-label {
    font-size: 0.9rem;
    font-weight: 600;
}
.formulario-contacto .form-control,
.formulario-contacto .form-select {
    font-size: 1rem;
    border-color: #b9c9d3;
    min-height: 46px;
}
.formulario-contacto textarea.form-control {
    min-height: 140px;
    resize: vertical;
}
.formulario-contacto .form-control:focus,
.formulario-contacto .form-select:focus {
    border-color: var(--violeta);
    box-shadow: 0 0 0 3px #0075ad22;
}
.formulario-contacto .btn {
    margin-top: 4px;
}
.formulario-contacto .btn-primary {
    background: var(--acento);
    border-color: var(--acento);
    color: #171b3e;
}
.formulario-contacto .btn-primary:hover,
.formulario-contacto .btn-primary:focus-visible {
    background: #ffd163;
    border-color: #ffd163;
    color: #171b3e;
}
.formulario-contacto .alert {
    margin-top: 0;
}
.trampa-contacto {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.contacto .datos-contacto {
    margin-top: 28px;
}
.contacto .datos-contacto p {
    font-size: 1rem;
    margin: 0 0 18px;
}
/* Pie de página */
.pie {
    padding: 58px 0 0;
    background: #000;
    color: #f7f7f7;
}
.logo-pie {
    display: inline-block;
    max-width: 100%;
}
.logo-pie img {
    width: 190px;
    height: 92px;
    object-fit: contain;
    object-position: left center;
}
.descripcion-pie {
    max-width: 320px;
    font-size: 0.88rem;
    margin-top: 18px;
}
.pie h2 {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    margin: 16px 0 25px;
    color: #fff;
}
.pie ul {
    list-style: none;
    padding: 0;
}
.pie li {
    margin-bottom: 10px;
}
.pie a {
    text-decoration: none;
    color: #d1d1d1;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}
.pie a:hover,
.pie a:focus-visible {
    color: var(--acento);
    text-decoration: underline;
    text-underline-offset: 5px;
}
.pie p {
    font-size: 0.88rem;
    color: #bdbdbd;
}
.dato-pie {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.dato-pie svg {
    color: var(--acento);
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 3px;
}
.dato-pie span {
    white-space: pre-line;
    overflow-wrap: normal;
}
.redes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.redes a {
    color: var(--acento);
    width: 40px;
    height: 40px;
    border: 1px solid #393019;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.redes a:hover {
    background: #292112;
}
.redes svg {
    width: 20px;
    height: 20px;
}
.derechos {
    margin-top: 40px;
    padding: 22px 52px;
    border-top: 1px solid #292929;
    font-size: 0.75rem;
    color: #aaa;
    text-align: center;
}

@media (max-width: 991px) {
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }
    html {
        scroll-padding-top: 94px;
    }
    .cabecera .navbar {
        max-height: calc(100dvh - 8px);
        overflow-y: auto;
        padding-inline: 12px;
    }
    .cabecera:has(.navbar-collapse.show) {
        background: rgba(255, 255, 255, 0.98);
    }
    .cabecera .nav-link {
        padding: 12px 14px;
    }
    .navbar {
        min-height: 78px;
    }
    .portada {
        padding: 55px 0 40px;
    }
    .grafico-portada {
        padding: 0;
    }
    .seccion {
        padding: 60px 0;
    }
    .logo {
        width: 150px;
        height: 54px;
    }
    .navbar-collapse {
        padding: 15px 0;
    }
    .enlace-contacto {
        display: block;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.abrir-whatsapp {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 4px 18px #0003;
}
.abrir-whatsapp:hover,
.abrir-whatsapp:focus-visible {
    background: #1db954;
}
.abrir-whatsapp img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}
