:root {
  color-scheme: light;
  --ink: #210b52;
  --muted: #706981;
  --brand: #7136ed;
  --brand-dark: #260b61;
  --surface: #ffffff;
  --line: #dce3ee;
  --danger: #bd2626;
  --success: #167347;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f5f0ff; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.portal-login { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(440px, 1fr); }
.portal-hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 52px clamp(40px, 7vw, 112px); overflow: hidden; color: var(--ink); background: radial-gradient(circle at 12% 12%, rgba(123, 72, 240, .18) 0 60px, transparent 61px), radial-gradient(circle at 86% 72%, rgba(123, 72, 240, .15) 0 44px, transparent 45px), linear-gradient(135deg, #e9ddfa 0%, #f9f6ff 55%, #e9e0f7 100%); }
.portal-hero::before, .portal-hero::after { position: absolute; border: 1px solid rgba(94, 43, 184, .12); border-radius: 50%; content: ""; pointer-events: none; }
.portal-hero::before { width: 620px; height: 620px; right: -180px; top: -160px; }
.portal-hero::after { width: 460px; height: 460px; left: -270px; bottom: -220px; }
.brand { position: relative; z-index: 1; display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 235px; height: auto; }
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: inherit; opacity: .75; }
.hero-copy h1 { margin: 0; font-size: clamp(36px, 4vw, 58px); line-height: 1.08; letter-spacing: -1.8px; }
.hero-copy p { max-width: 480px; margin: 24px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero-footer { position: relative; z-index: 1; font-size: 14px; color: var(--muted); }
.portal-form-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--surface); }
.portal-form { width: min(100%, 420px); }
.mobile-brand { display: none; color: var(--ink); }
.form-eyebrow { color: var(--brand); opacity: 1; }
.portal-form h2 { margin: 0; font-size: 34px; letter-spacing: -1.1px; }
.form-intro { margin: 10px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.notice { margin-bottom: 22px; padding: 13px 15px; border-radius: 10px; font-size: 14px; line-height: 1.4; }
.notice-error { border: 1px solid #f0caca; background: #fff4f4; color: var(--danger); }
.notice-success { border: 1px solid #c8e9d7; background: #f1fcf6; color: var(--success); }
.field { margin-bottom: 19px; }
.field label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #3a2567; }
.field input { display: block; width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(113,54,237,.13); }
.submit-button { display: block; width: 100%; margin-top: 28px; padding: 14px 20px; border: 0; border-radius: 9px; background: var(--brand); color: #fff; cursor: pointer; font: inherit; font-weight: 800; font-size: 15px; transition: background .2s, transform .2s; }
.submit-button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.portal-header { border-bottom: 1px solid #e6ddf5; background: #fff; }
.portal-nav { display: flex; max-width: 1120px; margin: auto; align-items: center; justify-content: space-between; padding: 18px 28px; }
.portal-nav .brand-logo { width: 185px; }
.logout-link { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; color: #46536a; font-size: 14px; font-weight: 700; text-decoration: none; }
.logout-link:hover { border-color: var(--danger); color: var(--danger); }
.portal-dashboard { max-width: 1120px; margin: 0 auto; padding: 66px 28px; }
.portal-dashboard h1 { margin: 0; font-size: 36px; letter-spacing: -1px; }
.dashboard-copy { max-width: 620px; color: var(--muted); line-height: 1.6; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.dashboard-card { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(31,54,88,.05); }
.card-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: #eee5ff; color: var(--brand); font-size: 20px; font-weight: 800; }
.dashboard-card h2 { margin: 18px 0 7px; font-size: 18px; }
.dashboard-card p { margin: 0; color: var(--muted); font-size: 14px; }
.dashboard-link { color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }.dashboard-link:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(62,26,118,.12); }
.owner-nav { gap: 24px; }.portal-menu { display: flex; align-items: center; gap: 6px; }.portal-menu a { padding: 9px 12px; border-radius: 8px; color: #594d70; font-size: 14px; font-weight: 700; text-decoration: none; }.portal-menu a:hover, .portal-menu a.is-active { background: #f0eaff; color: var(--brand-dark); }
.section-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.4fr); gap: 22px; align-items: start; }.section-form { position: sticky; top: 22px; }.code-note { display: flex; gap: 9px; align-items: center; margin: 0 0 18px; padding: 11px; border-radius: 8px; background: #f5f1ff; color: #5e408e; font-size: 13px; }.code-note strong { color: var(--brand-dark); }
.admin-main { max-width: 1120px; margin: 0 auto; padding: 46px 28px 72px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-heading h1 { margin: 0; font-size: 34px; letter-spacing: -1px; }
.admin-heading p { margin: 8px 0 0; color: var(--muted); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { padding: 19px 21px; border: 1px solid #e6ddf5; border-radius: 12px; background: #fff; }
.stat-card strong { display: block; font-size: 28px; color: var(--brand-dark); }.stat-card span { color: var(--muted); font-size: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.admin-panel { padding: 25px; border: 1px solid #e6ddf5; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(62,26,118,.05); }
.admin-panel-wide { grid-column: 1 / -1; }.admin-panel h2 { margin: 0; font-size: 20px; }.panel-description { margin: 7px 0 21px; color: var(--muted); font-size: 14px; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.admin-form .full-field { grid-column: 1 / -1; }.admin-form textarea { min-height: 82px; resize: vertical; padding-top: 12px; }.admin-form select { appearance: auto; }.admin-form .submit-button { margin: 4px 0 0; }.admin-form input, .admin-form select, .admin-form textarea { display: block; width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(113,54,237,.12); }
.admin-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #3a2567; }.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }.data-table th, .data-table td { padding: 12px 10px; border-bottom: 1px solid #eee9f6; text-align: left; }.data-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }.status-pill { display: inline-block; padding: 4px 8px; border-radius: 99px; background: #eee5ff; color: #5923bb; font-size: 12px; font-weight: 700; }.table-wrap { overflow-x: auto; }
.table-action { color: var(--brand-dark); font-size: 13px; font-weight: 800; text-decoration: none; }.table-action:hover { color: var(--brand); text-decoration: underline; }.status-pendiente_pago, .status-pending { background: #fff1d7; color: #9a5900; }.status-en_proceso { background: #e6edff; color: #2547a0; }.status-aceptado, .status-paid { background: #ddf7e8; color: #16653b; }.status-rechazado, .status-cancelled { background: #f7e2e5; color: #a52d40; }.client-stats { grid-template-columns: repeat(3, 1fr); margin-top: 34px; }
@media (max-width: 850px) { .portal-login { display: block; } .portal-hero { display: none; } .portal-form-panel { min-height: 100vh; padding: 42px 24px; } .mobile-brand { display: inline-flex; margin-bottom: 54px; } .dashboard-grid, .admin-grid, .admin-stats, .section-layout { grid-template-columns: 1fr; } .admin-heading { display: block; } .admin-heading .logout-link { display: inline-block; margin-top: 16px; } .owner-nav { flex-wrap: wrap; }.portal-menu { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }.section-form { position: static; } }
@media (max-width: 480px) { .portal-form-panel { padding: 30px 20px; } .mobile-brand { margin-bottom: 40px; } .portal-form h2 { font-size: 30px; } .portal-dashboard, .portal-nav { padding-left: 20px; padding-right: 20px; } }
