:root {
  --bg: #f7f7f7;
  --paper: #ffffff;
  --ink: #1f1b16;
  --muted: #6f665b;
  --line: #e8e1d6;
  --gold: #b88a2e;
  --gold-dark: #8a6420;
  --gold-soft: #f4ead6;
  --gold-grad: linear-gradient(135deg, #9a6d1d 0%, #d9b45a 45%, #f3dc93 55%, #b88a2e 100%);
  --ok: #2f7a4b;
  --error: #b23b3b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(70, 50, 20, .08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .8em; display: block; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.divider { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--gold); margin: 0 0 1.2em; }
.divider::before, .divider::after { content: ''; height: 1px; width: 60px; background: var(--gold); opacity: .6; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-grad); color: #fff; box-shadow: 0 6px 18px rgba(184, 138, 46, .35); text-shadow: 0 1px 1px rgba(0,0,0,.15); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--gold); color: var(--gold-dark); background: transparent; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-danger { background: transparent; color: var(--error); border-color: #e7c4c4; }
.btn-sm { padding: 8px 14px; font-size: .68rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 247, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 46px; width: auto; }
.brand span { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; background: radial-gradient(ellipse at 70% 30%, #fff 0%, var(--bg) 60%); }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.05rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-logo { filter: drop-shadow(0 20px 40px rgba(184, 138, 46, .18)); }
@media (max-width: 860px) {
  .hero { padding: 32px 0 56px; text-align: center; }
  .hero .container { grid-template-columns: 1fr; gap: 16px; }
  .hero-logo { order: -1; max-width: 360px; margin: 0 auto; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); justify-content: center; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, #fffaf0 0%, var(--gold-soft) 75%); display: grid; place-items: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img img.placeholder { width: 96px; height: auto; object-fit: contain; opacity: .7; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); font-size: .92rem; margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.price { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--gold-dark); }
.tag { display: inline-block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-dark); font-weight: 600; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 36px; }

.about { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.about-badge { aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow); padding: 40px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; text-align: center; } .about-badge { max-width: 220px; margin: 0 auto; } }

.cta-band { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px 32px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(217, 180, 90, .25), transparent 60%); pointer-events: none; }
.cta-band p { color: #d9d2c5; max-width: 520px; margin: 0 auto 24px; }

/* ---------- Detalle curso ---------- */
.page-head { padding: 56px 0 32px; text-align: center; }
.course-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 80px; align-items: start; }
.course-detail .panel { position: sticky; top: 96px; }
.outline li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.outline { list-style: none; padding: 0; margin: 0; }
@media (max-width: 860px) { .course-detail { grid-template-columns: 1fr; } .course-detail .panel { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; }
.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.site-footer a { color: var(--ink); text-decoration: none; display: block; padding: 3px 0; font-size: .9rem; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: .78rem; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; text-align: center; } }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
label { display: grid; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
label .hint { font-weight: 400; color: var(--muted); letter-spacing: 0; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 400 .95rem var(--sans); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }

.alert { padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 20px; border: 1px solid; }
.alert.ok { background: #eef7f1; color: var(--ok); border-color: #cfe7d8; }
.alert.error { background: #fbefef; color: var(--error); border-color: #efd0d0; }

/* ---------- Login ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(420px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 40px 32px; box-shadow: var(--shadow); }
.auth-card img { width: 150px; margin: 0 auto 8px; }

/* ---------- Aula virtual ---------- */
.portal-head { padding: 40px 0 24px; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--gold-grad); }
.course-card .card-body { gap: 10px; }
.classroom { display: grid; grid-template-columns: 320px 1fr; gap: 28px; padding-bottom: 60px; align-items: start; }
.lesson-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; }
.lesson-nav h4 { margin: 0; padding: 14px 18px 8px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.lesson-nav a, .lesson-nav .locked { display: flex; align-items: center; gap: 10px; padding: 11px 18px; text-decoration: none; color: var(--ink); font-size: .88rem; border-left: 3px solid transparent; }
.lesson-nav a:hover { background: var(--bg); }
.lesson-nav a.current { background: var(--gold-soft); border-left-color: var(--gold); font-weight: 600; }
.lesson-nav .locked { color: var(--muted); opacity: .7; }
.lesson-nav .ic { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; border: 1px solid var(--line); background: #fff; color: var(--gold-dark); }
.lesson-nav .done .ic { background: var(--gold-grad); color: #fff; border-color: transparent; }
.player { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.player .frame { aspect-ratio: 16 / 9; background: #111; }
.player .frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player .frame.doc { aspect-ratio: 4 / 3; background: #fff; }
.player .content { padding: 26px; }
.player .content .body { white-space: pre-line; }
.player-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--line); background: #fcfbf8; }
.player-actions .group { display: flex; gap: 10px; flex-wrap: wrap; }
.linkbox { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px; border: 1px dashed var(--gold); border-radius: 12px; background: var(--gold-soft); margin-top: 12px; }
@media (max-width: 900px) { .classroom { grid-template-columns: 1fr; } .lesson-nav { position: static; max-height: none; order: 2; } }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: #e9e2d6; padding: 24px 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.admin-side .brand { padding: 0 22px 22px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.admin-side .brand img { height: 40px; background: var(--bg); border-radius: 8px; padding: 3px; }
.admin-side a { display: flex; gap: 12px; align-items: center; padding: 11px 22px; color: #cfc6b8; text-decoration: none; font-size: .88rem; border-left: 3px solid transparent; }
.admin-side a:hover { color: #fff; background: rgba(255,255,255,.04); }
.admin-side a.active { color: #fff; border-left-color: #d9b45a; background: rgba(217,180,90,.1); }
.admin-side .spacer { flex: 1; }
.admin-side form button { background: none; border: 0; color: #cfc6b8; padding: 11px 22px; font: inherit; font-size: .88rem; cursor: pointer; }
.admin-main { padding: 32px clamp(16px, 4vw, 48px) 64px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-top h1 { font-size: 2.2rem; margin: 0; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.box h3 { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: inherit; }
.stat b { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--gold-dark); }
.stat span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--gold-soft); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.pill { font-size: .68rem; padding: 3px 9px; border-radius: 99px; background: #eef7f1; color: var(--ok); font-weight: 600; white-space: nowrap; }
.pill.off { background: #f1eeea; color: var(--muted); }
.pill.warn { background: #fdf3e2; color: #9a6a12; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.2fr 1fr; }
.two-col > * { min-width: 0; }
.lesson-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; flex: none; }
.lesson-row .info { flex: 1; min-width: 0; }
.lesson-row .info b { display: block; }
.lesson-row .info small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 18px 0 4px; }
.credentials { background: var(--gold-soft); border: 1px solid #ead7ae; border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.credentials pre { white-space: pre-wrap; background: #fff; padding: 14px; border-radius: 10px; font: .88rem/1.5 var(--sans); margin: 10px 0 14px; }
.admin-mobile-bar { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 30% 0 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; height: auto; }
  .admin-side.open { transform: none; }
  .admin-mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
  .admin-mobile-bar button { background: none; border: 0; color: #fff; font-size: 1.5rem; }
  .two-col, .two-col.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lesson-row:has(> .row-actions) { flex-wrap: wrap; }
  .lesson-row > .row-actions { width: 100%; justify-content: flex-end; }
}

/* ---------- Categorías, paquetes y carrito ---------- */
.tag.soft { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.price.ask { font-size: 1.15rem; color: var(--muted); }
.hero-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-cats a { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--gold-dark); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.hero-cats a + a::before { content: '·'; margin-right: 10px; color: var(--muted); }
@media (max-width: 860px) { .hero-cats { justify-content: center; } }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.filters.left { justify-content: flex-start; margin: 0 0 18px; }
.filters a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 16px; font-size: .78rem; font-weight: 500; }
.filters a.active, .filters a:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-soft); }
.badge, .nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold-grad); color: #2a2116; font-size: .7rem; font-weight: 700; margin-left: 6px; letter-spacing: 0; }
.nav-badge { margin-left: auto; }
.package-card { border-color: #ead7ae; background: linear-gradient(180deg, #fffdf8, var(--paper)); }
.pack-list { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; }
.pack-list a { color: var(--ink); }
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.cart-layout > * { min-width: 0; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.qty-form { display: flex; gap: 6px; align-items: center; }
.order-text, .credentials pre { white-space: pre-wrap; background: var(--bg); padding: 14px; border-radius: 10px; font: .88rem/1.5 var(--sans); margin: 14px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Aula: clases en vivo, entregas, certificados ---------- */
.live-box { border-color: #ead7ae; background: var(--gold-soft); }
.live-box .lesson-row { border-color: #ead7ae; }
.live-when { font-weight: 600; color: var(--gold-dark); }
.submissions { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.submissions h3 { margin: 0; }
.submission { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; background: #fcfbf8; }
.submission-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.submission .body, .feedback .body { white-space: pre-line; }
.feedback { background: var(--gold-soft); border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photos.big img { width: 200px; height: 200px; }
.pill.error { background: #fbefef; color: var(--error); }
.pill.ok { background: #eef7f1; color: var(--ok); }

.cert-page { min-height: 100vh; background: var(--bg); padding: 24px 16px 48px; display: grid; justify-items: center; gap: 18px; }
.cert-actions { width: min(1000px, 100%); display: flex; justify-content: space-between; gap: 10px; }
.certificate { width: min(1000px, 100%); aspect-ratio: 1.414; background: #fff; border: 1px solid #ead7ae; outline: 10px solid #fff; box-shadow: 0 0 0 11px #d9b45a, var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5% 8%; gap: 6px; }
.certificate .cert-logo { width: min(220px, 34%); margin-bottom: 8px; }
.certificate h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 4px 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.certificate h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin: 4px 0; }
.cert-foot { width: 100%; display: flex; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 18px; }
.cert-foot > div { display: grid; gap: 2px; border-top: 1px solid var(--gold); padding-top: 8px; min-width: 38%; }
.cert-foot small { color: var(--muted); font-size: .75rem; }
.cert-foot .sign { font-family: var(--serif); font-style: italic; font-size: 1.4rem; }
.cert-code { font-size: .72rem; color: var(--muted); letter-spacing: .08em; margin-top: 10px; }
@media (max-width: 640px) { .certificate { aspect-ratio: auto; padding: 32px 20px; } .cert-foot { flex-direction: column; } }
@media print {
  @page { size: A4 landscape; margin: 0; }
  .cert-page { padding: 0; background: #fff; min-height: 0; }
  .cert-actions { display: none; }
  .certificate { width: 100%; height: 100vh; aspect-ratio: auto; box-shadow: inset 0 0 0 12px #fff, inset 0 0 0 14px #d9b45a; border: 0; outline: 0; }
}

/* ---------- Admin: ventas, pedidos, entregas ---------- */
.stat.attention { border-color: var(--gold); background: var(--gold-soft); }
.sale { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 12px; margin-bottom: 12px; }
.payment-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--muted); }
.payment-row span { flex: 1; }
.payment-row form { margin: 0; }
.link-btn { background: none; border: 0; color: var(--error); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 120px; padding: 8px 10px; }
.new-sale summary { cursor: pointer; font-weight: 600; color: var(--gold-dark); font-size: .9rem; margin: 8px 0; }
.checks { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: grid; gap: 8px; margin: 0; min-width: 0; }
.checks legend { font-size: .78rem; font-weight: 600; padding: 0 6px; }
.row-link { text-decoration: none; color: inherit; }
.row-link:hover { background: var(--bg); }
.order { display: grid; gap: 10px; }
.order-head, .order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-items { list-style: none; margin: 0; padding: 0; border-block: 1px solid var(--line); }
.order-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .9rem; }
.order-items li + li { border-top: 1px dashed var(--line); }

/* Inventario, ventas y gastos */
[hidden] { display: none !important; }
th.num, td.num { text-align: right; }
.text-error { color: var(--error); }
.tag.sold-out { background: #fbefef; color: var(--error); }
.stat b.money-stat { font-size: 1.55rem; }
.stat.positive b { color: var(--ok); }
.stat.negative b { color: var(--error); }
.alert.info { background: var(--gold-soft); color: var(--ink); border-color: var(--line); }
.inline-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inline-alert form { margin: 0; }
fieldset.radios .check { align-items: flex-start; font-weight: 400; }
fieldset.radios .check input { margin-top: 3px; flex: none; }
fieldset.radios.inline { display: flex; flex-wrap: wrap; gap: 10px 22px; }
fieldset.radios.inline legend { width: 100%; }
.month-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.month-nav b { font-family: var(--serif); font-size: 1.4rem; min-width: 190px; text-align: center; }
.trend { display: flex; flex-direction: column; gap: 6px; }
.trend-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 4px 6px; border-radius: 8px; }
.trend-row.current { background: var(--gold-soft); }
.trend-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.trend-bars { display: flex; flex-direction: column; gap: 3px; }
.trend-bars .bar { display: block; height: 7px; border-radius: 4px; min-width: 2px; }
.bar.in, .dot.in { background: var(--gold); }
.bar.out, .dot.out { background: #c9c1b4; }
.trend-value { font-size: .85rem; font-weight: 600; min-width: 100px; text-align: right; }
.legend { margin: 10px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.single-col { max-width: 640px; }
