/* Configuración general */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --naranja: #f36c16;
    --naranja-oscuro: #d95300;
    --morado: #513965;
    --azul: #00a7e9;
    --verde: #21a578;
    --texto: #292b31;
    --texto-secundario: #68717b;
    --fondo: #f5f6f8;
    --blanco: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    color: var(--texto);
    background: var(--fondo);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* Encabezado */

.encabezado {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 12px rgba(31, 38, 45, 0.08);
    backdrop-filter: blur(10px);
}

.encabezado-contenido {
    width: min(1200px, calc(100% - 40px));
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-principal {
    display: flex;
    align-items: center;
}

.logo-principal img {
    display: block;
    width: auto;
    height: 48px;
}

.navegacion {
    display: flex;
    align-items: center;
    gap: 30px;
}

.regresar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #454b52;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.regresar:hover {
    color: var(--naranja);
}

.telefono {
    color: #0789c2;
    font-size: 15px;
    font-weight: 700;
}

.telefono span {
    color: #4e5358;
    font-weight: 400;
}

/* Presentación */

.presentacion-soft {
    position: relative;
    min-height: 520px;
    padding: 70px 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    text-align: center;

    background:
        radial-gradient(
            circle at 20% 35%,
            rgba(255, 152, 52, 0.45),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(112, 77, 131, 0.45),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f17318 0%,
            #c85c28 38%,
            #6a405f 75%,
            #4a315d 100%
        );
}

.presentacion-soft::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;

    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.08) 0,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px,
            transparent 6px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0,
            rgba(0, 0, 0, 0.05) 1px,
            transparent 1px,
            transparent 7px
        );
}

.presentacion-contenido {
    position: relative;
    z-index: 2;
    width: min(820px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-soft {
    width: min(500px, 85%);
    max-height: 125px;
    margin-bottom: 28px;
    padding: 20px 30px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(25, 16, 32, 0.25);
}

.etiqueta {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.presentacion-contenido h1 {
    max-width: 750px;
    margin-bottom: 16px;
    font-size: clamp(34px, 4vw, 55px);
    font-weight: 700;
    line-height: 1.08;
}

.presentacion-contenido p {
    max-width: 680px;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
}

.boton-descubrir {
    min-height: 50px;
    padding: 14px 23px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--naranja);
    background: var(--blanco);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(40, 25, 46, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.boton-descubrir:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 28px rgba(40, 25, 46, 0.3);
}

/* Sección de soluciones */

.seccion-soluciones {
    padding: 85px 25px;
    background: #f7f8fa;
}

.encabezado-seccion {
    width: min(750px, 100%);
    margin: 0 auto 45px;
    text-align: center;
}

.subtitulo-seccion {
    display: block;
    margin-bottom: 10px;
    color: var(--naranja);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.encabezado-seccion h2 {
    margin-bottom: 13px;
    color: #262a30;
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.2;
}

.encabezado-seccion p {
    color: var(--texto-secundario);
    font-size: 17px;
    line-height: 1.5;
}

.cuadricula-soluciones {
    width: min(1200px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* Tarjetas */

.tarjeta-solucion {
    position: relative;
    min-height: 315px;
    padding: 34px 24px 27px;
    border: 2px solid transparent;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--texto);
    background: var(--blanco);
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(31, 38, 45, 0.08);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.tarjeta-solucion:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 38px rgba(31, 38, 45, 0.15);
}

.tarjeta-solucion.activa {
    border-color: var(--naranja);
    box-shadow: 0 18px 40px rgba(243, 108, 22, 0.18);
}

.distintivo {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 9px;
    border-radius: 20px;
    color: #ffffff;
    background: var(--naranja);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.contenedor-icono {
    width: 86px;
    height: 86px;
    margin: 12px 0 24px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 38px;
}

.icono-naranja {
    color: var(--naranja);
    background: rgba(243, 108, 22, 0.12);
}

.icono-azul {
    color: var(--azul);
    background: rgba(0, 167, 233, 0.12);
}

.icono-morado {
    color: var(--morado);
    background: rgba(81, 57, 101, 0.12);
}

.icono-verde {
    color: var(--verde);
    background: rgba(33, 165, 120, 0.12);
}

.nombre-solucion {
    min-height: 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #292c32;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.descripcion-corta {
    margin-bottom: 24px;
    color: var(--texto-secundario);
    font-size: 14px;
    line-height: 1.5;
}

.enlace-tarjeta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--naranja);
    font-size: 14px;
    font-weight: 700;
}

/* Logo dentro de cada tarjeta */

.logo-tarjeta-contenedor {
    width: 100%;
    height: 120px;
    margin: 18px 0 22px;
    padding: 14px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb;
    border: 1px solid #eef1f4;
}

.logo-tarjeta {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Ajuste de tarjetas */
.tarjeta-solucion {
    position: relative;
    min-height: 295px;
    padding: 30px 22px 24px;
    border: 2px solid transparent;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--texto);
    background: var(--blanco);
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(31, 38, 45, 0.08);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.descripcion-corta {
    margin-bottom: 22px;
    color: var(--texto-secundario);
    font-size: 14px;
    line-height: 1.5;
}

/* Logo del panel detalle */

.detalle-logo-contenedor {
    width: min(420px, 100%);
    height: 130px;
    margin-bottom: 24px;
    padding: 18px 25px;
    border: 1px solid #e6e9ed;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
}

.detalle-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Detalle dinámico */

.seccion-detalle {
    padding: 85px 25px;
    background: #ffffff;
}

.detalle-contenedor {
    width: min(1150px, 100%);
    margin: auto;
    padding: 55px;
    border-radius: 25px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 65px;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            #fff8f2 0%,
            #ffffff 48%,
            #f7f2fa 100%
        );

    box-shadow: 0 20px 55px rgba(37, 40, 46, 0.1);
}

.detalle-icono {
    width: 82px;
    height: 82px;
    margin-bottom: 22px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: var(--naranja);
    background: rgba(243, 108, 22, 0.13);
    font-size: 36px;
}

.detalle-etiqueta {
    display: block;
    margin-bottom: 9px;
    color: var(--naranja);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.detalle-informacion h2 {
    margin-bottom: 15px;
    color: #262a30;
    font-size: clamp(30px, 3vw, 43px);
}

.detalle-informacion > p {
    margin-bottom: 30px;
    color: var(--texto-secundario);
    font-size: 17px;
    line-height: 1.65;
}

.detalle-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.boton-principal,
.boton-secundario {
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.boton-principal {
    color: #ffffff;
    background: var(--naranja);
    box-shadow: 0 7px 18px rgba(243, 108, 22, 0.25);
}

.boton-secundario {
    border: 1px solid #d7dce1;
    color: #34383d;
    background: #ffffff;
}

.boton-principal:hover,
.boton-secundario:hover {
    transform: translateY(-2px);
}

/* Funciones */

.funciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.funcion {
    min-height: 140px;
    padding: 22px;
    border: 1px solid #e7e9ec;
    border-radius: 14px;
    display: flex;
    gap: 15px;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(30, 35, 41, 0.05);
}

.funcion > i {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--naranja);
    background: rgba(243, 108, 22, 0.1);
    font-size: 18px;
}

.funcion h3 {
    margin: 3px 0 7px;
    color: #30343a;
    font-size: 16px;
}

.funcion p {
    color: var(--texto-secundario);
    font-size: 13px;
    line-height: 1.5;
}

/* Pie */

.pie-pagina {
    padding: 25px;
    color: #d9d4dd;
    background: #34283c;
    text-align: center;
    font-size: 13px;
}

/* Diseño adaptable */

@media (max-width: 1000px) {
    .cuadricula-soluciones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detalle-contenedor {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 700px) {
    .encabezado {
        height: 65px;
    }

    .encabezado-contenido {
        width: calc(100% - 28px);
    }

    .logo-principal img {
        height: 40px;
    }

    .regresar {
        font-size: 0;
    }

    .regresar i {
        font-size: 18px;
    }

    .telefono {
        font-size: 12px;
    }

    .telefono span {
        display: none;
    }

    .presentacion-soft {
        min-height: 500px;
        padding: 55px 18px;
    }

    .presentacion-contenido p {
        font-size: 16px;
    }

    .seccion-soluciones,
    .seccion-detalle {
        padding: 65px 18px;
    }

    .cuadricula-soluciones {
        grid-template-columns: 1fr;
    }

    .tarjeta-solucion {
        min-height: 285px;
    }

    .detalle-contenedor {
        padding: 32px 22px;
    }

    .funciones {
        grid-template-columns: 1fr;
    }
}


/* Mejoras de botones */

.detalle-botones a,
.detalle-botones button {
    gap: 9px;
    font-family: inherit;
    cursor: pointer;
}

.boton-principal i,
.boton-secundario i {
    font-size: 17px;
}

.boton-principal i {
    font-size: 19px;
}

/* Modal de demostración */

.modal-video {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 25px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(18, 20, 24, 0.78);
    backdrop-filter: blur(6px);
}

.modal-video.visible {
    display: flex;
}

.modal-video-contenido {
    width: min(900px, 100%);
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: mostrarModal 0.25s ease;
}

.modal-video-encabezado {
    min-height: 85px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.modal-video-encabezado span {
    display: block;
    margin-bottom: 4px;
    color: var(--naranja);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.modal-video-encabezado h2 {
    margin: 0;
    color: #292d33;
    font-size: 23px;
}

.cerrar-modal {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #454b52;
    background: #f0f2f4;
    font-size: 19px;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.cerrar-modal:hover {
    color: #ffffff;
    background: var(--naranja);
    transform: rotate(90deg);
}

.contenedor-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111111;
}

.contenedor-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.modal-abierto {
    overflow: hidden;
}

@keyframes mostrarModal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .detalle-botones {
        flex-direction: column;
    }

    .boton-principal,
    .boton-secundario {
        width: 100%;
    }

    .modal-video {
        padding: 14px;
    }

    .modal-video-encabezado h2 {
        font-size: 19px;
    }
}