/* =========================================================
   CANOPUS EN ACCIÓN
   Archivo independiente: assets/css/canopus-accion.css
========================================================= */

.canopus-action {
    --action-blue: #0b67db;
    --action-blue-dark: #0b2e68;
    --action-text: #132744;
    --action-muted: #6a788e;
    --action-border: rgba(40, 105, 181, .14);
    --action-violet: #6e4dd8;

    position: relative;
    overflow: hidden;
    padding: 104px 24px 112px;
    font-family: "Manrope", sans-serif;

    background:
        radial-gradient(circle at 8% 18%, rgba(61, 155, 255, .11), transparent 27%),
        radial-gradient(circle at 92% 75%, rgba(112, 78, 216, .09), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 52%, #ffffff 100%);
}

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

.canopus-action__background {
    position: absolute;
    inset: 0;

    opacity: .18;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(22, 97, 179, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 97, 179, .07) 1px, transparent 1px);

    background-size: 46px 46px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 15%,
            #000 84%,
            transparent
        );
}

.canopus-action__container {
    position: relative;
    z-index: 2;

    width: min(1380px, 100%);
    margin: 0 auto;
}

.canopus-action__heading {
    width: min(820px, 100%);
    margin: 0 auto 58px;

    text-align: center;
}

.canopus-action__eyebrow {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--action-blue);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}

.canopus-action__heading h2 {
    margin: 0;

    color: var(--action-text);

    font-size: clamp(40px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.05em;
}

.canopus-action__heading h2 strong {
    display: block;

    color: var(--action-blue);
}

.canopus-action__heading p {
    width: min(690px, 100%);
    margin: 22px auto 0;

    color: var(--action-muted);

    font-size: 17px;
    line-height: 1.75;
}

/* =========================================================
   MÓDULO ACTIVO
========================================================= */

.action-module {
    display: grid;

    grid-template-columns:
        minmax(300px, .75fr)
        minmax(620px, 1.55fr);

    gap: clamp(42px, 6vw, 84px);
    align-items: center;
}

.action-module__content {
    position: relative;

    padding-left: 5px;
}

.action-module__number {
    position: absolute;
    top: -72px;
    left: -14px;

    color: rgba(17, 91, 177, .08);

    font-size: 112px;
    font-weight: 900;
    line-height: 1;

    pointer-events: none;
}

.action-module__label {
    position: relative;

    display: inline-flex;

    margin-bottom: 17px;
    padding: 8px 12px;

    border: 1px solid rgba(27, 109, 208, .14);
    border-radius: 999px;

    color: var(--action-blue);
    background: rgba(235, 246, 255, .78);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.action-module__content h3 {
    position: relative;

    margin: 0;

    color: var(--action-text);

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.action-module__content h3 strong {
    display: block;

    color: var(--action-blue);
}

.action-module__content > p {
    margin: 20px 0 24px;

    color: var(--action-muted);

    font-size: 15px;
    line-height: 1.75;
}

.action-module__benefits {
    display: grid;
    gap: 11px;

    margin: 0 0 28px;
    padding: 0;

    list-style: none;
}

.action-module__benefits li {
    position: relative;

    padding-left: 29px;

    color: #3d4e66;

    font-size: 14px;
    line-height: 1.45;
}

.action-module__benefits li::before {
    content: "✓";

    position: absolute;
    top: 0;
    left: 0;

    display: grid;
    width: 20px;
    height: 20px;

    place-items: center;

    border-radius: 50%;

    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #4dadff,
            #0860cb
        );

    font-size: 11px;
    font-weight: 900;
}

.action-module__cta {
    display: inline-flex;

    min-height: 52px;
    padding: 0 21px;

    align-items: center;
    justify-content: center;
    gap: 11px;

    border-radius: 15px;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #1479e9,
            #0750b4
        );

    box-shadow:
        0 15px 32px rgba(10, 85, 181, .22);

    font-size: 14px;
    font-weight: 750;
    text-decoration: none;

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

.action-module__cta:hover {
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 20px 40px rgba(10, 85, 181, .3);
}

.action-module__cta svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   MONITOR Y PANTALLA
========================================================= */

.action-demo__window {
    overflow: hidden;

    border: 1px solid rgba(37, 102, 178, .18);
    border-radius: 25px;

    background: #ffffff;

    box-shadow:
        0 35px 90px rgba(23, 68, 122, .19),
        0 0 0 8px rgba(255, 255, 255, .64);
}

.action-demo__topbar {
    display: flex;

    min-height: 58px;
    padding: 0 20px;

    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border-bottom: 1px solid rgba(40, 104, 177, .12);

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f6f9fd
        );
}

.action-demo__brand {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    color: var(--action-blue-dark);
}

.action-demo__brand span {
    color: var(--action-blue);

    font-size: 18px;
}

.action-demo__brand strong {
    font-size: 13px;
    letter-spacing: .08em;
}

.action-demo__status {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    color: #6c7889;

    font-size: 11px;
    font-weight: 650;
}

.action-demo__status > span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #36b87b;

    box-shadow:
        0 0 0 4px rgba(54, 184, 123, .1);
}

.action-demo__screen {
    position: relative;
    overflow: hidden;

    aspect-ratio: 16 / 9;

    background:
        linear-gradient(
            145deg,
            #edf5fc,
            #dceaf6
        );
}

.action-demo__poster,
.action-demo__video {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top left;
}

.action-demo__poster {
    z-index: 1;

    opacity: 1;

    transition:
        opacity .28s ease,
        transform .7s ease;
}

.action-demo__poster.is-hidden {
    opacity: 0;
    transform: scale(1.015);
}

.action-demo__video {
    z-index: 2;

    opacity: 0;
    visibility: hidden;

    background: #eef4fa;

    transition: opacity .28s ease;
}

.action-demo__video.is-playing {
    opacity: 1;
    visibility: visible;
}

.action-demo__loading {
    position: absolute;
    z-index: 4;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #4d5e73;
    background: rgba(241, 247, 252, .88);

    font-size: 12px;
    font-weight: 700;

    backdrop-filter: blur(8px);
}

.action-demo__loading.is-visible {
    display: flex;
}

.action-demo__loading span {
    width: 20px;
    height: 20px;

    border: 2px solid rgba(20, 105, 215, .18);
    border-top-color: var(--action-blue);
    border-radius: 50%;

    animation: actionSpinner .8s linear infinite;
}

@keyframes actionSpinner {
    to {
        transform: rotate(360deg);
    }
}

.action-demo__replay {
    position: absolute;
    z-index: 5;
    right: 18px;
    bottom: 16px;

    display: inline-flex;

    min-height: 40px;
    padding: 0 14px;

    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;

    color: #ffffff;
    background: rgba(7, 40, 83, .76);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .18);

    cursor: pointer;

    font-family: inherit;
    font-size: 11px;
    font-weight: 750;

    backdrop-filter: blur(10px);
}

.action-demo__replay[hidden] {
    display: none;
}

/* =========================================================
   INSTRUCCIÓN
========================================================= */

.action-demo__instruction {
    display: flex;

    margin: 18px 0 14px;
    padding: 13px 15px;

    align-items: center;
    gap: 12px;

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

    background:
        linear-gradient(
            145deg,
            rgba(237, 247, 255, .9),
            rgba(247, 251, 255, .92)
        );
}

.action-demo__instruction-icon {
    display: grid;

    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    place-items: center;

    border-radius: 12px;

    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #4eadff,
            #0960cb
        );

    box-shadow:
        0 8px 18px rgba(19, 106, 211, .22);

    font-size: 13px;
}

.action-demo__instruction strong,
.action-demo__instruction small {
    display: block;
}

.action-demo__instruction strong {
    color: var(--action-text);

    font-size: 13px;
}

.action-demo__instruction small {
    margin-top: 3px;

    color: var(--action-muted);

    font-size: 11px;
    line-height: 1.45;
}

/* =========================================================
   OPCIONES DE VIDEO
========================================================= */

.action-demo__options {
    display: grid;

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

    gap: 9px;
}

.action-demo__option {
    position: relative;

    display: flex;
    min-width: 0;
    min-height: 88px;
    padding: 12px 10px;

    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;

    border: 1px solid rgba(42, 104, 176, .13);
    border-radius: 15px;

    color: var(--action-text);
    background: rgba(255, 255, 255, .9);

    box-shadow:
        0 10px 25px rgba(31, 72, 120, .07);

    cursor: pointer;

    font-family: inherit;
    text-align: left;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.action-demo__option:hover,
.action-demo__option:focus-visible,
.action-demo__option.is-active {
    outline: none;

    border-color: rgba(18, 108, 219, .37);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #edf6ff
        );

    transform: translateY(-3px);

    box-shadow:
        0 16px 32px rgba(23, 91, 174, .14);
}

.action-demo__option--orion:hover,
.action-demo__option--orion:focus-visible,
.action-demo__option--orion.is-active {
    border-color: rgba(105, 78, 218, .36);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f1edff
        );
}

.action-demo__option-icon {
    display: grid;

    width: 29px;
    height: 29px;

    place-items: center;

    border-radius: 9px;

    color: var(--action-blue);
    background: #eaf4ff;

    font-size: 14px;
    font-weight: 800;
}

.action-demo__option--orion .action-demo__option-icon {
    color: var(--action-violet);
    background: #eee9ff;
}

.action-demo__option > span:nth-child(2) {
    min-width: 0;
    width: 100%;
}

.action-demo__option strong,
.action-demo__option small {
    display: block;
}

.action-demo__option strong {
    overflow: hidden;

    color: var(--action-text);

    font-size: 11px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-demo__option small {
    overflow: hidden;

    margin-top: 2px;

    color: #78869a;

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-demo__option em {
    position: absolute;
    top: 9px;
    right: 9px;

    color: #9aa7b8;

    font-size: 8px;
    font-style: normal;
    font-weight: 750;
}

/* =========================================================
   LLAMADO POSTERIOR AL VIDEO
========================================================= */

.action-demo__result {
    display: flex;

    margin-top: 17px;
    padding: 16px 17px;

    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border: 1px solid rgba(35, 112, 202, .13);
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #eef7ff,
            #f7fbff
        );

    animation: actionResultIn .4s ease both;
}

.action-demo__result[hidden] {
    display: none;
}

@keyframes actionResultIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-demo__result > div {
    display: flex;

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

.action-demo__result > div > span {
    display: grid;

    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    place-items: center;

    border-radius: 50%;

    color: #ffffff;
    background: #2cb978;

    font-size: 14px;
    font-weight: 900;
}

.action-demo__result p {
    margin: 0;
}

.action-demo__result p strong,
.action-demo__result p small {
    display: block;
}

.action-demo__result p strong {
    color: var(--action-text);

    font-size: 12px;
}

.action-demo__result p small {
    margin-top: 3px;

    color: var(--action-muted);

    font-size: 10px;
}

.action-demo__result > a {
    flex: 0 0 auto;

    padding: 11px 14px;

    border-radius: 12px;

    color: #ffffff;
    background: var(--action-blue);

    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

/* =========================================================
   NAVEGACIÓN DE MÓDULOS
========================================================= */

.action-module-nav {
    display: grid;

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

    gap: 16px;

    margin-top: 62px;
    padding: 18px;

    border: 1px solid rgba(42, 104, 176, .12);
    border-radius: 26px;

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

    box-shadow:
        0 20px 55px rgba(28, 75, 127, .09);

    backdrop-filter: blur(18px);
}

.action-module-nav button {
    position: relative;

    display: flex;
    min-height: 74px;
    padding: 0 24px;

    align-items: center;
    justify-content: center;
    gap: 14px;

    border: 0;
    border-radius: 18px;

    color: #647389;
    background: transparent;

    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    transition: all .30s ease;

}

.action-module-nav button.is-active {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #1479e9,
            #0750b4
        );

    box-shadow:
        0 18px 38px rgba(11,91,187,.28);
    
}

.action-module-nav button:disabled {
    cursor: default;
    opacity: .6;
}

.action-module-nav button svg{
    width:24px;
    height:24px;
    flex:0 0 24px;
}

.action-module-nav button small {
    position: absolute;
    top: -8px;
    right: 7px;

    padding: 3px 6px;

    border: 1px solid rgba(62, 108, 162, .12);
    border-radius: 999px;

    color: #8794a5;
    background: #ffffff;

    font-size: 7px;
    font-weight: 750;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1120px) {
    .action-module {
        grid-template-columns: 1fr;
    }

    .action-module__content {
        width: min(760px, 100%);
        margin: 0 auto;

        text-align: center;
    }

    .action-module__number {
        left: 50%;

        transform: translateX(-50%);
    }

    .action-module__benefits {
        width: min(540px, 100%);
        margin-right: auto;
        margin-left: auto;

        text-align: left;
    }

    .action-demo {
        width: min(900px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .canopus-action {
        padding: 78px 18px 88px;
    }

    .canopus-action__heading {
        margin-bottom: 48px;
    }

    .action-demo__options {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .action-demo__option:last-child {
        grid-column: 1 / -1;
    }

    .action-demo__result {
        align-items: stretch;
        flex-direction: column;
    }

    .action-demo__result > a {
        text-align: center;
    }

    .action-module-nav {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .action-module-nav button.is-active {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .action-demo__topbar {
        padding: 0 13px;
    }

    .action-demo__status {
        font-size: 9px;
    }

    .action-demo__options {
        grid-template-columns: 1fr;
    }

    .action-demo__option:last-child {
        grid-column: auto;
    }

    .action-module-nav {
        grid-template-columns: 1fr;
    }

    .action-module-nav button.is-active {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .action-demo__poster,
    .action-demo__video,
    .action-demo__option,
    .action-module__cta {
        transition: none;
    }

    .action-demo__loading span {
        animation: none;
    }
}


/* CANOPUS EN ACCIÓN V2 */
.action-modules-stage { position: relative; }
.action-module { display: none; }
.action-module.is-active { display: grid; animation: actionModuleIn .4s ease both; }

@keyframes actionModuleIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.action-module-nav button { cursor: pointer; }
.action-module-nav button:not(.is-active):hover {
    color: var(--action-blue);
    background: rgba(235,246,255,.75);
    transform:translateY(-3px);
}

/* =========================================================
   BOTONERA DE VIDEOS - CANOPUS
========================================================= */

.action-video-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    width: 100%;
    margin-top: 20px;

    border: 1px solid rgba(50, 105, 175, .14);
    border-radius: 20px;

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

    box-shadow:
        0 10px 30px rgba(25, 70, 125, .07);

    overflow: hidden;
}


.action-video-nav__item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 82px;
    padding: 15px 22px;

    border: 0;
    background: transparent;

    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}


/* DIVISORES */

.action-video-nav__item:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 19px;
    right: 0;
    bottom: 19px;

    width: 1px;

    background: rgba(38, 98, 170, .16);
}


/* HOVER */

.action-video-nav__item:hover {
    background: #f5f9ff;
}


/* ACTIVO */

.action-video-nav__item.is-active {
    background:
        linear-gradient(
            145deg,
            #f4f9ff,
            #ffffff
        );
}


/* ICONOS */

.action-video-nav__icon {
    display: grid;

    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    place-items: center;

    border-radius: 13px;
}


.action-video-nav__icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.action-video-nav__icon--blue {
    color: #086cff;
    background: #eaf3ff;
}


.action-video-nav__icon--purple {
    color: #7447e8;
    background: #f0ebff;
}


/* TEXTOS */

.action-video-nav__copy {
    display: block;
    min-width: 0;
}


.action-video-nav__copy strong {
    display: block;

    color: #182a46;

    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}


.action-video-nav__copy small {
    display: block;

    margin-top: 5px;

    color: #1670ea;

    font-size: 12px;
    font-weight: 700;
}


/* ACTIVO */

.action-video-nav__item.is-active
.action-video-nav__copy strong {
    color: #0b2e68;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .action-video-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-video-nav__item:nth-child(2)::after {
        display: none;
    }

    .action-video-nav__item:nth-child(-n+2) {
        border-bottom:
            1px solid rgba(38, 98, 170, .12);
    }
}


@media (max-width: 560px) {

    .action-video-nav {
        grid-template-columns: 1fr;
    }

    .action-video-nav__item {
        min-height: 70px;
    }

    .action-video-nav__item::after {
        display: none;
    }

    .action-video-nav__item:not(:last-child) {
        border-bottom:
            1px solid rgba(38, 98, 170, .12);
    }
}

