@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;600&family=Rubik:wght@400;500;600;700;800&display=swap");

:root {
    --hr-primary: #FA752A;
    --hr-primary-hover: #E85D1A;
    --hr-primary-active: #D04B0A;
    --hr-secondary: #0058E6;
    --hr-secondary-hover: #0045B8;
    --hr-secondary-active: #003499;
    --hr-google-blue: #4285F4;
    --hr-navy: #1E3A8A;
    --hr-charcoal: #181D23;
    --hr-dark-soft: #292929;
    --hr-dark-mid: #393939;
    --hr-text: #292929;
    --hr-muted: #6B7280;
    --hr-muted-soft: #959EA9;
    --hr-surface: #FFFFFF;
    --hr-bg-soft: #FAFAFA;
    --hr-border: #EAEAEA;
    --hr-border-pink: #FFE1E1;
    --hr-silver: #C0C0C0;
    --hr-black: #101010;
    --hr-danger: #CF2E2E;
    --hr-warning: #FCB900;
    --hr-success: #16A34A;

    --font-heading: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-label: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-accent: var(--font-heading);

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 52px;
    --space-9: 60px;
    --space-10: 80px;

    --radius-pill: 50px;
    --radius-card: 20px;
    --radius-soft: 10px;
    --radius-min: 5px;
    --radius-sharp: 0;

    --shadow-raised: rgba(0, 0, 0, 0.14) 0 6px 8px 2px;
    --shadow-floating: rgba(0, 0, 0, 0.04) 0 10px 10px 4px;
    --shadow-focus: rgba(66, 133, 244, 0.3) 0 5px 5px 0;
    --shadow-primary-hover: 0 4px 12px rgba(250, 117, 42, 0.3);
    --shadow-secondary-hover: 0 4px 12px rgba(0, 88, 230, 0.25);
    --shadow-subtle-hover: 0 2px 6px rgba(0, 0, 0, 0.08);

    /* Backward-compat aliases */
    --orange: var(--hr-primary);
    --orange-dark: var(--hr-primary-hover);
    --navy: var(--hr-navy);
    --dark: var(--hr-charcoal);
    --text: var(--hr-text);
    --muted: var(--hr-muted);
    --light: var(--hr-bg-soft);
    --white: var(--hr-surface);
    --border: var(--hr-border);
    --green: var(--hr-success);
    --shadow-sm: var(--shadow-subtle-hover);
    --shadow-md: var(--shadow-raised);
    --shadow-orange: var(--shadow-primary-hover);
    --radius-sm: var(--radius-soft);
    --radius-md: var(--radius-soft);
    --radius-lg: var(--radius-card);
    --radius-xl: var(--radius-card);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    color: var(--hr-text);
    background: var(--hr-surface);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0;
    color: var(--hr-dark-soft);
}

h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
}

h2 {
    font-size: 24px;
    line-height: 31px;
}

h3 {
    font-size: 20px;
    line-height: 28px;
}

h4,
h5,
h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--hr-dark-soft);
}

p {
    color: var(--hr-text);
}

.hr-topbar {
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2) var(--space-4);
    font-size: 14px;
}

.hr-topbar strong,
.hr-topbar .highlight {
    color: var(--hr-primary);
    font-weight: 600;
}

.hr-backend-bar {
    background: var(--hr-black);
    color: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.hr-backend-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7px var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.hr-backend-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.hr-backend-actions a {
    color: var(--hr-primary);
    font-weight: 600;
}

.hr-backend-actions a:hover {
    color: #ffab7b;
}

.hr-header {
    height: 75px;
    padding: 0 var(--space-7);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.hr-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.hr-logo-brand {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 14px;
}

.hr-logo-img,
.hr-logo-img-fixed {
    height: 36px;
    width: auto;
}

.hr-logo-fallback,
.hr-logo-fallback-dark {
    display: none;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #FFFFFF;
}

.hr-logo-fallback span,
.hr-logo-fallback-dark span {
    color: var(--hr-primary);
}

.hr-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.hr-nav a {
    display: inline-flex;
    align-items: center;
    height: 75px;
    padding: 0 15px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #FFFFFF;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.hr-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hr-inline-icon,
.hr-nav-icon {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    stroke: currentColor;
    flex: 0 0 auto;
    vertical-align: middle;
    transition: transform 0.2s ease, color 0.2s ease;
}

.hr-nav a:hover {
    color: var(--hr-primary);
    background: rgba(250, 117, 42, 0.1);
}

.hr-nav a:hover .hr-nav-icon {
    transform: scale(1.08);
}

.hr-nav a.active {
    color: var(--hr-primary);
    border-bottom: 2px solid var(--hr-primary);
}

.btn-rastreo {
    background: var(--hr-primary) !important;
    color: #FFFFFF !important;
    height: auto !important;
    border-radius: var(--radius-pill);
    border: 1px solid var(--hr-primary);
    padding: 13px 26px !important;
    margin-left: var(--space-2);
    box-shadow: none;
}

.btn-rastreo:hover {
    background: var(--hr-primary-hover) !important;
    border-color: var(--hr-primary-hover) !important;
    box-shadow: var(--shadow-primary-hover);
    color: #FFFFFF !important;
}

.btn-login {
    margin-left: var(--space-2);
    height: auto !important;
    border-radius: var(--radius-pill);
    border: 1px solid var(--hr-border) !important;
    background: transparent !important;
    color: #FFFFFF !important;
    padding: 13px 22px !important;
}

.btn-login:hover {
    color: var(--hr-primary) !important;
    border-color: rgba(250, 117, 42, 0.45) !important;
    background: rgba(250, 117, 42, 0.1) !important;
}

.hr-nav-cta-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: var(--space-2);
}

.hr-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hr-nav-cta.primary {
    background: var(--hr-primary);
    border-color: var(--hr-primary);
    color: #FFFFFF;
}

.hr-nav-cta.primary:hover {
    background: var(--hr-primary-hover);
    border-color: var(--hr-primary-hover);
    color: #FFFFFF;
    box-shadow: var(--shadow-primary-hover);
}

.hr-nav-cta.secondary {
    background: transparent;
    border-color: var(--hr-border);
    color: #FFFFFF;
}

.hr-nav-cta.secondary:hover {
    color: var(--hr-primary);
    border-color: rgba(250, 117, 42, 0.45);
    background: rgba(250, 117, 42, 0.1);
}

.hr-hamburger {
    display: none;
    border: none;
    background: transparent;
    color: #FFFFFF;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
}

.hr-hamburger:hover {
    color: var(--hr-primary);
}

.hr-nav-mobile {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--hr-charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-3) var(--space-4);
    flex-direction: column;
}

.hr-nav-mobile.open {
    display: flex;
}

.hr-nav-mobile a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    border-radius: var(--radius-min);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hr-nav-mobile .hr-nav-link {
    gap: 10px;
}

.hr-nav-mobile .hr-nav-icon {
    width: 18px;
    height: 18px;
}

.hr-nav-mobile a:hover,
.hr-nav-mobile a.active {
    background: rgba(250, 117, 42, 0.1);
    color: var(--hr-primary);
}

.hr-mobile-divider {
    margin-top: var(--space-2);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: var(--space-3) !important;
}

.hr-nav-cta.mobile {
    width: 100%;
    margin-top: var(--space-2);
}

.btn-primary,
.btn-login-submit,
.reg-btn,
.btn-cotizar,
.btn-prim,
.btn-pagar,
.btn-filtrar,
.btn-nueva,
.btn-confirm,
.hr-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border: 1px solid var(--hr-primary);
    border-radius: var(--radius-pill);
    background: var(--hr-primary);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-login-submit:hover,
.reg-btn:hover,
.btn-cotizar:hover,
.btn-prim:hover,
.btn-pagar:hover,
.btn-filtrar:hover,
.btn-nueva:hover,
.btn-confirm:hover,
.hr-btn-primary:hover {
    background: var(--hr-primary-hover);
    border-color: var(--hr-primary-hover);
    box-shadow: var(--shadow-primary-hover);
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-login-submit:active,
.reg-btn:active,
.btn-cotizar:active,
.btn-prim:active,
.btn-pagar:active,
.btn-filtrar:active,
.btn-nueva:active,
.btn-confirm:active,
.hr-btn-primary:active {
    background: var(--hr-primary-active);
    border-color: var(--hr-primary-active);
    box-shadow: none;
    transform: none;
}

.btn-primary:disabled,
.btn-login-submit:disabled,
.reg-btn:disabled,
.btn-cotizar:disabled,
.btn-prim:disabled,
.btn-pagar:disabled,
.btn-filtrar:disabled,
.btn-nueva:disabled,
.btn-confirm:disabled,
.hr-btn-primary:disabled {
    background: var(--hr-silver);
    border-color: var(--hr-silver);
    color: #FFFFFF;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary,
.btn-sec,
.btn-status,
.hr-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border: 1px solid var(--hr-secondary);
    border-radius: var(--radius-pill);
    background: var(--hr-secondary);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover,
.btn-sec:hover,
.btn-status:hover,
.hr-btn-secondary:hover {
    background: var(--hr-secondary-hover);
    border-color: var(--hr-secondary-hover);
    box-shadow: var(--shadow-secondary-hover);
}

.btn-secondary:active,
.btn-sec:active,
.btn-status:active,
.hr-btn-secondary:active {
    background: var(--hr-secondary-active);
    border-color: var(--hr-secondary-active);
    box-shadow: none;
}

.btn-outline,
.btn-login,
.btn-limpiar,
.btn-cancel,
.btn-cancelar,
.hr-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border: 1px solid var(--hr-border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--hr-dark-soft);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn-outline:hover,
.btn-limpiar:hover,
.btn-cancel:hover,
.btn-cancelar:hover,
.hr-btn-outline:hover {
    border-color: rgba(250, 117, 42, 0.45);
    color: var(--hr-primary);
    background: rgba(250, 117, 42, 0.08);
}

label,
.field label,
.fgroup label,
.lgroup label,
.reg-group label,
.modal label {
    display: block;
    font-family: var(--font-label);
    font-size: 14px;
    line-height: 16px;
    font-weight: 600;
    color: var(--hr-dark-soft);
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="tel"],
select,
textarea,
.fgroup input,
.fgroup select,
.lgroup input,
.reg-group input,
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 47px;
    padding: 12px;
    border: 1px solid var(--hr-border);
    border-radius: var(--radius-sharp);
    background: var(--hr-bg-soft);
    color: #000000;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 21px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--hr-silver);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--hr-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(250, 117, 42, 0.1);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--hr-border);
    border-color: var(--hr-border);
    color: var(--hr-muted-soft);
}

.is-error,
input.error,
select.error,
textarea.error {
    border-color: var(--hr-danger) !important;
    background: #FFF5F5 !important;
}

.error-text,
.msg-error,
.alert.err {
    color: var(--hr-danger);
    font-size: 12px;
    font-weight: 500;
}

.card,
.hr-card,
.summary,
.stat,
.resumen-card,
.pago-card,
.login-card,
.reg-card,
.filtros,
.modal {
    background: var(--hr-surface);
    border: 1px solid var(--hr-border-pink);
    border-radius: var(--radius-card);
    box-shadow: none;
}

.card-head,
.resumen-header,
.pago-header,
.login-header,
.reg-head,
.head,
.card-title,
.hr-card h2 {
    color: #FFFFFF;
}

.page-hero {
    background: linear-gradient(135deg, var(--hr-charcoal) 0%, var(--hr-navy) 100%);
    color: #FFFFFF;
    padding: var(--space-9) var(--space-7);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 117, 42, 0.25) 0%, rgba(250, 117, 42, 0) 72%);
    pointer-events: none;
}

.page-hero h1 {
    color: #FFFFFF;
    margin-bottom: var(--space-3);
}

.page-hero h1 span {
    color: var(--hr-primary);
}

.page-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-4);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover,
.breadcrumb span {
    color: var(--hr-primary);
}

.hr-section {
    padding: var(--space-10) var(--space-7);
}

.hr-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-3);
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hr-primary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 56px);
    line-height: 1.1;
    color: var(--hr-dark-soft);
    margin-bottom: var(--space-3);
}

.section-title span {
    color: var(--hr-primary);
}

.hr-esmx-title,
.hr-esmx-title span {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-desc {
    max-width: 720px;
    color: var(--hr-muted);
}

.hr-stat-num,
.big-number,
.total-val {
    font-family: var(--font-accent);
    font-weight: 800;
    color: var(--hr-primary);
}

.hr-footer {
    background: var(--hr-charcoal);
    color: rgba(255, 255, 255, 0.78);
    padding: 52px var(--space-7) 24px;
}

.hr-footer-grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-7);
}

.footer-brand .hr-footer-logo-img {
    filter: brightness(0) invert(1);
    height: 30px;
}

.footer-brand .hr-footer-logo-fallback {
    display: none;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 20px;
}

.footer-brand .footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-4);
    color: var(--hr-primary);
    font-weight: 600;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.78);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--hr-primary);
}

.hr-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: 12px;
}

.hr-footer-bottom,
.hr-footer-bottom a {
    color: rgba(255, 255, 255, 0.68);
}

.hr-footer-bottom a:hover {
    color: var(--hr-primary);
}

.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.wa-float svg {
    width: 28px;
    height: 28px;
    fill: #FFFFFF;
}

.text-orange { color: var(--hr-primary); }
.text-navy { color: var(--hr-navy); }
.text-muted { color: var(--hr-muted); }
.text-white { color: #FFFFFF; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* Payment fallback styles */
.pago-wrap {
    min-height: calc(100vh - 112px);
    background: var(--hr-bg-soft);
    padding: 48px 20px 60px;
}

.pago-inner {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    align-items: start;
}

.resumen-card,
.pago-card {
    overflow: hidden;
}

.resumen-header {
    background: linear-gradient(135deg, var(--hr-navy), var(--hr-charcoal));
    padding: 22px 28px;
}

.resumen-header h3,
.pago-header h3 {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 31px;
    font-weight: 600;
}

.resumen-header p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    margin-top: 4px;
}

.resumen-body {
    padding: 24px 28px;
}

.ruta-box {
    background: var(--hr-bg-soft);
    border: 1px solid var(--hr-border);
    border-radius: var(--radius-soft);
    padding: 16px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ruta-punto {
    font-size: 14px;
    line-height: 20px;
}

.ruta-punto strong {
    color: var(--hr-dark-soft);
    font-weight: 700;
    display: block;
}

.ruta-punto span {
    color: var(--hr-muted);
    font-size: 12px;
}

.ruta-arrow {
    color: var(--hr-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.detalle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--hr-border);
    font-size: 14px;
}

.detalle-row:last-child {
    border-bottom: none;
}

.detalle-row .k {
    color: var(--hr-muted);
}

.detalle-row .v {
    color: var(--hr-dark-soft);
    font-weight: 600;
}

.v-included {
    color: var(--hr-primary);
}

.total-box {
    background: linear-gradient(135deg, #fff8f3, #FFFFFF);
    border: 1px solid var(--hr-primary);
    border-radius: var(--radius-card);
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.total-lbl {
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hr-muted);
    margin-bottom: 6px;
}

.total-val {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1;
}

.total-val sup {
    font-size: 18px;
    vertical-align: super;
}

.total-currency {
    font-size: 16px;
    color: var(--hr-muted);
    font-family: var(--font-body);
    font-weight: 400;
}

.total-iva {
    font-size: 12px;
    color: var(--hr-muted);
    margin-top: 5px;
}

.pago-card {
    position: sticky;
    top: 88px;
}

.pago-header {
    background: linear-gradient(135deg, var(--hr-navy), var(--hr-charcoal));
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pago-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 4px;
}

.pago-body {
    padding: 24px 28px 28px;
}

.pago-error {
    background: #FFF5F5;
    border: 1px solid var(--hr-danger);
    color: var(--hr-danger);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.dummy-banner {
    background: rgba(252, 185, 0, 0.12);
    border: 1px solid rgba(252, 185, 0, 0.4);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.dummy-banner p {
    font-size: 13px;
    color: #7A5A00;
    line-height: 20px;
}

.dummy-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.wallet-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748B;
    margin-bottom: 6px;
}

.wallet-row.small {
    font-size: 12px;
    color: #94A3B8;
    margin-bottom: 0;
}

.wallet-warning {
    margin-top: 6px;
    font-size: 12px;
    color: #EF4444;
}

.metodo-wrap {
    margin-bottom: 14px;
}

.metodo-label {
    font-size: 14px;
    font-family: var(--font-label);
    font-weight: 600;
    color: var(--hr-dark-soft);
    display: block;
    margin-bottom: 10px;
}

.metodo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.metodo-btn {
    border: 1px solid var(--hr-border);
    border-radius: var(--radius-soft);
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    color: var(--hr-muted);
    background: var(--hr-surface);
}

.metodo-btn:hover {
    border-color: var(--hr-primary);
    color: var(--hr-dark-soft);
}

.metodo-btn.active {
    border-color: var(--hr-primary);
    background: rgba(250, 117, 42, 0.08);
    color: var(--hr-dark-soft);
}

.metodo-btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.metodo-btn .icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

.metodo-btn .icon svg,
.metodo-icon-svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    stroke: currentColor;
    flex: 0 0 auto;
}

.metodo-meta {
    font-size: 11px;
    color: var(--hr-muted);
    margin-top: 4px;
}

.metodo-note {
    font-size: 13px;
    color: var(--hr-muted);
    margin-top: 8px;
}

.metodo-extra-card {
    background: var(--hr-bg-soft);
    border: 1px solid var(--hr-border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 18px;
}

.metodo-extra-text {
    font-size: 14px;
    color: var(--hr-muted);
}

.fgroup {
    margin-bottom: 18px;
}

.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.seguro-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--hr-muted);
    margin-top: 12px;
}

.btn-cancelar {
    width: 100%;
    margin-top: 12px;
}

.is-hidden {
    display: none !important;
}

/* Spec 019 shared SaaS components: additive baseline, no business behavior. */
.hr-shell-content {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: var(--space-6);
}

.hr-shell-content--wide {
    max-width: 1440px;
}

.hr-shell-content--compact {
    max-width: 980px;
    padding: var(--space-5);
}

.hr-entity-header,
.hr-document__header,
.hr-workbench__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.hr-entity-header__eyebrow {
    color: var(--hr-primary);
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hr-entity-header__title {
    margin-top: var(--space-1);
    color: var(--hr-charcoal);
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.05;
}

.hr-entity-header__meta {
    margin-top: var(--space-2);
    color: var(--hr-muted);
    font-size: 14px;
    line-height: 1.5;
}

.hr-entity-header__actions,
.hr-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
}

.hr-entity-context-chip,
.hr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    border: 1px solid var(--hr-border);
    border-radius: var(--radius-pill);
    background: var(--hr-surface);
    color: var(--hr-muted);
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 11px;
    white-space: nowrap;
}

.hr-chip--neutral {
    background: var(--hr-bg-soft);
    color: var(--hr-muted);
}

.hr-chip--info,
.hr-chip--scope {
    border-color: rgba(0, 88, 230, 0.18);
    background: rgba(0, 88, 230, 0.08);
    color: var(--hr-secondary);
}

.hr-chip--warning {
    border-color: rgba(252, 185, 0, 0.3);
    background: rgba(252, 185, 0, 0.12);
    color: #8A5F00;
}

.hr-chip--danger,
.hr-chip--locked {
    border-color: rgba(207, 46, 46, 0.22);
    background: rgba(207, 46, 46, 0.08);
    color: var(--hr-danger);
}

.hr-chip--success {
    border-color: rgba(22, 163, 74, 0.22);
    background: rgba(22, 163, 74, 0.08);
    color: var(--hr-success);
}

.hr-document,
.hr-workbench {
    border: 1px solid var(--hr-border);
    border-radius: var(--radius-card);
    background: var(--hr-surface);
    box-shadow: var(--shadow-floating);
}

.hr-document__toolbar,
.hr-action-bar {
    border-bottom: 1px solid var(--hr-border);
    padding: var(--space-4);
}

.hr-document__header,
.hr-document__identity,
.hr-document__fields,
.hr-document__detail,
.hr-document__summary,
.hr-workbench__filters,
.hr-workbench__detail,
.hr-workbench__decision,
.hr-workbench__empty {
    padding: var(--space-5);
}

.hr-document__identity,
.hr-document__fields,
.hr-workbench__filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--space-3);
}

.hr-document__sheet,
.hr-workbench__list {
    overflow-x: auto;
    border-top: 1px solid var(--hr-border);
    border-bottom: 1px solid var(--hr-border);
}

.hr-grid {
    width: 100%;
    border-collapse: collapse;
    color: var(--hr-text);
    font-size: 13px;
}

.hr-grid__head,
.hr-grid thead {
    background: #F3F6FA;
    color: var(--hr-muted);
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hr-grid__cell,
.hr-grid th,
.hr-grid td {
    border-bottom: 1px solid var(--hr-border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

.hr-grid__input,
.hr-grid__select {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--hr-border);
    border-radius: var(--radius-min);
    background: var(--hr-surface);
    color: var(--hr-text);
    font-family: var(--font-body);
    font-size: 13px;
    padding: 8px 10px;
}

.hr-grid__input:focus,
.hr-grid__select:focus {
    border-color: var(--hr-secondary);
    box-shadow: var(--shadow-focus);
    outline: none;
}

.hr-grid__actions,
.hr-grid__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
}

.hr-readiness {
    border: 1px solid var(--hr-border);
    border-radius: var(--radius-soft);
    background: var(--hr-bg-soft);
    color: var(--hr-text);
    padding: var(--space-4);
}

.hr-readiness--incomplete {
    border-color: rgba(207, 46, 46, 0.18);
    background: rgba(207, 46, 46, 0.06);
}

.hr-readiness--review {
    border-color: rgba(252, 185, 0, 0.25);
    background: rgba(252, 185, 0, 0.1);
}

.hr-readiness--ready {
    border-color: rgba(22, 163, 74, 0.2);
    background: rgba(22, 163, 74, 0.08);
}

.hr-readiness__title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.hr-readiness__body,
.hr-readiness__items {
    color: var(--hr-muted);
    font-size: 13px;
    line-height: 1.5;
}

.hr-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--hr-border);
    border-radius: var(--radius-pill);
    background: var(--hr-surface);
    color: var(--hr-text);
    cursor: pointer;
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hr-action:hover {
    border-color: var(--hr-secondary);
    color: var(--hr-secondary);
    box-shadow: var(--shadow-subtle-hover);
}

.hr-action-bar__primary .hr-action,
.hr-action--primary {
    border-color: var(--hr-primary);
    background: var(--hr-primary);
    color: var(--hr-surface);
}

.hr-action-bar__secondary .hr-action,
.hr-action--secondary {
    border-color: var(--hr-secondary);
    background: var(--hr-secondary);
    color: var(--hr-surface);
}

.hr-action-bar__technical .hr-action {
    background: var(--hr-bg-soft);
    color: var(--hr-muted);
}

.hr-action--disabled,
.hr-action[disabled],
.hr-action[aria-disabled="true"] {
    border-color: var(--hr-border);
    background: #F3F4F6;
    color: var(--hr-muted-soft);
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .hr-header {
        padding: 0 20px;
    }

    .hr-nav {
        display: none;
    }

    .hr-hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hr-nav-cta-group {
        display: none;
    }

    .hr-section {
        padding: 60px 20px;
    }

    .page-hero {
        padding: 52px 20px;
    }

    .hr-footer {
        padding: 40px 20px 20px;
    }

    .hr-shell-content,
    .hr-shell-content--wide,
    .hr-shell-content--compact {
        max-width: none;
        padding: var(--space-5);
    }

    .hr-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hr-topbar {
        font-size: 13px;
    }

    .hr-nav-mobile {
        top: 75px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-login-submit,
    .reg-btn,
    .btn-cotizar,
    .btn-prim,
    .btn-pagar,
    .btn-filtrar,
    .btn-nueva,
    .btn-confirm {
        width: 100%;
    }

    .pago-inner {
        grid-template-columns: 1fr;
    }

    .pago-card {
        position: static;
    }

    .metodo-grid,
    .frow {
        grid-template-columns: 1fr;
    }

    .hr-entity-header,
    .hr-document__header,
    .hr-workbench__header {
        flex-direction: column;
    }

    .hr-entity-header__actions,
    .hr-action-bar {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hr-header {
        padding: 0 12px;
    }

    .hr-footer-grid {
        grid-template-columns: 1fr;
    }

    .hr-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .wa-float {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
    }
}
