﻿/*RCL*/

/* ============================================================
   HEADER
   ============================================================ */
.sh-header-body {
    position: static;
    top: 0;
    z-index: 100;
    margin: 1rem 0;
    transition: all 0.2s ease;
    min-height: 150px;
    padding: 0 0.5rem;
}

.header-components {
    height: 2.5rem;
    border-radius: 5px;
}

    .header-components::placeholder {
        color: white;
    }

.search-button {
    color: #ffffff;
    padding: 0 1rem;
    border-radius: 5px;
    background: #D98B5F !important;
    width: 2.5rem;
    font-size: 1rem;
    cursor: pointer;
}

    .search-button:hover {
        background: #9f5932 !important;
    }

.gen-status-stack {
    padding: 0.3rem 0.5rem;
    width: 180px;
    cursor: pointer;
    border-radius: 8px;
}

.rz-menuitem,
.rz-autocomplete-list-item,
.rz-multiselect-item,
.rz-autocomplete-items li,
.rz-dropdown-items li,
.rz-multiselect-items li,
.rz-dropdown-item {
    cursor: pointer;
}

.rz-state-disabled.rz-menuitem,
.rz-state-disabled.rz-autocomplete-list-item,
.rz-state-disabled.rz-multiselect-item,
.rz-autocomplete-items li.rz-state-disabled,
.rz-dropdown-items li.rz-state-disabled,
.rz-multiselect-items li.rz-state-disabled,
.rz-dropdown-item.rz-state-disabled {
    cursor: default;
}

/* ============================================================
   DIALOGS
   ============================================================ */
.detail-dialog {
    margin: 0.5rem;
}

.custom-dialog .rz-form-field-label.rz-text-truncate {
    color: #182337db !important;
}

/* ============================================================
   BREADCRUMB Y NAVEGACIÓN
   ============================================================ */
.sh-breadcrumb-estilo-contenido {
    background: linear-gradient(135deg, #D76A0B 0%, #9F4E06 100%);
    color: #ffffff;
    font-size: 1rem !important;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: default;
}

.sh-back-boton {
    color: #FFFFFF;
    background: linear-gradient(135deg, #2f415f87 0%, #2c6ad278 100%) !important;
    font-size: 0.7rem;
    transition: all .3s ease;
}

    .sh-back-boton:hover {
        background: linear-gradient(135deg, #2f415f 0%, #2c6ad2 100%) !important;
    }


/* ============================================================
   CARDS GENERALES
   ============================================================ */
.card-test {
    background: linear-gradient(rgb(255 248 243), rgb(255 238 205));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    min-width: 150px;
    padding: 1rem !important;
}

.boton-finalizar-test {
    background: grey !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

    .boton-finalizar-test:hover {
        transform: scale(1.01);
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
        background: var(--rz-success) !important;
        color: #1F3A57;
    }

.card-animada {
    background: linear-gradient(to bottom, #fbfbfb, #f3f5f7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    min-width: 150px;
}

    .card-animada:hover {
        transform: scale(1.01);
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
        background: linear-gradient(to bottom, #fff4eb, #ffe9d6);
        color: #1F3A57;
    }

        .card-animada:hover .text-title-card {
            color: #1F3A57;
        }

.card-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.footer-text {
    font-size: 0.7rem !important;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
}


/* ============================================================
   CARDS DE GENERADORES (VISTA GRID)
   ============================================================ */
.generator-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
    padding: 0 !important;
    height: 35vh;
    min-height: 310px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2) !important;
}

    .generator-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    }

        .generator-card:hover .detail-button,
        .list-gen-card:hover .detail-button {
            background-color: #FF8C42 !important;
            color: white !important;
            transform: scale(1.03);
        }

        .generator-card:hover .button-icon {
            color: white;
        }

        .generator-card:hover .sh-text-go-details,
        .list-gen-card:hover .sh-text-go-details {
            color: white;
        }

.accent-bar {
    height: 2vh;
    width: 100%;
    border-radius: 10px 10px 0 0;
}


/* ============================================================
   CARDS DE GENERADORES (VISTA LISTA)
   ============================================================ */
.list-gen-card {
    padding: 10px;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease;
}

    .list-gen-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    }

.list-gen-status-on {
    border-left: 10px solid mediumseagreen;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0% {
        border-left-color: mediumseagreen;
        box-shadow: -4px 0 4px rgba(60, 179, 113, 0);
    }

    50% {
        border-left-color: #7fffd4;
        box-shadow: -4px 0 10px rgba(127, 255, 212, 0.6);
    }

    100% {
        border-left-color: mediumseagreen;
        box-shadow: -4px 0 4px rgba(60, 179, 113, 0);
    }
}

.list-gen-status-off {
    border-left: 10px solid #a1a1a1;
}

.middle-column {
    min-width: 0;
    border-left: 0.5px solid #e2e8f0;
    border-right: 0.5px solid #e2e8f0;
    padding-left: 12px;
    padding-right: 12px;
}


/* ============================================================
   ESTADO DEL GENERADOR / ICONOS DE STATUS
   ============================================================ */

.text-shadow-icon {
    /*    filter: drop-shadow(0 0 6px #32cd32);
    */ font-size: 2vh;
        color: mediumseagreen;
    }

.text-shadow-icon-online {
    font-size: 2vh;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    will-change: transform, filter, color;
    animation: pulse-green-stable 3s ease-in-out infinite;
}

@keyframes pulse-green-stable {
    0% {
        color: mediumseagreen;
        filter: drop-shadow(0 0 4px mediumseagreen);
        transform: scale(1);
    }

    50% {
        color: #7fffd4;
        filter: drop-shadow(0 0 10px #7fffd4);
        transform: scale(1.08);
    }

    100% {
        color: mediumseagreen;
        filter: drop-shadow(0 0 4px mediumseagreen);
        transform: scale(1);
    }
}

.generator-off {
    background-color: #7A7A7A;
}

.generator-on {
    background-color: #28a745;
}

.generator-status {
    padding: 0.5rem;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .generator-status:hover {
        transform: translateY(-2px);
    }


/* ============================================================
   BATERÍAS
   ============================================================ */
.battery-full {
    color: #2AC225;
    font-size: 6VH;
    transition: transform 0.5s ease;
}

.card-animada .battery-full {
    color: #2AC225;
    font-size: 6VH !important;
    transition: transform 0.5s ease;
}


/* ============================================================
   ICONOS / ESTADOS (pulso, movimiento, instalación)
   ============================================================ */
.icon-pulse {
    display: inline-block !important;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }
}

.icon-move-right {
    display: inline-block;
    animation: moveRight 1s ease-in-out infinite;
}

@keyframes moveRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    49% {
        transform: translateX(10px);
        opacity: 0;
    }

    50% {
        transform: translateX(-10px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.estado-pendiente {
    color: var(--rz-warning);
    margin-bottom: 0 !important;
}

.estado-instalado {
    color: var(--rz-success);
    margin-bottom: 0 !important;
}

/* ============================================================
   14. ICONOS SEÑAL GSM
   ============================================================ */

.gsm-signal-none {
    color: #7A7A7A;
}

.gsm-signal-weak {
    color: #a74628;
}

.gsm-signal-fair {
    color: #a78728;
}

.gsm-signal-good {
    color: #98a728;
}

.gsm-signal-strong {
    color: #7ba728;
}

.gsm-signal-excellent {
    color: #28a745;
}

/* ============================================================
   15. ICONOS BATERÍAS
   ============================================================ */

.battery-critical {
    color: #CF2121;
    font-size: 6VH;
    transition: transform 0.5s ease;
}

.battery-low {
    color: #CF6A21;
    font-size: 6VH;
    transition: transform 0.5s ease;
}

.battery-good {
    color: #AAC225;
    font-size: 6VH;
    transition: transform 0.5s ease;
}

.battery-almost-full {
    color: #6CC225;
    font-size: 6VH;
    transition: transform 0.5s ease;
}

.battery-full {
    color: #2AC225;
    font-size: 6VH;
    transition: transform 0.5s ease;
}

/* ============================================================
   16. ICONOS DATA GRID / EVENTOS
   ============================================================ */

.icon-error {
    color: #D32F2F;
}

.icon-ok {
    color: green;
}

.icon-gen-on {
    color: #ffe200;
}

.icon-gen-off {
    color: grey;
}

.icon-output-on {
    color: #03ffff;
}

.icon-output-off {
    color: #464648;
}

.icon-moving {
    color: #464648;
}

.icon-stopped {
    color: #757575;
}

.icon-door-closed {
    color: #464648;
}

.icon-door-open {
    color: #C35A3A;
}

.icon-temp {
    color: #a75d5d;
}

.icon-humidity {
    color: #5DAE9E;
}

.icon-power-on {
    color: #2cdb15;
}

.icon-power-off {
    color: red;
}

.icon-default {
    color: inherit;
}

.icon-remote-gen-on {
    color: #0bdf0b;
}

.icon-remote-gen-off {
    color: #ff7800;
}


/* ============================================================
   BOTONES Y ACCIONES
   ============================================================ */
.sh-action-buttons-row {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

    .sh-action-buttons-row > * {
        min-width: 0;
        flex-shrink: 1;
        overflow: hidden;
    }

.boton-getrecord {
    margin: 0;
    font-weight: 500;
    color: inherit;
    color: white;
    background-color: chocolate !important;
}

.boton-cpureset {
    margin: 0;
    font-weight: 500;
    color: inherit;
    color: white;
    background-color: #394B59 !important;
}

.stack-actions-btn {
    padding: 0.5rem !important;
    border-radius: 5px !important;
    background-color: #0000001f;
}

.btn-detalle-instalacion {
    background-color: #e97119b5 !important;
    box-shadow: none;
}

    .btn-detalle-instalacion:hover {
        background-color: #c75400 !important;
        box-shadow: none !important;
    }

.sh-btn-caption,
.sh-btn-caption * {
    min-width: 0;
}

.sh-btn-caption {
    display: inline-flex;
    height: 40px;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    align-items: center;
}

    .sh-btn-caption .rz-button-box {
        min-width: 0;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    .sh-btn-caption .rz-text {
        font-family: var(--rz-button-font-family) !important;
        font-size: 0.75rem !important;
        font-weight: 500 !important;
        line-height: normal !important;
    }

.sh-btn-generar-registro {
    background-color: #D76A0B !important;
    border-color: #D76A0B !important;
}

.sh-btn-encender {
    background-color: #25a515 !important;
    border-color: #25a515 !important;
}

.sh-btn-apagar {
    background-color: #c54c27 !important;
    border-color: #c54c27 !important;
}

.sh-icon-spinning {
    animation: sh-spin 1s linear infinite;
}

@keyframes sh-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.boton-actualizar {
    background-color: #50bbeb !important;
    color: white !important;
    border: none;
    margin-top: 0.3rem;
    min-width: 150px;
}

    .boton-actualizar:hover {
        background-color: #4096bc !important;
    }

@keyframes quick-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.pulse-refreshing {
    animation: quick-pulse 0.8s ease-in-out infinite;
}

.sh-editbutton {
    box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    color: #464648;
    background-color: #007fff38 !important;
    transition: transform 0.5s ease, box-shadow 0.5s ease !important;
}

    .sh-editbutton:hover {
        transform: scale(1.01);
        background-color: #1F3A57 !important;
        color: white !important;
    }

.detail-button {
    transition: all 0.3s ease;
    background: none !important;
    box-shadow: none !important;
    padding: 0.5rem;
    border-radius: 50px;
}

.sh-text-go-details {
    margin: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}


/* ============================================================
   COLUMNAS DE DETALLE (CONTRATO / GENERADOR / TRACKALERT)
   ============================================================ */
.all-details {
    padding: 0.8rem;
    border-radius: 8px;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
    min-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contract-details {
    background: linear-gradient(135deg, #fffdf2 0%, #fff6cc 100%);
}

.generator-details {
    background: linear-gradient(135deg, #eff3f7 0%, #dce6f0 100%);
}

.trackalert-details {
    background: linear-gradient(135deg, #ffecdf 0%, #ffd9bc 100%);
}

    .trackalert-details:hover,
    .contract-details:hover,
    .generator-details:hover {
        transform: translateY(-2px);
        box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.25);
        cursor: pointer;
    }

        .trackalert-details:hover .title-columns-details,
        .generator-details:hover .title-columns-details,
        .contract-details:hover .title-columns-details {
            color: #f27100;
        }

.title-columns-details {
    font-weight: 500;
    margin: 0;
    align-self: center;
    transition: all 0.3s ease;
}


/* ============================================================
   TEXTOS Y UTILIDADES
   ============================================================ */
.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-shadow {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

.sh-text-status {
    font-size: 0.7rem;
}

.text-title-card {
    height: 100%;
    overflow: hidden;
    font-style: normal;
    font-size: 0.8rem !important;
    color: #454545 !important;
    font-weight: 600 !important;
    align-content: center;
    align-items: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.text-value-card {
    height: 100%;
    overflow: hidden;
    font-style: normal;
    font-size: 1.5rem !important;
    align-content: center;
    align-items: center;
}

.icon-card {
    font-size: 6VH !important;
    transition: transform 0.5s ease;
}

.alert-icon {
    font-size: 1.4rem;
    color: limegreen;
}

    .alert-icon:hover {
        color: green;
        cursor: pointer;
        transform: scale(1.1);
    }

    .alert-icon:active {
        color: #D76A0B;
    }

/* ============================================================
   ANIMACIONES GENERALES
   ============================================================ */
.boton-animado {
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    cursor: pointer;
}

    .boton-animado:hover {
        transform: scale(1.01);
    }

.spin-icon .rz-button-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   MÓDULO INSTALACIÓN
   ============================================================ */
.inst-page {
    width: 100%;
}

.inst-card {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    padding: 1.5rem !important;
}

.inst-card-full {
    display: flex;
    flex-direction: column;
}

.inst-status-card {
    width: 100%;
}

.inst-card-header {
    margin-bottom: 1.25rem;
}

.inst-card-icon {
    font-size: 22px;
    color: #F27100;
    flex-shrink: 0;
}

.inst-card-icon-sm {
    font-size: 18px;
    color: #64748B;
    flex-shrink: 0;
}

.inst-card-title {
    margin: 0;
    font-weight: 700;
}

.inst-subsection-header {
    margin-bottom: 0.5rem;
}

.inst-subsection-title {
    margin: 0;
    font-weight: 600;
    color: #464648;
}

.inst-info-grid {
    margin-top: 0.25rem;
}

.inst-info-item {
    padding: 0.5rem 0;
}

.inst-info-icon {
    font-size: 18px;
    color: #9f9f9f;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.inst-info-label {
    margin: 0;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.inst-info-value {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

.inst-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1rem 0;
}

.inst-notif-list {
    margin-top: 0.25rem;
}

.inst-notif-item {
    margin: 0;
    color: #464648;
}

.inst-notif-label {
    font-weight: 600;
    color: #64748B;
    margin-right: 0.3rem;
}

.inst-card-full {
    display: flex;
    flex-direction: column;
    height: auto;
}
/* Timeline de activación (Panel Detalle) */
.inst-timeline-label {
    margin: 0;
    margin-bottom: 0.2rem;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.inst-timeline-done {
    color: var(--rz-success) !important;
    font-weight: 600;
    animation: timelineCompletedText 0.6s ease-out;
}

@keyframes timelineCompletedText {
    0% {
        opacity: 0;
        transform: translateX(-5px);
    }

    60% {
        opacity: 1;
        transform: translateX(2px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.inst-timeline-pending {
    color: var(--rz-text-color) !important;
    opacity: 0.55;
    font-weight: 500;
}

.inst-config-btn {
    width: 100%;
}

.inst-config-btn-row {
    width: 100%;
}

    .inst-config-btn-row .inst-config-btn {
        flex: 1;
    }

/* Estado de instalación (franja horizontal) */
.inst-status-row {
    width: 100%;
}

.inst-status-step {
    flex: 1;
    min-width: 220px;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    background: #f8f9fa;
    transition: background 0.2s ease;
}

    .inst-status-step.inst-status-done {
        background: #eefbf0;
    }

.inst-status-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.inst-status-done .inst-status-icon {
    color: #2cdb15;
}

.inst-status-pending .inst-status-icon {
    color: #b0b0b0;
}

.inst-status-text {
    margin: 0;
    font-weight: 600;
    font-size: small;
}

.inst-status-substate {
    margin: 0;
    color: #64748B;
}

.inst-status-connector {
    height: 2px;
    flex: 0.3;
    min-width: 24px;
    background: #d9d9d9;
}

@media (max-width: 960px) {
    .inst-status-row {
        flex-direction: column;
        align-items: stretch;
    }

    .inst-status-connector {
        display: none;
    }

    .inst-status-step {
        min-width: 100%;
    }
}

/* =========================================================
   TIMELINE - INSTALACIÓN
   ========================================================= */

.rz-timeline.rz-timeline-column .rz-timeline-content-end {
    font-size: small !important;
}


.inst-timeline-item {
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/* =========================================================
   LABELS
   ========================================================= */

.inst-timeline-label {
    margin-bottom: 0.2rem;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}


/* =========================================================
   PASO PENDIENTE
   ========================================================= */

.inst-timeline-pending {
    color: var(--rz-text-color) !important;
    opacity: 0.55;
    font-weight: 500;
}


/* =========================================================
   PASO ACTIVO
   ========================================================= */

.inst-timeline-active {
    color: var(--rz-primary) !important;
    font-weight: 700;
    animation: timelineActiveText 1.4s ease-in-out infinite;
}


/* =========================================================
   PASO COMPLETADO
   ========================================================= */

.inst-timeline-done {
    color: var(--rz-success) !important;
    font-weight: 600;
    animation: timelineCompletedText 0.6s ease-out;
}


/* =========================================================
   ANIMACIÓN TEXTO ACTIVO
   ========================================================= */

@keyframes timelineActiveText {

    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.55;
    }
}


/* =========================================================
   ANIMACIÓN TEXTO COMPLETADO
   ========================================================= */

@keyframes timelineCompletedText {

    0% {
        opacity: 0;
        transform: translateX(-5px);
    }

    60% {
        opacity: 1;
        transform: translateX(2px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================================
   PASO ACTIVO (ítem completo)
   Sin transform en el contenedor: evita que el punto y la
   línea del timeline se desalineen en orientación vertical.
   ========================================================= */

.inst-timeline-item-active {
}


/* =========================================================
   PASO COMPLETADO (ítem completo)
   Solo fade, sin scale/translate para no mover punto ni línea.
   ========================================================= */

.inst-timeline-item-completed {
    animation: timelineCompletedItemFade 0.55s ease-out;
}


@keyframes timelineCompletedItemFade {

    0% {
        opacity: 0.5;
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}


/* =========================================================
   EFECTO DE BRILLO PARA ELEMENTOS SUCCESS
   ========================================================= */

.inst-timeline-item-completed
.inst-timeline-done {
    text-shadow: 0 0 0 transparent;
    animation: timelineSuccessGlow 1.8s ease-in-out infinite;
}


@keyframes timelineSuccessGlow {

    0% {
        text-shadow: 0 0 0 transparent;
    }

    50% {
        text-shadow: 0 0 7px rgba(40, 167, 69, 0.55);
    }

    100% {
        text-shadow: 0 0 0 transparent;
    }
}


/* =========================================================
   TIMELINE - LÍNEA
   ========================================================= */

.inst-timeline-item-completed::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient( 180deg, transparent 0%, rgba(40, 167, 69, 0.08) 35%, rgba(40, 167, 69, 0.20) 50%, rgba(40, 167, 69, 0.08) 65%, transparent 100% );
    background-size: 100% 0%;
    background-repeat: no-repeat;
    animation: timelineFlow 0.8s ease-out forwards;
}


@keyframes timelineFlow {

    0% {
        background-size: 100% 0%;
        background-position: center top;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    70% {
        background-size: 100% 100%;
        opacity: 1;
    }

    100% {
        background-size: 100% 100%;
        opacity: 0;
    }
}


/* =========================================================
   EFECTO DE "PULSO" EN EL PUNTO ACTIVO
   ========================================================= */

.inst-timeline-item-active
::deep .rz-timeline-point {
    animation: timelinePointPulse 1.4s ease-in-out infinite;
}


@keyframes timelinePointPulse {

    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.25);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(0, 123, 255, 0.08);
    }
}


/* =========================================================
   EFECTO DE ÉXITO EN EL PUNTO
   ========================================================= */

.inst-timeline-item-completed
::deep .rz-timeline-point {
    animation: timelinePointSuccess 1.8s ease-in-out infinite;
}


@keyframes timelinePointSuccess {

    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.12);
    }
}


/* =========================================================
   DIVIDER / LÍNEA DEL TIMELINE
   ========================================================= */

.inst-timeline-item-completed
::deep .rz-timeline-line {
    background: linear-gradient( 180deg, var(--rz-success) 0%, var(--rz-success) 50%, rgba(40, 167, 69, 0.15) 100% );
    background-size: 100% 200%;
    animation: timelineLineFlow 1s ease-out forwards;
}


@keyframes timelineLineFlow {

    0% {
        background-position: 0 -100%;
    }

    100% {
        background-position: 0 0;
    }
}


/* =========================================================
   DIVIDER GENERAL
   ========================================================= */

.inst-divider {
    margin: 1rem 0;
}


.inst-txt-descripcion {
    background-color: #437594;
    padding: 1rem;
    border-radius: 5px;
}
/* =========================================================
   FORMULARIO DATOS GENERADOR
   ========================================================= */
.inst-form-helper {
    min-height: 2.2rem; /* reserva espacio fijo para hasta 2 líneas de error */
    line-height: 1.1rem;
    display: block;
}

/* =========================================================
   ESTADO ERROR EN PASO DEL TIMELINE
   ========================================================= */

.inst-timeline-item-error .rz-timeline-item-dot {
    background-color: var(--rz-danger);
    border-color: var(--rz-danger);
    box-shadow: 0 0 0 4px var(--rz-danger-lighter, rgba(220, 53, 69, 0.15));
}

.inst-timeline-item-error .rz-timeline-item-content {
    border-left: 2px solid var(--rz-danger);
}

.inst-timeline-label.inst-timeline-error {
    color: var(--rz-danger);
    font-weight: 600;
}

/* Texto del detalle del error dentro del ítem */
.inst-timeline-item-error .rz-text-caption {
    color: var(--rz-danger);
}

/* Contenedor del botón de reintento */
.inst-timeline-item-error .rz-stack {
    background-color: var(--rz-danger-lighter, rgba(220, 53, 69, 0.08));
    border: 1px solid var(--rz-danger-light, rgba(220, 53, 69, 0.25));
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

/* Botón "Reintentar" — leve pulso para llamar la atención sin ser invasivo */
.inst-timeline-item-error .rz-button.rz-warning {
    animation: inst-retry-pulse 1.8s ease-in-out infinite;
}

@keyframes inst-retry-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.35);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
}

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

@media (max-width: 768px) {

    .inst-timeline-item {
        margin-bottom: 0.5rem;
    }
}

/* ============================================================
   RESPONSIVE (mobile — max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .sh-header-body {
        height: auto !important;
        position: static;
        min-height: auto;
    }

    .card-animada {
        height: 160px;
        border-radius: 8px;
        cursor: pointer;
    }

    .gen-status-stack {
        padding: 0.3rem 0.5rem;
        width: 100px;
        cursor: pointer;
        border-radius: 8px;
    }

    .middle-column {
        min-width: 0;
        border-left: 0.5px solid #d6d7d9;
        border-right: 0;
        padding-left: 12px;
    }

    .card-value {
        flex-direction: column !important;
    }

    .string-value {
        font-size: 1rem !important;
    }

    .mobile-row-gap {
        gap: 0.5rem !important;
        row-gap: 0.5rem !important;
    }

    .card-test-content {
        justify-content: center !important;
    }

    .column-direction {
        flex-direction: column !important;
    }
}
