/* Demo visual del portal cliente — página DispetroSmart */
.dps-portal-demo {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 3.5rem;
    scroll-margin-top: 5.5rem;
}

.dps-portal-demo--stage {
    max-width: min(96rem, calc(100vw - 1.5rem));
    padding: 0 0.75rem 1.75rem;
}

.dps-page--demo .dps-portal-demo--stage {
    width: 100%;
    max-width: none;
    padding: 0 0.75rem 1.5rem;
}

.dps-portal-demo__intro {
    max-width: 40rem;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.dps-portal-demo__eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #fff4ed;
    color: #c44a1a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dps-portal-demo__title {
    margin: 0;
    color: #1a1f24;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dps-portal-demo__sub {
    margin: 0.6rem 0 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}

.dps-portal-demo__frame {
    overflow: hidden;
    border: 1px solid #fed7aa;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #fff4ed 0%, #fff 42%);
    box-shadow: 0 24px 60px rgb(196 74 26 / 0.12);
}

.dps-portal-demo__frame--live {
    background: #fff;
}

.dps-portal-demo__iframe,
.dps-portal-demo__video {
    display: block;
    width: 100%;
    height: min(82vh, 52rem);
    border: 0;
    background: #fff4ed;
}

.dps-portal-demo__iframe {
    pointer-events: none;
}

.dps-portal-demo__video {
    object-fit: contain;
    background: #1a1f24;
}

.dps-portal-demo__stage {
    position: relative;
}

.dps-portal-demo__lock {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: default;
    touch-action: none;
}

.dps-page--demo .dps-portal-demo__frame {
    display: flex;
    flex-direction: column;
}

.dps-page--demo .dps-portal-demo__stage {
    position: relative;
    height: 110rem;
    min-height: 110rem;
}

.dps-page--demo .dps-portal-demo__iframe,
.dps-page--demo .dps-portal-demo__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.dps-portal-demo__chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    background: #1a1f24;
    color: #e2e8f0;
}

.dps-portal-demo__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #64748b;
}

.dps-portal-demo__dot:first-child { background: #f87171; }
.dps-portal-demo__dot:nth-child(2) { background: #fbbf24; }
.dps-portal-demo__dot:nth-child(3) { background: #34d399; }

.dps-portal-demo__url {
    flex: 1;
    margin-left: 0.5rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
    font-size: 0.68rem;
    letter-spacing: 0.01em;
}

.dps-portal-demo__live {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e85d2a;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dpc-demo {
    position: relative;
    min-height: 28rem;
}

.dpc-demo__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 1rem 0.55rem;
    border-bottom: 1px solid #ffedd5;
    background: #fff;
}

.dpc-demo__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.dpc-demo__brand img {
    height: 2.4rem;
    width: auto;
    object-fit: contain;
}

.dpc-demo__brand-kicker {
    margin: 0;
    color: #c44a1a;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dpc-demo__brand-name {
    margin: 0;
    color: #e8792f;
    font-size: 0.95rem;
    font-weight: 800;
}

.dpc-demo__who {
    margin: 0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.dpc-demo__nav {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.4rem 0.7rem;
    background: #fff;
    border-bottom: 1px solid #fff7ed;
    scrollbar-width: none;
}

.dpc-demo__nav-item {
    flex: 0 0 auto;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #334155;
    padding: 0.4rem 0.65rem;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.dpc-demo__nav-item.is-active {
    background: #fff4ed;
    color: #c44a1a;
    box-shadow: 0 0 0 1px #fed7aa;
}

.dpc-demo__nav-item.is-muted {
    color: #94a3b8;
    cursor: default;
}

.dpc-demo__stage {
    position: relative;
    min-height: 20.5rem;
    padding: 0.9rem 1rem 4.8rem;
}

.dpc-demo__screen {
    display: none;
}

.dpc-demo__screen.is-on {
    display: block;
    animation: dpc-demo-in 0.45s ease;
}

@keyframes dpc-demo-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.dpc-demo__kicker {
    margin: 0;
    color: #c44a1a;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dpc-demo__screen h3 {
    margin: 0.15rem 0 0.75rem;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
}

.dpc-demo__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.dpc-demo__filters label,
.dpc-demo__ghost,
.dpc-demo__search {
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    background: #fff;
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
    color: #64748b;
}

.dpc-demo__filters label strong {
    display: block;
    color: #0f172a;
    font-size: 0.75rem;
}

.dpc-demo__filters label.is-hot,
.dpc-demo__table tr.is-hot {
    outline: 2px solid #e8792f;
    outline-offset: 1px;
    box-shadow: 0 0 0 5px rgb(232 121 47 / 0.18);
}

.dpc-demo__search,
.dpc-demo__ghost {
    border: 0;
    background: #e8792f;
    color: #fff;
    font-weight: 800;
    cursor: default;
}

.dpc-demo__ghost {
    background: #fff4ed;
    color: #c44a1a;
    border: 1px solid #c44a1a;
}

.dpc-demo__search.is-pulse {
    animation: dpc-demo-pulse 1.2s ease-in-out infinite;
}

@keyframes dpc-demo-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgb(232 121 47 / 0.45); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgb(232 121 47 / 0); }
}

.dpc-demo__kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

@media (min-width: 700px) {
    .dpc-demo__kpis { grid-template-columns: repeat(4, 1fr); }
}

.dpc-demo__kpi {
    border: 1px solid #ffedd5;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.55rem 0.65rem;
}

.dpc-demo__kpi span {
    display: block;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dpc-demo__kpi strong {
    display: block;
    margin-top: 0.15rem;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 900;
}

.dpc-demo__kpi small {
    color: #16a34a;
    font-size: 0.65rem;
    font-weight: 700;
}

.dpc-demo__bars { display: grid; gap: 0.45rem; }
.dpc-demo__bars--tall { margin-top: 0.6rem; }

.dpc-demo__bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 0.45rem;
    gap: 0.15rem 0.5rem;
    align-items: end;
}

.dpc-demo__bar span { font-size: 0.72rem; font-weight: 700; color: #334155; }
.dpc-demo__bar b { font-size: 0.72rem; color: #c44a1a; }
.dpc-demo__bar i {
    grid-column: 1 / -1;
    display: block;
    height: 0.45rem;
    border-radius: 999px;
    background: #ffe4c9;
    overflow: hidden;
}

.dpc-demo__bar i::after {
    content: "";
    display: block;
    width: var(--w, 50%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e8792f, #c44a1a);
    transform-origin: left;
    animation: dpc-demo-bar 0.8s ease;
}

@keyframes dpc-demo-bar {
    from { transform: scaleX(0); }
}

.dpc-demo__spark {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 4.2rem;
    margin: 0 0 0.8rem;
    padding: 0.4rem 0.5rem 0;
    border: 1px solid #ffedd5;
    border-radius: 0.75rem;
    background: #fff;
}

.dpc-demo__spark span {
    flex: 1;
    height: var(--h);
    border-radius: 0.25rem 0.25rem 0 0;
    background: #e8792f;
    animation: dpc-demo-bar 0.7s ease;
}

.dpc-demo__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
}

.dpc-demo__table th,
.dpc-demo__table td {
    padding: 0.4rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.dpc-demo__table th { color: #64748b; font-size: 0.62rem; text-transform: uppercase; }
.dpc-demo__table em { font-style: normal; font-weight: 800; color: #64748b; }
.dpc-demo__table em.ok { color: #15803d; }
.dpc-demo__table em.run { color: #c44a1a; }

.dpc-demo__chips,
.dpc-demo__pills,
.dpc-demo__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.7rem;
}

.dpc-demo__chips span,
.dpc-demo__pills span,
.dpc-demo__tabs span {
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
}

.dpc-demo__chips span.is-on,
.dpc-demo__tabs span.is-on {
    background: #e8792f;
    border-color: #e8792f;
    color: #fff;
}

.dpc-demo__pills span {
    background: #fff4ed;
    border-color: #fdba74;
    color: #c44a1a;
}

.dpc-demo__note {
    margin: 0.65rem 0 0;
    color: #64748b;
    font-size: 0.7rem;
}

.dpc-demo__compare {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    align-items: end;
    min-height: 8.5rem;
    padding: 0.5rem 0.2rem 0;
}

.dpc-demo__compare--two { grid-template-columns: repeat(2, 1fr); max-width: 18rem; }

.dpc-demo__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-height: 8rem;
    justify-content: flex-end;
}

.dpc-demo__col i {
    display: block;
    width: 2.4rem;
    height: var(--h);
    border-radius: 0.4rem 0.4rem 0 0;
    background: #e8792f;
    animation: dpc-demo-grow 0.75s ease;
}

.dpc-demo__col.is-a i { background: #16a34a; }
.dpc-demo__col.is-b i { background: #0284c7; }

@keyframes dpc-demo-grow {
    from { transform: scaleY(0); transform-origin: bottom; }
}

.dpc-demo__col b { font-size: 0.78rem; color: #0f172a; }
.dpc-demo__col small { color: #64748b; font-size: 0.65rem; }

.dpc-demo__pair {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

@media (min-width: 640px) {
    .dpc-demo__pair { grid-template-columns: 1fr 1fr; }
}

.dpc-demo__period {
    border-radius: 0.8rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.dpc-demo__period.is-a { border-color: #86efac; background: #f0fdf4; }
.dpc-demo__period.is-b { border-color: #7dd3fc; background: #f0f9ff; }
.dpc-demo__period p { margin: 0; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.dpc-demo__period strong { display: block; margin: 0.2rem 0; font-size: 1.25rem; }
.dpc-demo__period small { color: #64748b; }

.dpc-demo__guide {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    width: min(17.5rem, calc(100% - 1.4rem));
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 14px 36px rgb(15 23 42 / 0.16);
    border: 1px solid #fed7aa;
    overflow: hidden;
    z-index: 2;
}

.dpc-demo__guide-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
    background: #fff4ed;
}

.dpc-demo__guide-head span {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #e8792f;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
}

.dpc-demo__guide-head p {
    margin: 0;
    color: #c44a1a;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dpc-demo__guide-title {
    margin: 0.45rem 0.7rem 0.2rem;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
}

.dpc-demo__guide-body {
    margin: 0 0.7rem 0.5rem;
    color: #475569;
    font-size: 0.72rem;
    line-height: 1.4;
}

.dpc-demo__guide-bar {
    height: 0.22rem;
    background: #ffe4c9;
}

.dpc-demo__guide-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: #e8792f;
}

.dpc-demo__guide-bar i.is-run {
    animation: dpc-demo-progress var(--dps-demo-ms, 7200ms) linear;
}

@keyframes dpc-demo-progress {
    from { width: 0; }
    to { width: 100%; }
}

.dps-portal-demo__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1rem;
}

.dps-portal-demo__toggle,
.dps-portal-demo__cta {
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.dps-portal-demo__toggle {
    border: 1px solid #fdba74;
    background: #fff;
    color: #c44a1a;
    cursor: pointer;
}

.dps-portal-demo__cta {
    background: #e85d2a;
    color: #fff;
}

.dps-portal-demo__dots {
    display: flex;
    gap: 0.35rem;
}

.dps-portal-demo__dot {
    width: 0.55rem;
    height: 0.55rem;
    border: 0;
    border-radius: 999px;
    background: #fdba74;
    cursor: pointer;
    padding: 0;
}

.dps-portal-demo__dot.is-on { background: #c44a1a; transform: scale(1.2); }

.dps-portal-demo__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.dps-portal-demo__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #e85d2a;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.dps-portal-demo__download:hover {
    background: #c44a1a;
}

.dps-portal-demo__hint {
    margin: 0.55rem 0 0;
    text-align: center;
    color: #64748b;
    font-size: 0.72rem;
}

.dps-portal-demo__actions .dps-portal-demo__hint {
    margin: 0;
}

@media (max-width: 640px) {
    .dpc-demo__guide { position: static; width: auto; margin: 0 0.7rem 0.7rem; }
    .dpc-demo__stage { padding-bottom: 0.9rem; }
}
