/* =========================================================
   OPERATIVOS
========================================================= */

.operations-body {
    background:
        radial-gradient(
            circle at top,
            rgba(245, 158, 11, 0.06),
            transparent 32rem
        ),
        #08090b;
}


/* =========================================================
   HERO
========================================================= */

.operations-hero {
    padding: 72px 0 34px;
}

.operations-kicker {
    display: inline-block;

    margin-bottom: 10px;

    color: #f59e0b;

    font-size: 0.72rem;
    font-weight: 850;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.operations-hero__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.operations-hero h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(2.7rem, 7vw, 5.4rem);
    line-height: 0.95;

    letter-spacing: -0.055em;
}

.operations-hero p {
    max-width: 720px;

    margin: 18px 0 0;

    color: #9ca3af;

    font-size: 1rem;
    line-height: 1.7;
}


/* =========================================================
   CAMBIAR VISTA
========================================================= */

.operations-view-switcher {
    display: inline-flex;

    flex-shrink: 0;

    padding: 4px;

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

    background: rgba(255, 255, 255, 0.035);
}

.operations-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 39px;

    padding: 0 13px;

    border: 0;
    border-radius: 8px;

    color: #8d929b;
    background: transparent;

    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;

    cursor: pointer;

    transition:
        color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.operations-view-button span {
    font-size: 1rem;
    line-height: 1;
}

.operations-view-button:hover {
    color: #fff;
}

.operations-view-button.is-active {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.11);

    box-shadow:
        inset 0 0 0 1px rgba(245, 158, 11, 0.16);
}

/* =========================================================
   FILTROS
========================================================= */

.operations-filters-section {
    padding: 0 0 26px;
}

.operations-filters {
    display: grid;

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

    align-items: end;

    gap: 12px;

    padding: 16px;

    border: 1px solid
        rgba(255, 255, 255, 0.085);

    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow:
        0 16px 40px
        rgba(0, 0, 0, 0.14);
}

.operations-filter-field--search {
    width: 100%;
    min-width: 0;
}

.operations-filter-field--search input {
    width: 100%;
}

.operations-filter-field--search input {
    font-weight: 700;
}

.operations-filter-field--search input::placeholder {
    color: #666d78;
    font-weight: 600;
}

.operations-filter-actions {
    justify-content: flex-end;
}

.operations-filters-toggle{
    height: 43px;

    white-space: nowrap;
}

.operations-filter-submit--basic {
    width: auto;
    min-width: 100px;

    justify-self: end;

    padding: 0 22px;

    height: 43px;
}
.operations-filters-basic .operations-filter-submit--basic {
    grid-column: auto;
}

/* =========================================================
   FILTROS DESPLEGABLES
========================================================= */

.operations-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.operations-filters-basic {
    display: grid;

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

    align-items: end;

    gap: 12px;

    width: 100%;
}

.operations-filter-field--search {
    min-width: 0;
    width: 100%;
}

.operations-filter-field--search input {
    width: 100%;
}

.operations-filters-toggle,
.operations-filter-submit--basic {
    height: 43px;

    align-self: end;

    white-space: nowrap;
}

.operations-filter-submit--basic {
    width: auto;
    min-width: 100px;

    padding-inline: 22px;
}

.operations-filter-field--search {
    min-width: 0;
}

.operations-filters-basic__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
}

.operations-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 43px;
    padding: 0 15px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;

    color: #d7dae0;
    background: rgba(255, 255, 255, 0.035);

    font: inherit;
    font-size: 0.72rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.operations-filters-toggle:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.065);
}

.operations-filters-toggle[aria-expanded="true"] {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.06);
}

.operations-filters-toggle__icon {
    font-size: 0.95rem;
    line-height: 1;
}

.operations-filters-advanced {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 12px;

    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.operations-filters-advanced[hidden] {
    display: none !important;
}

.operations-filter-actions--advanced {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 4px;
}
/* =========================================================
   CAMPOS
========================================================= */

.operations-filter-field {
    display: grid;

    gap: 7px;

    min-width: 0;
}

.operations-filter-field label {
    color: #777d87;

    font-size: 0.65rem;
    font-weight: 850;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.operations-filter-field select,
.operations-filter-field input {
    width: 100%;
    height: 43px;

    padding: 0 12px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;

    outline: none;

    color: #d7dae0;
    background: #111318;

    font: inherit;
    font-size: 0.78rem;
    font-weight: 650;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.operations-filter-field select:hover,
.operations-filter-field input:hover {
    border-color: rgba(255, 255, 255, 0.17);

    background: #14171c;
}

.operations-filter-field select:focus,
.operations-filter-field input:focus {
    border-color: rgba(245, 158, 11, 0.55);

    background: #14171c;

    box-shadow:
        0 0 0 3px rgba(245, 158, 11, 0.08);
}


/* =========================================================
   SELECT
========================================================= */

.operations-filter-field select {
    cursor: pointer;
}

.operations-filter-field select option {
    color: #e5e7eb;
    background: #111318;
}


/* =========================================================
   FECHAS
========================================================= */

.operations-filter-field input[type="date"] {
    color-scheme: dark;
}

.operations-filter-field
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;

    opacity: 0.65;

    filter: invert(1);
}

.operations-filter-field
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}


/* =========================================================
   ACCIONES
========================================================= */

.operations-filter-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    min-height: 43px;
}

.operations-filter-submit,
.operations-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 43px;

    padding: 0 15px;

    border-radius: 10px;

    font: inherit;
    font-size: 0.72rem;
    font-weight: 850;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}


/* Filtrar */

.operations-filter-submit {
    border: 1px solid rgba(245, 158, 11, 0.5);

    color: #111318;
    background: #f59e0b;

    cursor: pointer;

    box-shadow:
        0 0 16px rgba(245, 158, 11, 0.08);
}

.operations-filter-submit:hover {
    background: #fbbf24;

    border-color: #fbbf24;

    box-shadow:
        0 0 22px rgba(245, 158, 11, 0.14);

    transform: translateY(-1px);
}


/* Limpiar */

.operations-filter-clear {
    border: 1px solid rgba(255, 255, 255, 0.1);

    color: #9ca3af;
    background: rgba(255, 255, 255, 0.035);
}

.operations-filter-clear:hover {
    color: #fff;

    border-color: rgba(255, 255, 255, 0.18);

    background: rgba(255, 255, 255, 0.065);
}


/* =========================================================
   RESET SIN RESULTADOS
========================================================= */

.operations-empty__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 17px;

    min-height: 39px;

    padding: 0 13px;

    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 9px;

    color: #fbbf24;
    background: rgba(245, 158, 11, 0.07);

    font-size: 0.72rem;
    font-weight: 800;

    text-decoration: none;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.operations-empty__reset:hover {
    border-color: rgba(245, 158, 11, 0.55);

    background: rgba(245, 158, 11, 0.12);

    box-shadow:
        0 0 17px rgba(245, 158, 11, 0.08);
}

/* =========================================================
   LISTADO
========================================================= */

.operations-list-section {
    padding: 12px 0 90px;
}

.operations-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.operations-list-header span {
    display: block;

    margin-bottom: 4px;

    color: #737985;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.operations-list-header h2 {
    margin: 0;

    color: #fff;

    font-size: 1.35rem;
}


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

.operations-catalog {
    display: grid;
    gap: 20px;
}

.operations-catalog.is-grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}


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

.operation-card {
    position: relative;

    overflow: hidden;

    min-width: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.085);

    border-radius: 17px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow:
        0 16px 40px
        rgba(0, 0, 0, 0.17);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

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

    border-color:
        color-mix(
            in srgb,
            var(--operation-color) 40%,
            rgba(255, 255, 255, 0.08)
        );

    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.28),
        0 0 22px
        color-mix(
            in srgb,
            var(--operation-color) 7%,
            transparent
        );
}

.operation-card__link {
    position: absolute;
    inset: 0;

    z-index: 2;

    border-radius: inherit;
}


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

.operation-card__media {
    position: relative;

    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: #101216;
}

.operation-card__media > img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 400ms ease;
}

.operation-card:hover
.operation-card__media > img {
    transform: scale(1.035);
}

.operation-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            circle,
            rgba(245, 158, 11, 0.08),
            transparent 55%
        ),
        #111318;
}

.operation-card__placeholder img {
    width: 80px;
    max-height: 65%;

    opacity: 0.22;

    object-fit: contain;
}

.operation-card__media-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.03) 25%,
            rgba(5, 6, 8, 0.76) 100%
        );
}


/* =========================================================
   BADGES DE IMAGEN
========================================================= */

.operation-card__type,
.operation-card__status {
    position: absolute;
    z-index: 1;

    top: 12px;

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

    min-height: 26px;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 0.62rem;
    font-weight: 850;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    backdrop-filter: blur(10px);
}

.operation-card__type {
    left: 12px;

    color: var(--operation-color);

    border:
        1px solid
        color-mix(
            in srgb,
            var(--operation-color) 38%,
            transparent
        );

    background:
        color-mix(
            in srgb,
            var(--operation-color) 13%,
            rgba(7, 8, 10, 0.74)
        );
}

.operation-card__status {
    right: 12px;

    color: #d7dae0;

    border: 1px solid rgba(255, 255, 255, 0.13);

    background: rgba(7, 8, 10, 0.72);
}


/* =========================================================
   CUERPO
========================================================= */

.operation-card__body {
    padding: 18px 19px 19px;
}

.operation-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    min-height: 63px;
}

.operation-card__heading > div {
    min-width: 0;
}

.operation-card h3 {
    margin: 0;

    color: #fff;

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

.operation-card h3 a {
    position: relative;
    z-index: 3;

    color: inherit;

    text-decoration: none;
}

.operation-card__campaign {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    margin-top: 8px;
}

.operation-card__campaign-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    min-height: 22px;

    padding: 0 7px;

    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;

    color: #fbbf24;
    background: rgba(245, 158, 11, 0.09);

    font-size: 0.56rem;
    font-weight: 900;
    line-height: 1;

    letter-spacing: 0.07em;
    text-transform: uppercase;

    box-shadow:
        0 0 10px rgba(245, 158, 11, 0.06);
}

.operation-card__campaign-name {
    min-width: 0;

    overflow: hidden;

    color: #9298a2;

    font-size: 0.72rem;
    font-weight: 700;

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

.operation-card__arrow {
    flex-shrink: 0;

    color: var(--operation-color);

    font-size: 1.15rem;

    transition: transform 180ms ease;
}

.operation-card:hover
.operation-card__arrow {
    transform: translateX(3px);
}


/* =========================================================
   DATOS
========================================================= */

.operation-card__facts {
    display: grid;

    gap: 9px;

    margin: 17px 0 0;
}

.operation-card__facts > div {
    display: grid;

    grid-template-columns: 82px minmax(0, 1fr);

    align-items: center;

    gap: 10px;
}

.operation-card__facts dt {
    color: #606672;

    font-size: 0.66rem;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.operation-card__facts dd {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 8px;

    margin: 0;

    overflow: hidden;

    color: #c7cbd2;

    font-size: 0.75rem;
    font-weight: 700;

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

.operation-card__facts dd img {
    flex-shrink: 0;

    width: 24px;
    height: 24px;

    padding: 2px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.035);

    object-fit: contain;
}

.operation-card__fact-link,
.operation-card__editor {
    position: relative;
    z-index: 4;

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

    min-width: 0;

    overflow: hidden;

    text-decoration: none;

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

    transition:
        color 160ms ease,
        transform 160ms ease;
}

.operation-card__fact-link {
    color: #d6dae1;
}

.operation-card__fact-link::after {
    content: '↗';

    margin-left: 5px;

    color: var(--operation-color);

    font-size: 0.68rem;
    line-height: 1;

    opacity: 0.65;

    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.operation-card__fact-link:hover {
    color: #fff;
}

.operation-card__fact-link:hover::after {
    opacity: 1;

    transform: translate(
        1px,
        -1px
    );
}

.operation-card__editor strong,
.operation-card__editor {
    color: var(--member-group-color, #fff);
}

.operation-card__editor:hover {
    filter: brightness(1.2);

    transform: translateX(2px);
}

.operation-card__editor::after {
    content: '↗';

    margin-left: 5px;

    color: currentColor;

    font-size: 0.65rem;

    opacity: 0;

    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.operation-card__editor:hover::after {
    opacity: 0.75;

    transform: translate(
        1px,
        -1px
    );
}

/* =========================================================
   OPCIONES
========================================================= */

.operation-card__options {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

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

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

.operation-card__options span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 7px;

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

    color: #50545c;
    background: rgba(255, 255, 255, 0.025);

    font-size: 0.57rem;
    font-weight: 850;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.operation-card__options span.is-enabled {
    color: #d9dde3;

    border-color: rgba(255, 255, 255, 0.13);

    background: rgba(255, 255, 255, 0.055);
}


/* =========================================================
   VISTA LISTA
========================================================= */

.operations-catalog.is-list {
    grid-template-columns: 1fr;
}

.operations-catalog.is-list
.operation-card {
    display: grid;

    grid-template-columns:
        minmax(260px, 34%)
        minmax(0, 1fr);

    min-height: 215px;
}

.operations-catalog.is-list
.operation-card__media {
    height: 100%;

    aspect-ratio: auto;
}

.operations-catalog.is-list
.operation-card__body {
    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 22px 26px;
}

.operations-catalog.is-list
.operation-card__heading {
    min-height: auto;
}

.operations-catalog.is-list
.operation-card h3 {
    font-size: 1.3rem;
}

.operations-catalog.is-list
.operation-card__facts {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    column-gap: 25px;
}

.operations-catalog.is-list
.operation-card__options {
    margin-top: 16px;
}


/* =========================================================
   VACÍO
========================================================= */

.operations-empty {
    padding: 50px 25px;

    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;

    text-align: center;
}

.operations-empty strong {
    display: block;

    color: #fff;

    font-size: 1rem;
}

.operations-empty p {
    margin: 8px 0 0;

    color: #747a84;

    font-size: 0.82rem;
}

/* =========================================================
   CAMPAÑAS
========================================================= */

.operations-list-header__campaigns {
    margin-left: 6px;

    color: rgba(255, 255, 255, 0.48);

    font-size: 0.82rem;
    font-weight: 600;
}


/* =========================================================
   WRAPPERS
========================================================= */

.operation-card-wrapper {
    min-width: 0;
}

.operation-card-wrapper > .operation-card {
    width: 100%;
    height: 100%;
}


/*
 * Los operativos pertenecientes a una campaña
 * son elementos DIRECTOS de la cuadrícula.
 *
 * Cuando tienen hidden desaparecen completamente
 * del layout.
 */

.operation-card-wrapper--campaign[hidden] {
    display: none !important;
}


/* =========================================================
   TARJETA DE CAMPAÑA
========================================================= */

.operation-campaign-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    box-sizing: border-box;

    overflow: hidden;

    padding: 0;

    border:
        1px solid
        rgba(245, 158, 11, 0.34);

    border-radius: 17px;

    background:
        radial-gradient(
            circle at top left,
            rgba(245, 158, 11, 0.12),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow:
        0 16px 40px
        rgba(0, 0, 0, 0.2);

    cursor: pointer;

    user-select: none;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}


/*
 * Línea superior.
 */

.operation-campaign-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 45%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            #f59e0b,
            transparent
        );

    box-shadow:
        0 0 12px
        rgba(245, 158, 11, 0.35);
}


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

    border-color:
        rgba(245, 158, 11, 0.58);

    box-shadow:
        0 24px 55px
        rgba(0, 0, 0, 0.3),
        0 0 24px
        rgba(245, 158, 11, 0.055);
}

/* =========================================================
   IMAGEN DE CAMPAÑA
========================================================= */

.operation-campaign-card__media {
    position: relative;

    overflow: hidden;

    width: 100%;

    flex-shrink: 0;

    aspect-ratio: 16 / 9;

    background: #101216;
}


.operation-campaign-card__media > img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 400ms ease;
}


.operation-campaign-card:hover
.operation-campaign-card__media > img {
    transform: scale(1.035);
}


/* Placeholder cuando no existe imagen */

.operation-campaign-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            circle,
            rgba(245, 158, 11, 0.1),
            transparent 55%
        ),
        #111318;
}


.operation-campaign-card__placeholder img {
    width: 80px;
    max-height: 65%;

    opacity: 0.22;

    object-fit: contain;
}


/*
 * Oscurecimiento inferior de la imagen,
 * igual que las tarjetas de operativo.
 */

.operation-campaign-card__media-overlay {
    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 25%,
            rgba(5, 6, 8, 0.72) 100%
        );
}


/* Badge CAMPAÑA sobre la imagen */

.operation-campaign-card__media-badge {
    position: absolute;

    z-index: 2;

    top: 12px;
    left: 12px;

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

    min-height: 26px;

    padding: 0 9px;

    border:
        1px solid
        rgba(245, 158, 11, 0.48);

    border-radius: 999px;

    color: #fbbf24;

    background:
        rgba(7, 8, 10, 0.74);

    backdrop-filter: blur(10px);

    font-size: 0.62rem;
    font-weight: 900;

    line-height: 1;

    letter-spacing: 0.09em;

    text-transform: uppercase;

    box-shadow:
        0 0 12px
        rgba(245, 158, 11, 0.08);
}

/*
 * Estado abierto.
 *
 * JS añade .is-open.
 */

.operation-campaign-card.is-open,
.operation-campaign-card[aria-expanded="true"] {
    border-color:
        rgba(245, 158, 11, 0.68);

    background:
        radial-gradient(
            circle at top left,
            rgba(245, 158, 11, 0.17),
            transparent 58%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.02)
        );
}


/* =========================================================
   CONTENIDO CAMPAÑA
========================================================= */

.operation-campaign-card__main {
    position: relative;

    z-index: 1;

    flex: 1;

    min-width: 0;

    padding:
        18px
        19px
        0;
}


/* Etiqueta */

.operation-campaign-card__label {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 11px;

    color: #f59e0b;

    font-size: 0.67rem;
    font-weight: 900;

    line-height: 1;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.operation-campaign-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 19px;
    height: 19px;

    flex-shrink: 0;

    border:
        1px solid
        rgba(245, 158, 11, 0.46);

    border-radius: 5px;

    color: #f59e0b;

    background:
        rgba(245, 158, 11, 0.08);

    font-size: 0.65rem;
}


/* Nombre */

.operation-campaign-card__title {
    margin: 0;

    color: #fff;

    font-size: 1.25rem;
    font-weight: 900;

    line-height: 1.15;

    letter-spacing: -0.02em;
}


/* Descripción */

.operation-campaign-card__description {
    display: -webkit-box;

    overflow: hidden;

    margin: 12px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            0.62
        );

    font-size: 0.82rem;

    line-height: 1.6;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;

    line-clamp: 5;
}


.operation-campaign-card__description--empty {
    color:
        rgba(
            255,
            255,
            255,
            0.34
        );

    font-style: italic;
}


/* =========================================================
   PARTE INFERIOR CAMPAÑA
========================================================= */

.operation-campaign-card__aside {
    position: relative;

    z-index: 1;

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

    gap: 15px;

    width: 100%;

    margin-top: auto;

    padding:
        20px
        19px
        19px;
}


.operation-campaign-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 8px;
}


/* =========================================================
   PERSISTENCIA
========================================================= */

.operation-campaign-card__persistent {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    min-height: 23px;

    padding: 0 8px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 999px;

    color:
        rgba(
            255,
            255,
            255,
            0.46
        );

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    font-size: 0.6rem;
    font-weight: 850;

    line-height: 1;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}


.operation-campaign-card__persistent-dot {
    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.28
        );
}


.operation-campaign-card__persistent.is-persistent {
    color: #fbbf24;

    border-color:
        rgba(245, 158, 11, 0.32);

    background:
        rgba(245, 158, 11, 0.08);
}


.operation-campaign-card__persistent.is-persistent
.operation-campaign-card__persistent-dot {
    background: #f59e0b;

    box-shadow:
        0 0 8px
        rgba(245, 158, 11, 0.65);
}


/* Número de operativos */

.operation-campaign-card__count {
    color:
        rgba(
            255,
            255,
            255,
            0.48
        );

    font-size: 0.72rem;
    font-weight: 650;
}


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

.operation-campaign-card__toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;

    flex-shrink: 0;

    border:
        1px solid
        rgba(245, 158, 11, 0.3);

    border-radius: 50%;

    background:
        rgba(245, 158, 11, 0.07);

    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}


.operation-campaign-card:hover
.operation-campaign-card__toggle {
    border-color:
        rgba(245, 158, 11, 0.58);

    background:
        rgba(245, 158, 11, 0.13);
}


.operation-campaign-card__toggle-icon {
    display: block;

    color: #f59e0b;

    font-size: 1rem;
    font-weight: 900;

    line-height: 1;

    transition:
        transform 220ms ease;
}


.operation-campaign-card.is-open
.operation-campaign-card__toggle-icon,
.operation-campaign-card[aria-expanded="true"]
.operation-campaign-card__toggle-icon {
    transform: rotate(180deg);
}


/* =========================================================
   OPERATIVOS HIJOS DE CAMPAÑA
========================================================= */

.operation-card-wrapper--campaign {
    position: relative;

    min-width: 0;
}


/*
 * La tarjeta sigue siendo exactamente la misma
 * tarjeta normal de operativo.
 */

.operation-card--campaign-child {
    position: relative;

    border-top-color:
        rgba(245, 158, 11, 0.42);
}


/*
 * Pequeña marca que indica que este operativo
 * pertenece a una campaña.
 */

.operation-card-connector {
    position: absolute;

    z-index: 5;

    top: -8px;
    left: 15px;

    width: 28px;
    height: 8px;

    border-top:
        2px solid
        rgba(245, 158, 11, 0.65);

    border-left:
        2px solid
        rgba(245, 158, 11, 0.65);

    border-radius:
        7px
        0
        0
        0;

    pointer-events: none;
}


.operation-card-connector::before {
    content: "";

    position: absolute;

    top: -5px;
    left: -5px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #f59e0b;

    box-shadow:
        0 0 9px
        rgba(245, 158, 11, 0.6);
}


.operation-card-wrapper--campaign:hover
.operation-card-connector {
    border-color:
        rgba(245, 158, 11, 0.95);
}


.operation-card-wrapper--campaign:hover
.operation-card-connector::before {
    box-shadow:
        0 0 13px
        rgba(245, 158, 11, 0.9);
}


/* =========================================================
   CUADRÍCULA
========================================================= */


/*
 * MUY IMPORTANTE:
 *
 * No hay:
 *
 * - details
 * - display: contents
 * - grids anidados
 * - grid-column manual
 *
 * Campaña, hijos y operativos normales son
 * hermanos directos del mismo grid.
 */

.operations-catalog.is-grid
.operation-campaign-card,
.operations-catalog.is-grid
.operation-card-wrapper {
    min-width: 0;

    align-self: stretch;
}


/*
 * La campaña ocupa exactamente UNA celda.
 */

.operations-catalog.is-grid
.operation-campaign-card {
    width: 100%;
    height: 100%;
}


/*
 * Operativo hijo idéntico al normal.
 */

.operations-catalog.is-grid
.operation-card--campaign-child {
    display: block;

    width: 100%;
    height: 100%;
}


.operations-catalog.is-grid
.operation-card--campaign-child
.operation-card__media {
    height: auto;
    min-height: 0;

    aspect-ratio: 16 / 9;
}


/* =========================================================
   VISTA LISTA - CAMPAÑA
========================================================= */

.operations-catalog.is-list
.operation-campaign-card {
    display: grid;

    grid-template-columns:
        minmax(260px, 34%)
        minmax(0, 1fr)
        auto;

    grid-template-rows:
        auto
        1fr;

    align-items: stretch;

    gap: 0;

    min-height: 215px;

    padding: 0;
}

.operations-catalog.is-list
.operation-campaign-card__media {
    grid-column: 1;
    grid-row: 1 / -1;

    width: 100%;
    height: 100%;

    aspect-ratio: auto;
}


.operations-catalog.is-list
.operation-campaign-card__main {
    grid-column: 2;
    grid-row: 1 / -1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        22px
        26px;
}


.operations-catalog.is-list
.operation-campaign-card__aside {
    grid-column: 3;
    grid-row: 1 / -1;

    align-self: stretch;

    width: auto;

    min-width: 180px;

    margin: 0;

    padding:
        22px
        24px
        22px
        0;

    align-items: center;
}


.operations-catalog.is-list
.operation-campaign-card__aside {
    width: auto;

    min-width: 205px;

    margin-top: 0;

    align-items: center;
}


.operations-catalog.is-list
.operation-campaign-card__meta {
    align-items: flex-end;
}


/* =========================================================
   VISTA LISTA - OPERATIVOS DE CAMPAÑA
========================================================= */

.operations-catalog.is-list
.operation-card-wrapper--campaign {
    padding-left: 42px;
}


/*
 * Línea vertical que visualmente une los
 * operativos hijos con la campaña anterior.
 */

.operations-catalog.is-list
.operation-card-wrapper--campaign::before {
    content: "";

    position: absolute;

    top: -20px;
    bottom: -20px;
    left: 11px;

    width: 2px;

    background:
        linear-gradient(
            180deg,
            rgba(245, 158, 11, 0.7),
            rgba(245, 158, 11, 0.18)
        );

    pointer-events: none;
}


/*
 * En lista el conector sale desde el rail.
 */

.operations-catalog.is-list
.operation-card-connector {
    top: 42px;
    left: 11px;

    width: 31px;
    height: 2px;

    border: 0;

    border-top:
        2px solid
        rgba(245, 158, 11, 0.62);

    border-radius: 0;
}


.operations-catalog.is-list
.operation-card-connector::before {
    top: -5px;
    left: -4px;
}
@media (max-width: 900px) {
    .operations-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .operations-filters-basic {
        grid-template-columns: 1fr;
    }

    .operations-filter-field--search {
        grid-column: auto;
    }

    .operations-filters-toggle,
    .operations-filter-submit--basic {
        width: 100%;
    }
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

.operation-campaign-card:focus-visible {
    outline:
        2px solid
        rgba(245, 158, 11, 0.9);

    outline-offset: 4px;
}


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

@media (max-width: 1100px) {

    .operations-filters-basic__actions {
        justify-content: flex-start;
    }

    .operations-filters-advanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .operations-catalog.is-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


@media (max-width: 800px) {

    .operations-hero {
        padding-top: 48px;
    }


    .operations-hero__row {
        align-items: flex-start;

        flex-direction: column;
    }


    .operations-view-switcher {
        align-self: stretch;
    }


    .operations-view-button {
        flex: 1;
    }


    .operations-catalog.is-list
    .operation-card {
        grid-template-columns: 1fr;
    }


    .operations-catalog.is-list
    .operation-card__media {
        aspect-ratio: 16 / 9;
    }


    .operations-catalog.is-list
    .operation-campaign-card {
        grid-template-columns: 1fr;

        grid-template-rows: auto;

        gap: 0;
    }


    .operations-catalog.is-list
    .operation-campaign-card__media {
        grid-column: 1;
        grid-row: auto;

        height: auto;

        aspect-ratio: 16 / 9;
    }


    .operations-catalog.is-list
    .operation-campaign-card__main {
        grid-column: 1;
        grid-row: auto;

        padding:
            18px
            19px
            0;
    }


    .operations-catalog.is-list
    .operation-campaign-card__aside {
        grid-column: 1;
        grid-row: auto;

        width: 100%;

        min-width: 0;

        padding:
            20px
            19px
            19px;

        justify-content:
            space-between;
    }


    .operations-catalog.is-list
    .operation-campaign-card__meta {
        align-items: flex-start;
    }


    .operations-catalog.is-list
    .operation-campaign-card__aside {
        width: 100%;

        min-width: 0;

        justify-content:
            space-between;
    }


    .operations-catalog.is-list
    .operation-campaign-card__meta {
        align-items: flex-start;
    }

}


@media (max-width: 650px) {

    .operations-filters-basic__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .operations-filters-toggle,
    .operations-filter-submit,
    .operations-filter-clear {
        width: 100%;
    }

    .operations-filters-advanced {
        grid-template-columns: 1fr;
    }

    .operations-filter-actions--advanced {
        justify-content: stretch;
    }

    .operations-filter-actions--advanced .operations-filter-submit,
    .operations-filter-actions--advanced .operations-filter-clear {
        flex: 1;
    }

    .operations-catalog.is-grid {
        grid-template-columns: 1fr;
    }

    .operations-catalog.is-list
    .operation-card__facts {
        grid-template-columns: 1fr;
    }

    .operation-card__facts > div {
        grid-template-columns: 78px minmax(0, 1fr);
    }


    .operations-filters {
        grid-template-columns: 1fr;
    }


    .operations-filter-actions {
        grid-column: auto;

        align-items: stretch;
    }


    .operations-filter-submit,
    .operations-filter-clear {
        flex: 1;
    }


    .operations-catalog.is-grid {
        grid-template-columns: 1fr;
    }


    .operations-catalog.is-list
    .operation-card__facts {
        grid-template-columns: 1fr;
    }


    .operation-card__facts > div {
        grid-template-columns:
            78px
            minmax(0, 1fr);
    }


    /*
     * En móvil reducimos el desplazamiento
     * visual de los hijos de campaña.
     */

    .operations-catalog.is-list
    .operation-card-wrapper--campaign {
        padding-left: 27px;
    }


    .operations-catalog.is-list
    .operation-card-wrapper--campaign::before {
        left: 7px;
    }


    .operations-catalog.is-list
    .operation-card-connector {
        left: 7px;

        width: 20px;
    }

}


@media (max-width: 430px) {

    .operations-view-button {
        padding: 0 9px;

        font-size: 0.7rem;
    }


    .operation-card__body {
        padding: 16px;
    }


    .operation-campaign-card {
        padding: 18px;

        border-radius: 14px;
    }


    .operation-campaign-card__title {
        font-size: 1.12rem;
    }


    .operation-campaign-card__description {
        font-size: 0.77rem;

        -webkit-line-clamp: 4;

        line-clamp: 4;
    }


    .operation-campaign-card__toggle {
        width: 36px;
        height: 36px;
    }

}


/* =========================================================
   REDUCIR MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .operation-card,
    .operation-campaign-card,
    .operation-campaign-card__toggle,
    .operation-campaign-card__toggle-icon {
        transition: none;
    }

}