:root {
    --im-pink: #ed184a;
    --im-pink-dark: #c90e3a;
    --im-lime: #c4d544;
    --im-ink: #25242a;
    --im-muted: #777680;
    --im-cream: #f7f6f2;
}

body.imprimi-site { color: var(--im-ink); background: #fff; font-family: Inter, Arial, sans-serif; }
.site-header { z-index: 100; box-shadow: 0 4px 24px rgba(20, 20, 30, .06); }
.site-header .navbar { min-height: 86px; }
.navbar-brand img.brand-full { width: 190px; height: 58px; object-fit: contain; }
.navbar-brand img.brand-mark { display: none; width: 46px; height: 46px; }
.site-header .nav-link { color: #494850; font-weight: 600; padding: .75rem .8rem !important; }
.site-header .nav-link:hover { color: var(--im-pink); }
.site-header .btn-light { color: var(--im-ink); background: #fff; border: 2px solid var(--im-ink); font-weight: 800; }
.site-header .btn-light:hover { color: #fff; background: var(--im-ink); border-color: var(--im-ink); }
.site-header .btn-admin { color: var(--im-ink); background: var(--im-lime); border: 2px solid var(--im-lime); font-weight: 800; }
.site-header .btn-admin:hover { color: #fff; background: var(--im-ink); border-color: var(--im-ink); }
.btn-brand { color: #fff; background: var(--im-pink); border-color: var(--im-pink); font-weight: 700; }
.btn-brand:hover { color: #fff; background: var(--im-pink-dark); border-color: var(--im-pink-dark); }

.hero-section { min-height: 610px; display: flex; align-items: center; position: relative; background: linear-gradient(90deg, rgba(20,18,24,.9), rgba(20,18,24,.42)), url('../img/archivos.jpg') center 42%/cover; }
.hero-section::after { content: ''; position: absolute; right: 0; bottom: 0; width: 32%; height: 12px; background: var(--im-lime); }
.hero-content { position: relative; z-index: 1; }
.hero-copy { max-width: 720px; color: #fff; }
.eyebrow, .section-heading > span { display: inline-block; color: var(--im-pink); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-copy .eyebrow { color: var(--im-lime); }
.hero-copy h1 { margin: 1rem 0 1.25rem; color: #fff; font-size: clamp(3.1rem, 7vw, 6.4rem); line-height: .93; letter-spacing: -.055em; font-weight: 800; }
.hero-copy h1 span { color: var(--im-lime); }
.hero-copy p { max-width: 560px; margin-bottom: 2rem; font-size: 1.25rem; line-height: 1.65; color: rgba(255,255,255,.84); }
.hero-copy .btn { border-radius: 999px; padding: 1rem 1.8rem; }

.services-section { background: var(--im-cream); }
.section-heading { max-width: 650px; margin-bottom: 2rem; }
.section-heading h2 { margin-top: .5rem; font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -.045em; font-weight: 800; }
.service-card { min-height: 430px; height: 100%; padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; color: #fff; border-radius: 1.3rem; background-size: cover; background-position: center; transition: transform .25s ease, box-shadow .25s ease; }
.service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.78)); }
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { color: #fff; transform: translateY(-6px); box-shadow: 0 22px 50px rgba(30,28,38,.18); }
.service-files { background-image: url('../img/archivos.jpg'); }
.service-credit { background-image: url('../img/creditos.jpg'); }
.service-number { align-self: flex-end; font-size: 1rem; font-weight: 800; opacity: .8; }
.service-card small { font-size: 1.1rem; font-weight: 700; }
.service-card h3 { margin: 0 0 .7rem; color: var(--im-lime); font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.service-card p { max-width: 500px; font-size: 1.05rem; color: rgba(255,255,255,.8); }
.service-action { display: inline-block; margin-top: 1rem; font-weight: 800; }

.experience-section { padding: 0 0 5rem; background: var(--im-cream); }
.experience-panel { display: grid; grid-template-columns: 180px 1fr auto; gap: 2rem; align-items: center; padding: 3rem; border-radius: 1.3rem; background: var(--im-pink); color: #fff; }
.experience-years strong { display: block; font-size: 5rem; line-height: .8; letter-spacing: -.06em; }
.experience-years span { color: var(--im-lime); font-size: 1.4rem; font-weight: 800; }
.experience-copy .eyebrow { color: var(--im-lime); }
.experience-copy h2 { margin: .6rem 0; color: #fff; font-size: 2rem; font-weight: 800; }
.experience-copy p { margin: 0; color: rgba(255,255,255,.8); }

.steps-section { background: #fff; }
.step-card { height: 100%; padding: 2rem; border: 1px solid #e7e5e9; border-radius: 1rem; }
.step-card > span { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 2.5rem; border-radius: 50%; background: var(--im-lime); font-weight: 800; }
.step-card h3 { font-size: 1.5rem; font-weight: 800; }
.step-card p { margin: 0; color: var(--im-muted); line-height: 1.7; }

.auth-section { min-height: 720px; display: flex; align-items: center; background: radial-gradient(circle at 8% 12%, rgba(196,213,68,.25), transparent 24rem), var(--im-cream); }
.auth-card { max-width: 590px; padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: 1.3rem; background: #fff; box-shadow: 0 22px 65px rgba(30,28,38,.1); }
.auth-heading { margin-bottom: 2rem; text-align: center; }
.auth-heading h1 { margin: .5rem 0; font-size: clamp(2.1rem, 5vw, 3.25rem); letter-spacing: -.045em; font-weight: 800; }
.auth-heading p, .auth-switch { color: var(--im-muted); }
.auth-card .form-label { color: var(--im-ink); font-weight: 700; }
.auth-card .form-control { border-color: #dfdde2; border-radius: .75rem; }
.auth-card .form-control:focus { border-color: var(--im-pink); box-shadow: 0 0 0 .2rem rgba(237,24,74,.12); }
.auth-card a { color: var(--im-pink); font-weight: 700; }
.auth-switch { margin: 1.5rem 0 0; text-align: center; }

.page-hero { min-height: 440px; display: flex; align-items: center; overflow: hidden; position: relative; }
.page-hero::after { content: ''; position: absolute; width: 360px; height: 360px; right: 7%; border: 70px solid rgba(255,255,255,.12); border-radius: 50%; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero span { display: block; margin-bottom: 1rem; font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-hero h1 { max-width: 850px; margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: -.055em; font-weight: 800; }
.page-hero p { max-width: 600px; margin-top: 1.5rem; font-size: 1.2rem; }
.page-hero-green { color: var(--im-ink); background: var(--im-lime); }
.page-hero-pink { color: #fff; background: var(--im-pink); }
.page-hero-pink h1, .page-hero-dark h1 { color: #fff; }
.page-hero-dark { color: #fff; background: var(--im-ink); }
.page-hero-dark em { color: var(--im-lime); font-style: normal; }
.page-hero-light { background: var(--im-cream); }
.page-hero-light::after { border-color: rgba(237,24,74,.1); }
.info-card, .text-panel, .branch-card { height: 100%; padding: 2rem; border-radius: 1rem; background: #fff; border: 1px solid #e7e5e9; }
.info-card > span { color: var(--im-pink); font-weight: 900; }
.info-card h2, .text-panel h2 { margin: 2rem 0 .8rem; font-size: 1.55rem; font-weight: 800; }
.info-card p, .text-panel p, .branch-card p { color: var(--im-muted); line-height: 1.75; }
.lead-copy p { font-size: 1.2rem; line-height: 1.8; }
.lead-copy h2 { color: var(--im-pink); font-size: 1.6rem; font-weight: 800; }
.soft-section, .calculator-section { background: var(--im-cream); }
.contact-panel, .calculator-card { padding: clamp(2rem, 5vw, 3.5rem); border-radius: 1.2rem; background: var(--im-cream); }
.contact-panel h2, .calculator-card h2 { margin-top: .6rem; font-size: 2.3rem; font-weight: 800; }
.branch-card { height: auto; margin-bottom: 1rem; }
.branch-card h3 { color: var(--im-pink); font-size: 1.2rem; font-weight: 800; }
.calculator-card { background: #fff; box-shadow: 0 20px 50px rgba(30,28,38,.08); }
.calculator-card .form-label { font-weight: 700; }
.quote-card { padding: 2.5rem; position: sticky; top: 120px; border-radius: 1.2rem; color: #fff; background: var(--im-pink); }
.quote-card > span { display: block; color: var(--im-lime); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.quote-card > strong { display: block; margin: 1.3rem 0 .5rem; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -.06em; }
.quote-card p { font-size: 1.1rem; }
.quote-card small { display: block; margin-top: 1.5rem; color: rgba(255,255,255,.72); }

.account-section { min-height: 720px; background: var(--im-cream); }
.account-nav, .account-panel { padding: 1.7rem; border: 1px solid #e7e5e9; border-radius: 1.1rem; background: #fff; }
.account-person { display: flex; gap: .85rem; align-items: center; padding-bottom: 1.3rem; border-bottom: 1px solid #eceaec; }
.account-person > span { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--im-pink); font-weight: 800; }
.account-person strong, .account-person small { display: block; overflow: hidden; text-overflow: ellipsis; }
.account-person small { color: var(--im-muted); }
.account-nav nav { display: grid; margin-top: 1rem; }
.account-nav nav a { padding: .8rem .4rem; color: var(--im-ink); border-bottom: 1px solid #f0eef1; font-weight: 700; }
.account-nav nav a:hover { color: var(--im-pink); }
.account-heading { margin-bottom: 2rem; }
.account-heading > span { color: var(--im-pink); font-weight: 800; letter-spacing: .14em; }
.account-heading h1 { margin: .35rem 0; font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -.05em; font-weight: 800; }
.account-heading p { color: var(--im-muted); font-size: 1.1rem; }
.balance-card, .print-card { min-height: 220px; display: flex; flex-direction: column; padding: 2rem; border-radius: 1.1rem; }
.balance-card { color: #fff; background: var(--im-pink); }
.balance-card small, .print-card small { font-weight: 800; letter-spacing: .1em; }
.balance-card strong { margin-top: .8rem; font-size: 4rem; line-height: 1; }
.balance-card a { margin-top: auto; color: #fff; font-weight: 800; }
.print-card { color: var(--im-ink); background: var(--im-lime); }
.print-card:hover { color: var(--im-ink); transform: translateY(-3px); }
.print-card strong { margin: 1rem 0; font-size: 2rem; line-height: 1.1; }
.print-card span { margin-top: auto; font-weight: 800; }
.account-panel h2 { font-size: 1.35rem; font-weight: 800; }
.account-table th { color: var(--im-muted); font-size: .78rem; text-transform: uppercase; }
.status-pill { display: inline-block; padding: .35rem .65rem; border-radius: 999px; background: #eeedf0; font-size: .8rem; font-weight: 700; }
.status-5 { color: #18734c; background: #dff7ed; }
.status-6 { color: #a13b46; background: #fde6e9; }
.status-1, .status-7 { color: #88620a; background: #fff3cf; }
.empty-state { padding: 2rem; text-align: center; color: var(--im-muted); }
.balance-strip { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 2rem; border-radius: 1rem; color: #fff; background: var(--im-ink); }
.balance-strip small, .balance-strip strong { display: block; }
.balance-strip strong { color: var(--im-lime); font-size: 1.7rem; }
.credit-plan { height: 100%; padding: 1.6rem; text-align: center; border: 1px solid #e7e5e9; border-radius: 1rem; background: #fff; }
.credit-plan > span { color: var(--im-pink); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.credit-plan > strong { display: block; margin-top: .5rem; font-size: 3rem; line-height: 1; }
.credit-plan > small { display: block; color: var(--im-muted); }
.credit-plan > div { margin: 1.2rem 0; font-size: 1.4rem; font-weight: 800; }
.quote-summary { display: grid; gap: .75rem; }
.quote-summary > span { display: flex; justify-content: space-between; padding: .9rem 1rem; border-radius: .7rem; background: var(--im-cream); }
.print-loading { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #fff; background: rgba(24,23,29,.9); }
.print-loading[hidden] { display: none; }
.print-loading strong { font-size: 1.4rem; }
.print-loading .progress { width: min(420px,80vw); height: 8px; background: rgba(255,255,255,.2); }
.print-loading .progress-bar { background: var(--im-lime); }
.print-shop { min-height: 760px; background: var(--im-cream); }
.print-main,.checkout-panel { padding: clamp(1.5rem,4vw,2.5rem); border-radius: 1rem; background:#fff; }
.print-main h1 { color:var(--im-pink);font-weight:800; }
.upload-progress-box { padding:2rem;border-radius:1rem;background:#f5f4f6; }
.upload-progress-box .progress { height:12px;margin-top:1rem; }.upload-progress-box .progress-bar{background:var(--im-lime)}
.uploaded-item { display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-top:2rem;padding:1.3rem 0;border-top:1px solid #e8e6e9;border-bottom:1px solid #e8e6e9}.uploaded-item p{margin:.35rem 0;color:var(--im-muted)}
.checkout-panel{position:sticky;top:110px}.checkout-line,.checkout-total{display:flex;justify-content:space-between}.checkout-line.small{color:var(--im-muted)}.checkout-total{margin:1rem 0;padding:1rem 0;border-top:1px solid #e7e5e9;border-bottom:1px solid #e7e5e9;color:var(--im-pink);font-size:1.8rem}.pickup{padding:1rem 0}.pickup span,.pickup strong{display:block}.terms-check{display:block;margin:1rem 0 2rem}.checkout-panel h2{font-size:1.3rem;font-weight:800}.pay-option{width:100%;margin-top:1rem;padding:1rem;border:0;border-radius:999px;background:var(--im-lime);font-weight:800}.pay-option:disabled{opacity:.45}.checkout-panel form small{display:block;padding:.5rem;color:var(--im-muted)}
.print-draft { margin-top:2rem;padding:1.5rem;border:2px solid #e7e5e9;border-radius:1rem;background:#fff; }
.cart-heading { display:flex;justify-content:space-between;margin-top:2rem;padding:1rem 0;border-bottom:1px solid #ddd;color:var(--im-muted);font-weight:700; }

.site-footer { background: #242329; color: rgba(255,255,255,.7); }
.site-footer a { color: rgba(255,255,255,.76); }
.site-footer a:hover { color: var(--im-lime); }
.footer-mark { width: 84px; filter: brightness(0) invert(1); }
.footer-title { color: #fff; font-size: 1rem; font-weight: 800; }
.footer-links li { margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: 1rem 0 1.5rem; }
    .experience-panel { grid-template-columns: 120px 1fr; }
    .experience-panel .btn { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .navbar-brand img.brand-full { display: none; }
    .navbar-brand img.brand-mark { display: block; }
    .hero-section { min-height: 560px; }
    .hero-copy h1 { font-size: 3.25rem; }
    .service-card { min-height: 350px; }
    .experience-panel { grid-template-columns: 1fr; padding: 2rem; }
    .balance-strip { align-items: flex-start; flex-direction: column; }
}
