/* Estilos globales mínimos. La mayor parte del theming vive en RenewShipsTheme (MudBlazor). */
html, body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}
/* Reserva el espacio del scrollbar SIEMPRE: evita que aparezca/desaparezca al mover el mouse
   (lo que reflowaba el MudGrid y hacía titilar el menú lateral del panel del cliente). */
html { scrollbar-gutter: stable; overflow-y: scroll; }
body { overflow-x: clip; }

/* ---- Notificaciones in-app ---- */
/* Campana en la barra pública */
.rs-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; }
.rs-bell:hover { background: rgba(255,255,255,.12); }
.rs-bell-badge {
    position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    background: #C62828; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; border-radius: 999px;
    border: 2px solid var(--mud-palette-appbar-background, #2A3F3C);
}
/* Badge en el menú lateral del panel */
.rs-navlink-badge { display: inline-flex; align-items: center; gap: .5rem; }
.rs-badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
    padding: 0 6px; background: #C62828; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px;
}
/* Menú lateral del panel del cliente: fijo al hacer scroll, sin parpadeo. */
.rs-account-menu { position: sticky; top: 88px; }

/* Lista de notificaciones del usuario */
.rs-notif-list { display: flex; flex-direction: column; gap: .6rem; }
.rs-notif {
    display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem;
    border: 1px solid var(--rs-card-border, #eee3d3); border-radius: 12px; background: var(--rs-card-bg, #fff);
}
.rs-notif.is-unread { border-left: 4px solid var(--mud-palette-primary, #2A3F3C); background: #faf6f0; }
.rs-notif-main { flex: 1 1 auto; min-width: 0; }
.rs-notif-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.rs-notif-dot { width: 9px; height: 9px; border-radius: 50%; background: #C62828; flex: 0 0 auto; }
.rs-notif-subject { font-weight: 700; color: var(--rs-text, #2b2b2b); }
.rs-notif.is-unread .rs-notif-subject { font-weight: 800; }
.rs-notif-date { color: var(--rs-muted, #8a8175); font-size: .8rem; margin-left: auto; }
.rs-notif-preview { color: var(--rs-muted, #6b6255); font-size: .9rem; margin-top: .25rem; overflow: hidden; text-overflow: ellipsis; }
.rs-notif-actions { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.rs-btn-sm { padding: .35rem .8rem; font-size: .85rem; text-decoration: none; }
@media (max-width: 599px) {
    .rs-notif { flex-direction: column; align-items: stretch; }
    .rs-notif-actions { justify-content: flex-end; }
}
/* textarea del formulario SSR (usa el mismo look que los inputs de .rs-form) */
.rs-form textarea {
    width: 100%; box-sizing: border-box; padding: .55rem .7rem; font: inherit;
    border: 1px solid var(--rs-card-border, #ccc); border-radius: 8px; background: var(--rs-input-bg, #fff);
    color: inherit; resize: vertical;
}

/* ---- Comprobante de orden imprimible (PrintLayout) ---- */
.rs-print-page { max-width: 800px; margin: 0 auto; padding: 24px 16px; color: #1b1b1b; }
.rs-receipt-actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.rs-receipt {
    border: 1px solid #e6ddcf; border-radius: 12px; padding: 28px;
    background: #fff; color: #1b1b1b; font-size: 14px; line-height: 1.5;
}
.rs-receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 3px solid #2A3F3C; padding-bottom: 14px; margin-bottom: 18px; }
.rs-receipt-logo { height: 54px; width: auto; }
.rs-receipt-head-r { text-align: right; }
.rs-receipt-head-r h1 { margin: 0 0 4px; font-size: 20px; color: #2A3F3C; }
.rs-receipt-no { font-size: 18px; font-weight: 800; color: #BA9153; }
.rs-receipt-date, .rs-receipt-status { font-size: 12px; color: #555; }
.rs-receipt h2 { font-size: 15px; color: #2A3F3C; margin: 20px 0 8px; border-bottom: 1px solid #eee3d3; padding-bottom: 4px; }
.rs-receipt-summary { width: 100%; border-collapse: collapse; margin: 8px 0; }
.rs-receipt-summary td { padding: 5px 0; }
.rs-receipt-summary td:first-child { color: #555; }
.rs-receipt-summary td:last-child { text-align: right; font-weight: 600; }
.rs-receipt-total td { border-top: 2px solid #2A3F3C; padding-top: 8px !important; font-size: 17px; }
.rs-receipt-total td:last-child { color: #2A3F3C; font-weight: 800; }
.rs-receipt-addrs { display: flex; gap: 14px; margin: 18px 0; flex-wrap: wrap; }
.rs-receipt-addr { flex: 1 1 200px; border: 1px solid #eee3d3; border-radius: 8px; padding: 12px; }
.rs-receipt-addr-t { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #8a8175; margin-bottom: 4px; font-weight: 700; }
.rs-receipt-table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.rs-receipt-table th, .rs-receipt-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #eee3d3; font-size: 13px; }
.rs-receipt-table th { background: #faf6f0; color: #555; font-weight: 700; }
.rs-receipt-foot { margin-top: 22px; border-top: 1px solid #eee3d3; padding-top: 12px; font-size: 12px; color: #777; text-align: center; }
.rs-receipt-foot p { margin: 2px 0; }

@media print {
    .rs-receipt-actions { display: none !important; }
    .rs-print-page { max-width: none; padding: 0; }
    .rs-receipt { border: none; padding: 0; }
    @page { margin: 14mm; }
}

/* Encabezado de documentos (comprobante de orden, etc.). */
.rs-doc-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.rs-doc-logo { height: 56px; width: auto; }

/* Logo de marca en el navbar (chip blanco para que el logo verde resalte). */
.rs-brand { display: flex; align-items: center; text-decoration: none; color: inherit; }
.rs-brand-logo {
    background: #fff; border-radius: 8px; padding: 3px 5px;
    display: inline-flex; align-items: center; line-height: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.rs-brand-logo img { height: 34px; width: auto; display: block; }
@media (max-width: 600px) {
    .rs-brand .mud-typography { display: none; } /* en móvil, solo el logo */
}

/* Switch de idioma con banderas (OFF=EN/USA, ON=ES/México). */
.rs-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 92px;
    height: 32px;
    margin: 0 10px;
    border-radius: 999px;
    background: linear-gradient(#eef1f3, #dfe4e8);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.3);
    text-decoration: none;
    flex: 0 0 auto;
}
.rs-lang-label {
    position: absolute;
    font-size: .72rem;
    font-weight: 800;
    color: #8a8f96;
    z-index: 1;
    letter-spacing: .5px;
}
.rs-lang-en { left: 12px; }
.rs-lang-es { right: 12px; }
.rs-lang.is-en .rs-lang-es,
.rs-lang.is-es .rs-lang-en { color: #2A3F3C; }   /* resalta el idioma al que se puede cambiar */
.rs-lang-knob {
    position: absolute;
    top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.45);
    background-color: #ccc;             /* fallback si la bandera no carga */
    background-size: cover;
    background-position: center;
    transition: left .25s ease;
    z-index: 2;
}
.rs-lang.is-en .rs-lang-knob { left: 2px;  background-image: url('https://flagcdn.com/w80/us.png'); }
.rs-lang.is-es .rs-lang-knob { left: 60px; background-image: url('https://flagcdn.com/w80/mx.png'); }

/* Páginas públicas de contenido CMS (About, Privacy, Conditions, Shipping). */
.rs-cms-title {
    color: var(--mud-palette-text-primary, #2A3F3C);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 1.2rem;
    line-height: 1.15;
}
.rs-cms-body {
    color: var(--mud-palette-text-primary, #2b2b2b);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 760px;
}
.rs-cms-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.8rem 0 .6rem;
    color: var(--mud-palette-text-primary, #2A3F3C);
}
.rs-cms-body p { margin: 0 0 1rem; }
.rs-cms-body ul { margin: 0 0 1rem 1.2rem; padding: 0; }
.rs-cms-body li { margin: .3rem 0; }
.rs-cms-body a {
    color: var(--mud-palette-primary, #2A3F3C);
    text-decoration: underline;
}

/* ===== Guía de embalaje (infografía de precaución) ===== */
.rs-packguide {
    margin: 0 0 1.25rem;
    border: 0;
    background: transparent;
    overflow: visible;
}

/* --- Disparador tipo panel-botón (Cotizar / Checkout) --- */
.rs-packguide-trigger,
.rs-packguide-headbar {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    text-align: left;
    font-family: inherit;
    padding: .9rem 1.15rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff4de 0%, #ffe9c7 100%);
    border: 1px solid #f3d9a6;
    box-shadow: 0 2px 10px rgba(197, 124, 0, .10);
    user-select: none;
}
.rs-packguide-trigger {
    cursor: pointer;
    list-style: none;
    transition: box-shadow .2s ease, transform .05s ease, background .2s ease;
}
.rs-packguide-trigger::-webkit-details-marker { display: none; }
.rs-packguide-trigger:hover {
    background: linear-gradient(135deg, #fff0d0 0%, #ffe1b3 100%);
    box-shadow: 0 4px 16px rgba(197, 124, 0, .18);
}
.rs-packguide-trigger:active { transform: translateY(1px); }

.rs-packguide-warnicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffc960, #f5a623);
    color: #fff;
    font-size: 1.25rem;
    flex: 0 0 auto;
    box-shadow: 0 2px 6px rgba(245, 166, 35, .5);
}
.rs-packguide-triggertxt { display: flex; flex-direction: column; flex: 1 1 auto; line-height: 1.2; }
.rs-packguide-htext { font-weight: 800; color: #a25f00; font-size: .9rem; letter-spacing: .3px; }
.rs-packguide-hsub { font-size: .78rem; color: #b98a3d; font-weight: 600; margin-top: 2px; }
.rs-packguide-chev {
    font-size: 1.5rem;
    color: #c58a2e;
    flex: 0 0 auto;
    line-height: 1;
    font-weight: 700;
}

/* --- Popup modal (Cotizar / Checkout) con <dialog> nativo (top layer) --- */
.rs-pg-modal { margin: 0 0 1.25rem; }
.rs-pg-dialog2 {
    position: fixed;
    inset: 0;
    margin: auto;              /* centra en ambos ejes dentro de la top layer */
    width: min(1040px, calc(100vw - 2.4rem));
    height: fit-content;
    max-height: 88vh;
    padding: 0;
    border: none;
    border-radius: 18px;
    background: #fffdf8;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    overflow: auto;
}
.rs-pg-dialog2::backdrop {
    background: rgba(20, 25, 24, .55);
    backdrop-filter: blur(2px);
}
.rs-pg-dialog2[open] { animation: rsPgIn .22s ease; }
.rs-pg-dialoginner { padding: 1.4rem 1.5rem 1.7rem; }
@keyframes rsPgIn {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.rs-pg-dialoghead {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .3rem;
}
.rs-pg-dialogtitle {
    flex: 1 1 auto;
    font-weight: 800;
    color: #a25f00;
    font-size: 1rem;
    letter-spacing: .3px;
}
.rs-pg-close {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: #8a6a2e;
    background: #f3e6cd;
    cursor: pointer;
    transition: background .15s ease;
}
.rs-pg-close:hover { background: #e9d5ad; }
.rs-pg-dialogintro { margin: 0 0 1.1rem; color: #6b5b3a; font-size: .9rem; }

/* --- Contenedor de las cards --- */
.rs-packguide-inner {
    padding: 1.2rem;
    background: #fffdf8;
    border: 1px solid #f3e6cd;
    border-top: 0;
    border-radius: 0 0 14px 14px;
}
.rs-packguide--static .rs-packguide-inner {
    border-top: 1px solid #f3e6cd;
    border-radius: 14px;
    margin-top: .6rem;
}
.rs-packguide-headbar { cursor: default; }

.rs-packguide-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .85rem;
}

/* --- Card infográfica --- */
.rs-pcard {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem .85rem 1.1rem;
    text-align: center;
    border: 1px solid #eee3d3;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.rs-pcard::before {   /* barra de acento superior */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--pc-accent, #f5a623);
}
.rs-pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
.rs-pcard-step {
    position: absolute;
    top: 10px; right: 10px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--pc-accent, #f5a623);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.rs-pcard-icon {
    width: 58px; height: 58px;
    margin: 0 auto .7rem;
    border-radius: 50%;
    background: var(--pc-soft, #fff1d9);
    color: var(--pc-accent, #c67c00);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 0 0 6px var(--pc-ring, rgba(245,166,35,.12));
}
.rs-pcard-title {
    font-weight: 800;
    color: var(--pc-accent, #c67c00);
    font-size: .8rem;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: .5rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}
.rs-pcard-body { font-size: .82rem; line-height: 1.55; color: #5f5340; }

/* Paleta por card (acento / relleno del icono / anillo). */
.rs-pcard--measure  { --pc-accent:#e0574f; --pc-soft:#fdeae8; --pc-ring:rgba(224,87,79,.12); }
.rs-pcard--pack     { --pc-accent:#d99000; --pc-soft:#fdf3d9; --pc-ring:rgba(217,144,0,.12); }
.rs-pcard--address  { --pc-accent:#2f9e7d; --pc-soft:#e3f5ee; --pc-ring:rgba(47,158,125,.12); }
.rs-pcard--restrict { --pc-accent:#d64545; --pc-soft:#fce8e8; --pc-ring:rgba(214,69,69,.12); }
.rs-pcard--capacity { --pc-accent:#3b7dd8; --pc-soft:#e6f0fc; --pc-ring:rgba(59,125,216,.12); }

/* Responsive: menos columnas en pantallas chicas. */
@media (max-width: 960px) {
    .rs-packguide-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .rs-packguide-cards { grid-template-columns: 1fr; }
}

/* ===== Checkout en cards con íconos ===== */
.rs-co-card {
    background: var(--rs-card-bg, #fff);
    border: 1px solid var(--rs-card-border, #eee3d3);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.rs-co-head {
    display: flex; align-items: center; gap: .6rem;
    padding: .85rem 1.15rem;
    background: color-mix(in srgb, var(--mud-palette-primary, #2A3F3C) 6%, transparent);
    border-bottom: 1px solid var(--rs-card-border, #eee3d3);
    font-weight: 700; color: var(--rs-heading, #2A3F3C);
}
.rs-co-head .mud-icon-root { color: var(--mud-palette-primary, #2A3F3C); }
.rs-co-body { padding: 1.1rem 1.15rem 1.25rem; }

/* Bloque de pago: total grande + botón */
.rs-co-paycard .rs-check { display: block; margin: .2rem 0; }
.rs-co-payrow {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    margin-top: 1rem; padding: 1rem 1.15rem;
    border-top: 1px dashed var(--rs-card-border, #eee3d3);
}
.rs-co-paycard { padding: 1.1rem 1.15rem .4rem; }
.rs-co-paytotal { display: flex; flex-direction: column; }
.rs-co-paylabel { font-size: .8rem; color: var(--rs-subtext, #6b7772); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.rs-co-payamount { font-size: 2rem; font-weight: 800; color: var(--rs-heading, #2A3F3C); line-height: 1.1; }
.rs-co-paybtn { font-size: 1.05rem; padding: .8rem 2rem; }

/* Inputs obligatorios vacíos tras intentar enviar */
input.rs-invalid,
.rs-field input.rs-invalid {
    border-color: #d64545 !important;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, .15);
    background: color-mix(in srgb, #d64545 6%, transparent);
}

/* Radios de formato de label (alineados, tipo tarjeta seleccionable) */
.rs-radiogroup { display: flex; flex-direction: column; gap: .55rem; }
.rs-radio {
    display: flex; align-items: center; gap: .6rem;
    cursor: pointer; font-weight: 500;
    color: var(--rs-heading, #2A3F3C);
    padding: .55rem .8rem;
    border: 1px solid var(--rs-card-border, #eee3d3);
    border-radius: 10px;
    transition: border-color .15s ease, background .15s ease;
}
.rs-radio:hover { border-color: var(--mud-palette-primary, #2A3F3C); }
.rs-radio input[type="radio"] {
    width: 18px; height: 18px; margin: 0; flex: 0 0 auto;
    accent-color: var(--mud-palette-primary, #2A3F3C); cursor: pointer;
}
.rs-radio:has(input:checked) {
    border-color: var(--mud-palette-primary, #2A3F3C);
    background: color-mix(in srgb, var(--mud-palette-primary, #2A3F3C) 7%, transparent);
    font-weight: 700;
}

/* Estado "ocupado" de un formulario (deshabilita interacción + spinner en el botón). */
.rs-form-busy { pointer-events: none; opacity: .7; }

/* Overlay que bloquea toda la página mientras se procesa (pago / reintento). */
.rs-page-busy {
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(20, 25, 24, .45);
    backdrop-filter: blur(1px);
    display: flex; align-items: center; justify-content: center;
}
.rs-page-busy-spin {
    width: 48px; height: 48px; border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    animation: rsspin .7s linear infinite;
}
.rs-spinner {
    display: inline-block; width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
    border-radius: 50%; animation: rsspin .7s linear infinite; vertical-align: -2px;
}
.rs-spinner--dark { border-color: rgba(42,63,60,.35); border-top-color: #2A3F3C; }
@keyframes rsspin { to { transform: rotate(360deg); } }

/* ===== Resumen del checkout (sticky + total destacado) ===== */
.rs-checkout-summary { position: sticky; top: 88px; }
.rs-checkout-total { padding-top: .6rem; border-top: 1px solid var(--rs-card-border, #eee3d3); }
.rs-checkout-total > span { color: var(--rs-subtext, #6b7772); font-weight: 600; }
.rs-checkout-total > strong { font-size: 1.55rem; font-weight: 800; color: var(--rs-heading, #2A3F3C); }

/* Lista de paquetes cotizados en el resumen */
.rs-sum-pkgs {
    margin: .75rem 0 .25rem;
    padding: .6rem .75rem;
    background: color-mix(in srgb, var(--mud-palette-primary, #2A3F3C) 5%, transparent);
    border: 1px solid var(--rs-card-border, #eee3d3);
    border-radius: 10px;
}
.rs-sum-pkgs-title {
    font-size: .72rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
    color: var(--rs-subtext, #6b7772); margin-bottom: .4rem;
}
.rs-sum-pkg {
    display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
    padding: .25rem 0; font-size: .85rem;
    border-top: 1px dashed var(--rs-card-border, #eee3d3);
}
.rs-sum-pkg:first-of-type { border-top: 0; }
.rs-sum-pkg-name { color: var(--rs-subtext, #6b7772); }
.rs-sum-pkg-dims { color: var(--rs-heading, #2A3F3C); font-weight: 600; white-space: nowrap; }

/* ===== Cards de tarifas en Cotizar ===== */
/* Resultados en rejilla responsiva: aprovechan el ancho en PC, apilan en móvil. */
.rs-ratecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .85rem; }

/* ---- Wizard de cotización (pasos horizontales) ---- */
.rs-wizard { max-width: 960px; margin: 0 auto; }
.rs-wsteps { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 0 1.25rem; }
.rs-wstep { display: flex; align-items: center; gap: .5rem; color: var(--rs-muted, #8a8175); font-weight: 600; }
.rs-wstep-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--rs-card-border, #eee3d3); color: var(--rs-muted, #8a8175);
    font-size: .9rem; transition: background .2s, color .2s;
}
.rs-wstep-lbl { font-size: .92rem; }
.rs-wstep.active .rs-wstep-num { background: var(--mud-palette-primary, #7a4d00); color: #fff; }
.rs-wstep.active { color: var(--rs-text, #2b2b2b); }
.rs-wstep.done .rs-wstep-num { background: var(--mud-palette-success, #2e7d32); color: #fff; }
.rs-wstep-sep { flex: 0 1 60px; height: 2px; background: var(--rs-card-border, #eee3d3); }
@media (max-width: 599px) {
    .rs-wstep-lbl { display: none; }
    .rs-wstep-sep { flex-basis: 32px; }
}

/* Título del paso actual */
.rs-wtitle { text-align: center; margin: 0 0 1.5rem; }
.rs-wtitle-eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--mud-palette-primary, #7a4d00);
    background: color-mix(in srgb, var(--mud-palette-primary, #7a4d00) 12%, transparent);
    padding: .2rem .6rem; border-radius: 999px;
}
.rs-wtitle-h { margin: .5rem 0 .25rem; font-size: 1.55rem; font-weight: 700; color: var(--rs-text, #2b2b2b); }
.rs-wtitle-desc { margin: 0; color: var(--rs-muted, #8a8175); font-size: .95rem; }

/* Resumen de la cotización (paso 3) */
.rs-qsummary {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem 1rem;
    padding: 1rem 1.15rem; border-radius: 14px;
    background: var(--rs-card-bg, #fbf7f0); border: 1px solid var(--rs-card-border, #eee3d3);
}
.rs-qsummary-item { display: flex; flex-direction: column; gap: .15rem; min-width: 140px; }
.rs-qsummary-lbl { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: var(--rs-muted, #8a8175); text-transform: uppercase; letter-spacing: .04em; }
.rs-qsummary-val { font-size: .98rem; font-weight: 600; color: var(--rs-text, #2b2b2b); }
.rs-qsummary-arrow { display: flex; align-items: center; color: var(--rs-muted, #8a8175); font-size: 1.2rem; }
.rs-qsummary-pkgs { flex: 1 1 100%; margin-top: .35rem; padding-top: .6rem; border-top: 1px dashed var(--rs-card-border, #eee3d3); }
@media (max-width: 599px) {
    .rs-qsummary-arrow { display: none; }
    .rs-qsummary-item { flex-basis: 100%; }
}

/* Paquetes en rejilla: dos columnas en pantallas anchas. */
.rs-pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .75rem; }

/* Dimensiones (L/W/H/peso): fila de 4 inputs livianos (HTML nativo, sin componentes pesados). */
.rs-dims { display: flex; gap: .5rem; }
.rs-dims .rs-field { flex: 1 1 0; min-width: 0; margin-bottom: 0; }
.rs-statehelper { color: var(--rs-muted, #8a8175); font-size: .78rem; }
.rs-ratecard {
    position: relative;
    background: var(--rs-card-bg, #fff);
    border: 1px solid var(--rs-card-border, #eee3d3);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    overflow: hidden;
}
.rs-ratecard::before {
    content: "";
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 5px;
    background: var(--rc-accent, #BA9153);
}
.rs-ratecard:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,.12);
    border-color: var(--rc-accent, #BA9153);
}
.rs-ratecard.rc-cheap  { --rc-accent: #2f9e7d; }
.rs-ratecard.rc-fast   { --rc-accent: #3b7dd8; }
.rs-ratecard.rc-value  { --rc-accent: #b7791f; }

.rs-ratecard-top { display: flex; align-items: center; gap: .75rem; }
.rs-ratecard-icon {
    width: 42px; height: 42px; flex: 0 0 auto;
    border-radius: 10px;
    background: color-mix(in srgb, var(--rc-accent, #BA9153) 15%, transparent);
    color: var(--rc-accent, #BA9153);
    display: flex; align-items: center; justify-content: center;
}
.rs-ratecard-titles { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.rs-ratecard-name { font-weight: 700; color: var(--rs-heading, #2A3F3C); font-size: 1rem; }
.rs-ratecard-eta {
    display: inline-flex; align-items: center; gap: .25rem;
    color: var(--rs-subtext, #6b7772); font-size: .8rem; margin-top: 1px;
}
.rs-ratecard-eta .mud-icon-root { font-size: .95rem; }
.rs-ratecard-badge {
    flex: 0 0 auto;
    font-size: .68rem; font-weight: 800; letter-spacing: .3px;
    text-transform: uppercase;
    padding: .25rem .55rem; border-radius: 999px;
    color: #fff; background: var(--rc-accent, #BA9153);
}
.rs-ratecard-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: .85rem;
}
.rs-ratecard-price { font-size: 1.5rem; font-weight: 800; color: var(--rs-heading, #2A3F3C); }
.rs-ratecard-buy {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--mud-palette-primary, #2A3F3C); color: #fff;
    text-decoration: none; font-weight: 700; font-size: .9rem;
    padding: .55rem 1.1rem; border-radius: 999px;
    transition: filter .15s ease, transform .05s ease;
}
.rs-ratecard-buy:hover { filter: brightness(1.12); }
.rs-ratecard-buy:active { transform: translateY(1px); }

/* Desplegable de Google Places Autocomplete (.pac-container).
   Google lo inyecta en el <body> con z-index 1000, que queda por debajo de las capas
   de MudBlazor y no se ve. Se fuerza por encima y se estiliza para ambos temas. */
.pac-container {
    z-index: 100000 !important;
    background: #ffffff;
    border: 1px solid #e6ddc9;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,.20);
    margin-top: 2px;
    font-family: inherit;
    overflow: hidden;
}
.pac-item {
    padding: .5rem .75rem;
    cursor: pointer;
    color: #2A3F3C;
    border-top: 1px solid #f2ece0;
}
.pac-item:first-child { border-top: 0; }
.pac-item:hover,
.pac-item-selected { background: #f6f1e7; }
.pac-item-query { color: #2A3F3C; font-weight: 600; }
.pac-matched { font-weight: 800; }
.pac-icon { margin-right: .4rem; }

/* Navbar responsive: hamburguesa en móvil (truco CSS con checkbox, sin JS). */
.rs-nav { position: relative; display: flex; align-items: center; }
.rs-nav-checkbox { display: none; }
.rs-nav-hamburger { display: none; cursor: pointer; align-items: center; }
.rs-nav-links { display: flex; align-items: center; }

@media (max-width: 960px) {
    .rs-nav-hamburger { display: inline-flex; }
    .rs-nav-links {
        display: none;
        position: absolute; top: 100%; right: 0;
        flex-direction: column; align-items: stretch;
        min-width: 220px; padding: .5rem;
        background: #2A3F3C; border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 26px rgba(0,0,0,.35); z-index: 1500;
    }
    .rs-nav-checkbox:checked ~ .rs-nav-links { display: flex; }
    .rs-nav-links .mud-button-root,
    .rs-nav-links form,
    .rs-nav-links .rs-linkbtn {
        width: 100%; justify-content: flex-start; text-align: left; margin: 2px 0;
    }
    .rs-nav-links .rs-linkbtn { color: #fff; padding: .6rem .75rem; }
}

/* Carrusel a todo el ancho (banners del home). */
.rs-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: #141D1B;
}
.rs-carousel-track { position: relative; }
.rs-carousel-slide { display: none; position: relative; }
.rs-carousel-track > .rs-carousel-slide:first-child { display: block; } /* fallback antes de JS */

/* Efectos de entrada de cada banner (data-fx). */
.rs-fx-Fade { animation: rsFxFade .6s ease; }
.rs-fx-FromLeft { animation: rsFxLeft .6s ease; }
.rs-fx-FromRight { animation: rsFxRight .6s ease; }
.rs-fx-FromTop { animation: rsFxTop .6s ease; }
.rs-fx-FromBottom { animation: rsFxBottom .6s ease; }
.rs-fx-Center { animation: rsFxCenter .6s ease; }
@keyframes rsFxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rsFxLeft { from { opacity: .2; transform: translateX(-100%); } to { opacity: 1; transform: none; } }
@keyframes rsFxRight { from { opacity: .2; transform: translateX(100%); } to { opacity: 1; transform: none; } }
@keyframes rsFxTop { from { opacity: .2; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes rsFxBottom { from { opacity: .2; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes rsFxCenter { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
.rs-carousel-slide img {
    width: 100%;
    height: auto;          /* escala al ancho mostrando la imagen completa, sin recorte */
    display: block;
}
.rs-carousel-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1rem 1.5rem; color: #fff; font-size: 1.1rem; font-weight: 600;
    background: linear-gradient(transparent, rgba(20,29,27,.75));
}
.rs-carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.35); color: #fff; border: none; cursor: pointer;
    width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
}
.rs-carousel-nav:hover { background: rgba(0,0,0,.6); }
.rs-carousel-prev { left: 16px; }
.rs-carousel-next { right: 16px; }
.rs-carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; }
.rs-carousel-dots .rs-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.5); margin: 0 4px; cursor: pointer;
}
.rs-carousel-dots .rs-dot.active { background: #BA9153; }
/* Tokens temáticos de la landing (claro por defecto; .rs-dark los redefine). */
:root {
    --rs-white-bg: #ffffff;
    --rs-beige-bg: #E9D7C2;
    --rs-heading: #2A3F3C;
    --rs-subtext: #44524E;
    --rs-card-bg: #ffffff;
    --rs-card-border: #EFEAE0;
    --rs-row-border: #F0ECE3;
    --rs-pill-bg: #E9D7C2;
    --rs-pill-text: #877867;
    --rs-badge-bg: #ffffff;
}
.rs-dark {
    --rs-white-bg: #131a18;
    --rs-beige-bg: #202a26;
    --rs-heading: #e9f0ec;
    --rs-subtext: #aebbb5;
    --rs-card-bg: #1a2320;
    --rs-card-border: #31403a;
    --rs-row-border: #31403a;
    --rs-pill-bg: #2c3a34;
    --rs-pill-text: #d8c4a8;
    --rs-badge-bg: #1a2320;
}

/* Bandas full-width del home (rompen el contenedor, se mantienen responsivas). */
.rs-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 3.5rem 1rem;
}
.rs-band-inner { max-width: 1200px; margin: 0 auto; }
.rs-band-white { background: var(--rs-white-bg); }
.rs-band-beige { background: var(--rs-beige-bg); }
.rs-band-green { background: #2A3F3C; }

/* Barra de confianza */
.rs-trust-band { padding: 1.1rem 1rem; }
.rs-trust { display: flex; justify-content: space-around; gap: 1rem 1.5rem; flex-wrap: wrap; }
.rs-trust-item { display: flex; align-items: center; gap: .5rem; color: var(--rs-heading); font-weight: 600; }

/* Propuesta de valor + mockup */
.rs-value { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.rs-pill { display: inline-block; background: var(--rs-pill-bg); color: var(--rs-pill-text); padding: .35rem .9rem; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.rs-checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.rs-checks li { position: relative; padding-left: 1.6rem; margin: .55rem 0; color: var(--rs-subtext); font-size: 1.02rem; }
.rs-checks li::before { content: '✓'; position: absolute; left: 0; color: #BA9153; font-weight: 800; }

.rs-mock { background: var(--rs-card-bg); border: 1px solid var(--rs-card-border); border-radius: 16px; box-shadow: 0 18px 50px rgba(42,63,60,.15); padding: 1.25rem; max-width: 380px; margin: 0 auto; }
.rs-mock-title { font-weight: 700; color: var(--rs-heading); margin-bottom: .75rem; }
.rs-mock-row { display: flex; align-items: center; gap: .6rem; padding: .7rem; border: 1px solid var(--rs-row-border); border-radius: 10px; margin-bottom: .6rem; }
.rs-mock-tag { font-size: .68rem; font-weight: 700; padding: .22rem .5rem; border-radius: 6px; color: #fff; white-space: nowrap; }
.rs-tag-cheap { background: #2E7D32; }
.rs-tag-fast { background: #BA9153; }
.rs-tag-value { background: #44524E; }
.rs-mock-name { flex: 1; color: var(--rs-subtext); font-size: .9rem; }
.rs-mock-price { font-weight: 700; color: var(--rs-heading); }
.rs-mock-cta { margin-top: .4rem; background: #2A3F3C; color: #fff; text-align: center; padding: .7rem; border-radius: 10px; font-weight: 600; }

/* Banda de descuento */
.rs-discount { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.rs-discount-num { font-size: 1.6rem; color: #E9D7C2; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.rs-discount-num strong { font-size: 3.6rem; color: #fff; }
.rs-discount-text { flex: 1; min-width: 280px; }

/* Newsletter (imagen de fondo con overlay verde para legibilidad) */
.rs-newsletter {
    background: linear-gradient(rgba(20,29,27,.78), rgba(42,63,60,.82)), url('/images/newsletters.png') center / cover no-repeat;
}

/* Sección Conócenos */
.rs-conocenos-img { width: 100%; border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.18); display: block; }
.rs-news-form { display: flex; max-width: 480px; margin: 0 auto; gap: .5rem; }
.rs-news-form input { flex: 1; padding: .8rem 1rem; border: none; border-radius: 999px; font-size: 1rem; outline: none; }
.rs-news-form button { background: #BA9153; color: #fff; border: none; border-radius: 999px; padding: .8rem 1.5rem; font-weight: 700; cursor: pointer; }
.rs-news-form button:hover { background: #a67f45; }

@media (max-width: 900px) {
    .rs-value { grid-template-columns: 1fr; }
    .rs-news-form { flex-direction: column; }
    .rs-news-form input, .rs-news-form button { border-radius: 10px; }
}

/* Formularios de autenticación (SSR). */
.rs-form { display: flex; flex-direction: column; gap: 1rem; }
.rs-field { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 0; min-width: 0; margin-bottom: .5rem; }
.rs-field label { font-size: .85rem; color: #44524E; font-weight: 600; }
.rs-field input, .rs-field select {
    width: 100%;
    box-sizing: border-box;
    padding: .6rem .75rem;
    border: 1px solid #E9D7C2;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}
/* Radios y checkboxes NO deben tomar el ancho completo del formulario (si no, se ven gigantes
   y descuadran su etiqueta, como en el selector de destinatarios de notificaciones). */
.rs-field input[type="radio"], .rs-field input[type="checkbox"],
.rs-check input[type="radio"], .rs-check input[type="checkbox"] {
    width: auto; box-sizing: content-box; padding: 0; margin: 0; flex: 0 0 auto;
}
/* Grupo de opciones (radios) apilado y alineado. */
.rs-radios { display: flex; flex-direction: column; gap: .4rem; }
.rs-radios .rs-check { justify-content: flex-start; }

/* Filas de campos (Mes/Año/CVV, Estado/ZIP): reparten el ancho sin desbordar. */
.d-flex.gap-3 > .rs-field { min-width: 0; }
.rs-field input:focus { border-color: #BA9153; box-shadow: 0 0 0 2px rgba(186,145,83,.2); }
.rs-select {
    padding: .55rem .75rem;
    border: 1px solid #E9D7C2;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #111;
    width: 100%;
    outline: none;
}
.rs-select:focus { border-color: #BA9153; box-shadow: 0 0 0 2px rgba(186,145,83,.2); }
.rs-check { font-size: .9rem; color: #44524E; display: flex; align-items: center; gap: .4rem; }
.rs-btn {
    background: #2A3F3C; color: #fff; border: none; border-radius: 8px;
    padding: .7rem 1rem; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.rs-btn:hover { background: #44524E; }
.rs-linkbtn {
    background: none; border: none; color: inherit; cursor: pointer;
    font: inherit; padding: .5rem .75rem; opacity: .9;
}
.rs-linkbtn:hover { opacity: 1; text-decoration: underline; }

/* Menú lateral del admin (fondo verde oscuro): forzar texto claro en normal/hover/activo,
   de lo contrario el hover deja la letra oscura e ilegible. */
.mud-drawer .mud-nav-link,
.mud-drawer .mud-nav-link .mud-nav-link-text,
.mud-drawer .mud-nav-link .mud-icon-root {
    color: #E9D7C2 !important;
}
.mud-drawer .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
}
.mud-drawer .mud-nav-link:hover .mud-nav-link-text,
.mud-drawer .mud-nav-link:hover .mud-icon-root {
    color: #ffffff !important;
}
.mud-drawer .mud-nav-link.active {
    background-color: rgba(186, 145, 83, 0.25) !important;
    color: #ffffff !important;
    border-left: 3px solid #BA9153;
}
.mud-drawer .mud-nav-link.active .mud-nav-link-text,
.mud-drawer .mud-nav-link.active .mud-icon-root {
    color: #ffffff !important;
}

/* Landing: secciones y pasos. */
.rs-section { margin: 4rem 0 2rem; }
.rs-step {
    text-align: center; padding: 1.5rem 1rem; position: relative;
}
.rs-step-num {
    width: 42px; height: 42px; border-radius: 50%; margin: 0 auto .5rem;
    background: #2A3F3C; color: #E9D7C2; font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(42,63,60,.25);
}
.rs-couriers { margin: 2rem 0 4rem; text-align: center; }
.rs-courier-badge {
    display: inline-block; padding: .5rem 1.1rem; border-radius: 999px;
    border: 1px solid #E9D7C2; font-weight: 700; color: #2A3F3C; background: #fff;
}
.rs-courier-badge.rs-soon { color: #808E8A; font-weight: 500; }

/* Pulido general: elevación suave y transición en tarjetas. */
.mud-card { transition: transform .18s ease, box-shadow .18s ease; }
.mud-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.10) !important; }
.rs-btn { transition: background .15s ease, transform .1s ease; }
.rs-btn:active { transform: translateY(1px); }

/* Promociones del home (SRS RF-CMS-03). */
.rs-promo-overlay {
    position: fixed; inset: 0; background: rgba(20,29,27,.55);
    display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 1rem;
}
.rs-promo-modal {
    position: relative; background: #fff; border-radius: 14px; max-width: 440px; width: 100%;
    padding: 1.75rem; box-shadow: 0 12px 40px rgba(0,0,0,.35); text-align: center;
    border-top: 5px solid #BA9153;
}
.rs-promo-img { max-width: 100%; border-radius: 8px; margin-bottom: .5rem; }
.rs-promo-close {
    position: absolute; top: 8px; right: 12px; background: none; border: none;
    font-size: 1.6rem; line-height: 1; cursor: pointer; color: #808E8A;
}
.rs-promo-close:hover { color: #2A3F3C; }
.rs-promo-toasts { position: fixed; bottom: 20px; right: 20px; z-index: 1900; max-width: 320px; }
.rs-promo-toast {
    background: #2A3F3C; color: #fff; padding: .8rem 1rem; border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,.25); border-left: 4px solid #BA9153;
    animation: rsToastIn .35s ease-out;
}
@keyframes rsToastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

#blazor-error-ui {
    background: #ffeecc;
    color: #111;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
