/* =========================================================
   Tracking Forus – estilos del rediseño
   Los colores de marca (--brand*) los define tracking_comun.js
   según el parámetro ?sitio= de la URL.
   ========================================================= */

:root {
    --brand: #334155;
    --brand-strong: #334155;
    --brand-soft: rgba(51, 65, 85, 0.1);
    --brand-ring: rgba(51, 65, 85, 0.3);
    --brand-pattern: none;

    /* Mismo fondo que la versión anterior: las marcas de agua (_ma.svg) están
       diseñadas para verse sobre este tono casi blanco */
    --bg: #FAFBFE;
    --surface: #FFFFFF;
    /* Tarjetas semitransparentes para que se vea la marca de agua del fondo */
    --surface-card: rgba(255, 255, 255, 0.6);
    --surface-2: #F8FAFC;
    --text: #0F172A;
    --text-2: #334155;
    --muted: #475569;
    --subtle: #64748B;
    --border: #E2E8F0;
    --border-2: #EEF2F6;
    --track: #CBD5E1;

    --ok: #166534;
    --ok-bg: #DCFCE7;
    --danger: #B91C1C;
    --danger-bg: #FEE2E2;

    --radius-lg: 20px;
    --radius: 14px;
    --radius-sm: 12px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: var(--brand-strong);
}

img {
    max-width: 100%;
}

h1, h2, h3, p {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--brand-ring);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Estructura ---------- */

/* Marca de agua del sitio como fondo de página, igual que en la versión anterior:
   centrada, fija al hacer scroll y del tamaño del lado menor de la pantalla. */
.brand-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(100vw, 100vh);
    height: min(100vw, 100vh);
    transform: translate(-50%, -50%);
    z-index: -1;
    background-image: var(--brand-pattern);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.topbar {
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar-inner,
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}

.brand-mark img {
    display: block;
    max-height: 36px;
    width: auto;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    flex: none;
}

.container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 40px;
}

.site-footer {
    padding: 8px 16px 28px;
    text-align: center;
    font-size: 13px;
    color: var(--subtle);
}

@media (min-width: 768px) {
    .topbar-inner,
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .container {
        gap: 24px;
        padding-top: 32px;
        padding-bottom: 48px;
    }
}

/* ---------- Componentes base ---------- */

.stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .stack {
        gap: 24px;
    }
}

.card-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
}

@media (min-width: 768px) {
    .card {
        padding: 28px;
    }
}

.card-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-head .meta {
    font-size: 14px;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
    background: var(--brand-strong);
    color: #FFFFFF;
}

.btn-primary:hover {
    filter: brightness(1.08);
    color: #FFFFFF;
}

.btn-primary[disabled] {
    cursor: progress;
    filter: saturate(0.6);
}

.btn-ghost {
    background: #F1F5F9;
    color: var(--text);
}

.btn-ghost:hover {
    background: #E2E8F0;
    color: var(--text);
}

.btn-block {
    width: 100%;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    background: #F1F5F9;
}

.pill-link:hover {
    background: #E2E8F0;
    color: var(--text);
}

.icon-btn {
    width: 44px;
    padding: 0;
    justify-content: center;
}

.back-link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-strong);
}

.back-link:hover {
    text-decoration: underline;
}

.chip {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-strong);
    background: var(--brand-soft);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-strong);
    background: var(--brand-soft);
}

.status-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.status-pill.tone-ok {
    color: var(--ok);
    background: var(--ok-bg);
}

.status-pill.tone-danger {
    color: var(--danger);
    background: var(--danger-bg);
}

.alert-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    font-size: 14px;
    line-height: 1.5;
    color: #1E293B;
}

.alert-info svg {
    flex: none;
    margin-top: 2px;
    color: var(--brand-strong);
}

.discount-badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: var(--ok);
    background: var(--ok-bg);
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--brand-soft);
    border-top-color: var(--brand-strong);
    border-radius: 50%;
    animation: girar 0.8s linear infinite;
    flex: none;
}

.btn-primary .spinner {
    width: 18px;
    height: 18px;
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
}

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

.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #EEF2F6;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: brillo 1.3s infinite;
}

@keyframes brillo {
    to {
        transform: translateX(100%);
    }
}

/* ---------- Estados vacíos / error / carga ---------- */

.state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 40px 24px;
}

.state-card .state-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-strong);
    background: var(--brand-soft);
}

.state-card h2 {
    font-size: 19px;
    font-weight: 800;
}

.state-card p {
    max-width: 440px;
    color: var(--muted);
}

.state-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

/* ---------- Página de búsqueda ---------- */

.search-hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.search-hero h1 {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.search-hero .lead {
    font-size: 15px;
    color: var(--muted);
}

@media (min-width: 768px) {
    .search-hero h1 {
        font-size: 36px;
    }

    .search-hero .lead {
        font-size: 16px;
    }
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 640px;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.label-row label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-2);
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-strong);
    cursor: pointer;
}

.link-button:hover {
    text-decoration: underline;
}

.search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.input {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--track);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 16px;
    color: var(--text);
    background: var(--surface);
}

.input:focus {
    outline: none;
    border-color: var(--brand-strong);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.input[aria-invalid="true"] {
    border-color: var(--danger);
}

.search-row .btn {
    min-height: 52px;
    flex: 1 1 140px;
}

@media (min-width: 560px) {
    .search-row .btn {
        flex: 0 0 auto;
        min-width: 150px;
    }
}

.field-error {
    font-size: 13px;
    font-weight: 600;
    color: var(--danger);
}

.results-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.results-head h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.results-head span {
    font-size: 14px;
    color: var(--muted);
}

.envios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 16px;
}

.envio-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.envio-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.envio-card h3 {
    font-size: 18px;
    font-weight: 800;
}

.envio-card .envio-sub {
    font-size: 13px;
    color: var(--muted);
}

.mini-progress {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
}

.mini-progress span {
    height: 6px;
    border-radius: 3px;
    background: var(--border);
}

.mini-progress span.is-filled {
    background: var(--brand-strong);
}

.mini-progress.tone-ok span.is-filled {
    background: var(--ok);
}

.mini-progress.tone-danger span.is-filled {
    background: var(--danger);
}

.meta-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    font-size: 14px;
}

.meta-grid div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.meta-grid dt {
    color: var(--muted);
    font-size: 13px;
}

.meta-grid dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.meta-grid dd.is-muted {
    font-weight: 600;
    color: var(--subtle);
}

.meta-grid .span-2 {
    grid-column: 1 / -1;
}

.envio-card .btn {
    margin-top: auto;
}

/* ---------- Página de detalle ---------- */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-head-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-head h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .page-head h1 {
        font-size: 24px;
    }
}

.envio-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    max-width: 100%;
}

.envio-tabs a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-2);
    background: var(--surface);
}

.envio-tabs a:hover {
    border-color: var(--track);
}

.envio-tabs a[aria-current="page"] {
    border-color: var(--brand-strong);
    color: #FFFFFF;
    background: var(--brand-strong);
    font-weight: 700;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 640px;
}

.hero-text h2 {
    font-size: 27px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-text h2.tone-ok {
    color: var(--ok);
}

.hero-text h2.tone-danger {
    color: var(--danger);
}

.hero-text .updated {
    font-size: 14px;
    color: var(--muted);
}

.hero-text .received {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
}

@media (min-width: 768px) {
    .hero-text h2 {
        font-size: 34px;
    }

    .hero-text .updated {
        font-size: 15px;
    }
}

.date-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
}

.date-box .date-icon {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-strong);
    background: var(--surface);
    border: 1px solid var(--border);
}

.date-box .date-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.date-box .date-value {
    display: block;
    font-size: 17px;
    font-weight: 800;
}

/* Línea de tiempo: vertical en móvil, horizontal desde 900px */

.stepper {
    margin: 0;
    padding: 20px 0 0;
    list-style: none;
    border-top: 1px solid var(--border-2);
    display: flex;
    flex-direction: column;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 22px;
}

.step:last-child {
    padding-bottom: 4px;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 46px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: var(--border);
}

.step.is-done:not(:last-child)::after {
    background: var(--brand-strong);
}

.step-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--subtle);
    background: var(--surface);
    border: 2px solid var(--track);
}

.step.is-done .step-icon {
    border-color: transparent;
    color: var(--brand-strong);
    background: var(--brand-soft);
}

.step.is-current .step-icon {
    border-color: transparent;
    color: #FFFFFF;
    background: var(--brand-strong);
    box-shadow: 0 0 0 5px var(--brand-soft);
}

.step.is-current .step-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand-ring);
    animation: pulso 2.4s ease-in-out infinite;
    z-index: -1;
}

.step.is-current.tone-ok .step-icon {
    background: var(--ok);
    box-shadow: 0 0 0 5px var(--ok-bg);
}

.step.is-current.tone-danger .step-icon {
    background: var(--danger);
    box-shadow: 0 0 0 5px var(--danger-bg);
}

.step.is-current.tone-ok .step-icon::before,
.step.is-current.tone-danger .step-icon::before {
    display: none;
}

@keyframes pulso {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .step.is-current .step-icon::before,
    .skeleton::after,
    .spinner {
        animation: none;
    }
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 8px;
    min-width: 0;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
}

.step.is-current .step-title,
.step.is-done .step-title {
    font-weight: 700;
    color: var(--text);
}

.step-date {
    font-size: 13px;
    color: var(--subtle);
}

.step.is-current .step-date {
    font-weight: 600;
    color: var(--brand-strong);
}

.step.is-current.tone-ok .step-date {
    color: var(--ok);
}

.step.is-current.tone-danger .step-date {
    color: var(--danger);
}

.step-note {
    font-size: 13px;
    font-style: italic;
    color: var(--muted);
}

@media (min-width: 900px) {
    .stepper {
        padding-top: 28px;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 0 4px;
    }

    .step:last-child {
        padding-bottom: 0;
    }

    .step:not(:last-child)::after {
        top: 20px;
        bottom: auto;
        left: calc(50% + 30px);
        right: calc(-50% + 30px);
        width: auto;
        height: 3px;
    }

    .step-icon {
        width: 44px;
        height: 44px;
    }

    .step-text {
        padding-top: 0;
    }

    .step-title {
        font-size: 14px;
    }
}

/* Columnas de contenido */

.layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.layout-main {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.layout-side {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .layout,
    .layout-main,
    .layout-side {
        gap: 24px;
    }
}

.products {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Móvil: foto | nombre, con el precio debajo del nombre.
   Desde 560px: foto | nombre | precio */
.product {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--border-2);
    border-radius: 16px;
}

@media (min-width: 560px) {
    .product {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 16px;
    }
}

.product-thumb {
    flex: none;
    width: 88px;
    height: 88px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #F1F5F9;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--subtle);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb[disabled] {
    cursor: default;
}

@media (min-width: 768px) {
    .product-thumb {
        width: 104px;
        height: 104px;
    }
}

.product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.product-meta {
    font-size: 13px;
    color: var(--muted);
}

.product-price {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
}

.product-price .price-now {
    order: -1;
}

@media (min-width: 560px) {
    .product-price {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .product-price .price-now {
        order: 0;
    }
}

.price-old {
    font-size: 13px;
    color: var(--subtle);
    text-decoration: line-through;
}

.price-now {
    font-size: 19px;
    font-weight: 800;
}

.summary {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
    font-size: 15px;
}

.summary div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.summary dt {
    color: var(--muted);
}

.summary dd {
    margin: 0;
}

.summary .is-discount {
    font-weight: 600;
    color: var(--ok);
}

.summary .total {
    padding-top: 12px;
    border-top: 1px solid var(--border-2);
}

.summary .total dt {
    font-weight: 700;
    color: var(--text);
}

.summary .total dd {
    font-size: 20px;
    font-weight: 800;
}

.info-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
}

.info-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-row > svg {
    flex: none;
    margin-top: 2px;
    color: var(--subtle);
}

.info-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.info-row dt {
    color: var(--muted);
}

.info-row dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.info-list .meta-grid {
    padding-top: 14px;
    border-top: 1px solid var(--border-2);
}

.subscribe {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.subscribe-head .icon-tile {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-strong);
    background: var(--brand-soft);
}

.subscribe-head p {
    font-size: 13px;
    color: var(--muted);
}

.subscribe label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.actions-card {
    padding: 8px;
}

.actions-card .card-title {
    padding: 14px 14px 6px;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    padding: 10px 14px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    font: inherit;
    text-align: left;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}

a.action-row:hover {
    background: var(--surface-2);
    color: var(--text);
}

.action-row > svg:first-child {
    flex: none;
    color: var(--brand-strong);
}

.action-row .action-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.action-row .action-title {
    font-size: 14px;
    font-weight: 700;
}

.action-row .action-sub {
    font-size: 13px;
    color: var(--muted);
}

.action-row .chevron {
    flex: none;
    color: var(--subtle);
}

.action-row[aria-disabled="true"] {
    cursor: not-allowed;
    color: var(--subtle);
}

.action-row[aria-disabled="true"] > svg:first-child,
.action-row[aria-disabled="true"] .action-sub {
    color: var(--subtle);
}

/* ---------- Modal de imagen (dialog nativo) ---------- */

.modal {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
}

.modal::backdrop {
    background: rgba(15, 23, 42, 0.55);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 12px 20px;
    border-bottom: 1px solid var(--border-2);
}

.modal-head h2 {
    font-size: 16px;
    font-weight: 800;
}

.modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.modal-body img {
    display: block;
    max-height: 70vh;
    border-radius: var(--radius-sm);
}

.modal-body p {
    color: var(--muted);
    text-align: center;
}
