:root {
  --red: #d60000;
  --red-dark: #aa0000;
  --bg: #f3f4f6;
  --panel: #ffffff;
  --text: #141414;
  --muted: #667085;
  --line: #e5e7eb;
  --dark: #09152d;
  --dark-2: #0f1c3e;
  --green: #15803d;
  --orange: #c2410c;
  --hero-image: url('https://images.unsplash.com/photo-1558981806-ec527fa84c39?auto=format&fit=crop&w=1600&q=80');
  --workshop-image: url('https://images.unsplash.com/photo-1517846693594-1567da72af75?auto=format&fit=crop&w=1400&q=80');
  --shadow: 0 20px 60px rgba(15, 23, 42, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none !important; }
.muted-text { color: var(--muted); }
.section-gap-sm { margin-top: 18px; }
.eyebrow { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.link-reset { color: inherit; }

.top-strip { background: var(--red); color: #fff; padding: 11px 0; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.25); }
.nav { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 900; letter-spacing: .03em; }
.brand-mark { width: 38px; height: 18px; position: relative; display: inline-block; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ''; position: absolute; left: 0; right: 0; height: 4px; background: var(--red); transform: skewX(-24deg); border-radius: 2px; }
.brand-mark::before { top: 0; }
.brand-mark::after { top: 7px; }
.brand-mark span { top: 14px; }
.brand-mark { background: linear-gradient(var(--red), var(--red)) left 0 top 14px / 100% 4px no-repeat; transform: skewX(-24deg); }
.menu { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.menu a, .nav-link { font-weight: 700; color: #0f172a; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.hide-mobile { display: inline-flex; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; border-radius: 14px; padding: 14px 20px; background: var(--red); color: #fff; font-weight: 800; box-shadow: 0 10px 20px rgba(214, 0, 0, .18); }
.btn:hover { background: var(--red-dark); }
.btn-small { padding: 11px 16px; font-size: 14px; border-radius: 12px; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.65); box-shadow: none; }
.btn-outline-dark { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-outline-dark:hover { background: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

.hero { min-height: 84vh; background:
  linear-gradient(128deg, rgba(4,11,29,.92) 0 26%, transparent 26%),
  linear-gradient(140deg, rgba(214,0,0,.94) 0 76%, transparent 76%),
  linear-gradient(0deg, rgba(0,0,0,.15), rgba(0,0,0,.15)),
  var(--hero-image) center/cover;
  color: #fff; display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 34px; align-items: center; padding: 60px 0; }
.badge { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-weight: 800; margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 8vw, 100px); line-height: .92; margin: 0; text-transform: uppercase; }
.hero p { max-width: 700px; font-size: clamp(20px, 2.7vw, 34px); margin: 16px 0 28px; font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-side-card { padding: 28px; border-radius: 24px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.slot-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.section { padding: 78px 0; }
.section-soft { background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%); }
.section-title { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.section-heading { display: grid; gap: 8px; margin-bottom: 28px; }
.section-heading.center { text-align: center; }
.section-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head.between { justify-content: space-between; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.category-card { min-height: 132px; border-radius: 22px; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; font-size: 28px; font-weight: 900; text-transform: uppercase; background: linear-gradient(180deg, var(--red) 0 24%, #090909 24% 100%); box-shadow: var(--shadow); }
.category-card span { max-width: 180px; }

.workshop { background: #fff; }
.workshop-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.contact-box { background: #f8fafc; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; margin: 24px 0; }
.contact-box div { display: grid; gap: 4px; }
.contact-box strong { font-size: 13px; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.workshop-image { min-height: 560px; border-radius: 28px; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.22)), var(--workshop-image) center/cover; box-shadow: var(--shadow); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters input, .filters select, input, select, textarea { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; outline: none; }
.filters input, .filters select { min-width: 190px; width: auto; }
textarea { resize: vertical; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.product-card { background: var(--panel); border: 1px solid rgba(15, 23, 42, .06); border-radius: 24px; overflow: hidden; box-shadow: 0 16px 30px rgba(15,23,42,.06); display: flex; flex-direction: column; }
.product-image-wrap { aspect-ratio: 1 / .82; background: linear-gradient(180deg, #fff, #f5f7fb); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 18px; display: grid; gap: 10px; }
.product-meta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.product-chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(214,0,0,.08); color: var(--red); font-size: 12px; font-weight: 800; }
.product-chip.subtle { background: #eef2f7; color: #334155; }
.product-title { font-size: 20px; font-weight: 800; min-height: 52px; }
.product-meta { color: var(--muted); font-size: 14px; }
.price { font-size: 28px; font-weight: 900; color: #111827; }
.transfer-text { color: #475467; font-size: 14px; }
.stock { font-weight: 800; }
.stock-ok { color: var(--green); }
.stock-low { color: var(--orange); }
.product-actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.brands { background: #fff; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.brand-pill { min-height: 112px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,23,42,.05); font-size: 24px; font-weight: 900; }

.appointment-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 24px; align-items: start; }
.form-card, .availability-card, .panel { background: var(--panel); border: 1px solid rgba(15,23,42,.06); border-radius: 24px; padding: 22px; box-shadow: 0 14px 34px rgba(15,23,42,.05); }
.form-card { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.status { min-height: 20px; margin: 0; font-weight: 800; }
.slot-badge { display: inline-flex; align-items: center; padding: 10px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; border: 1px solid var(--line); }
.slot-free { background: #ecfdf3; color: #166534; border-color: #86efac; }
.slot-busy { background: #fff1f2; color: #9f1239; border-color: #fda4af; }
.info-list { display: grid; gap: 10px; margin-top: 18px; color: var(--muted); }

.footer { background: var(--red); color: #fff; padding: 54px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr .8fr; gap: 22px; }
.footer-copy { color: rgba(255,255,255,.8); max-width: 320px; }
.footer-list { display: grid; gap: 10px; }
.footer-contact span { max-width: 260px; }
.brand-footer { color: #fff; }
.brand-footer .brand-mark::before, .brand-footer .brand-mark::after, .brand-footer .brand-mark { background-color: #fff; }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #25d366; color: #fff; font-weight: 900; box-shadow: 0 18px 30px rgba(0,0,0,.24); z-index: 50; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
th { background: #f8fafc; }
small { color: var(--muted); }
.tag { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tag-pendiente { background: #fff7ed; color: #9a3412; }
.tag-confirmado { background: #eff6ff; color: #1d4ed8; }
.tag-realizado { background: #ecfdf3; color: #166534; }
.tag-cancelado { background: #fff1f2; color: #be123c; }

.admin-body { background: #eef2f7; }
.admin-wrap { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.admin-sidebar { background: linear-gradient(180deg, #08112a 0%, #0d1b3d 100%); color: #fff; padding: 24px; display: grid; align-content: start; gap: 10px; }
.tab-btn { background: rgba(255,255,255,.08); color: #fff; border: none; border-radius: 14px; padding: 14px 16px; text-align: left; cursor: pointer; font-weight: 800; }
.tab-btn.active { background: var(--red); }
.tab-btn.danger { background: #7f1d1d; }
.admin-main { padding: 26px; display: grid; gap: 18px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.panel-narrow { max-width: 520px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.stat-card span { color: var(--muted); font-weight: 700; }
.stat-card strong { display: block; margin-top: 10px; font-size: 36px; }
.admin-grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.compact-form input { flex: 1 1 220px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.chip button, .preview-item button { border: none; background: transparent; cursor: pointer; color: var(--red); font-weight: 900; }
.upload-box { border: 1px dashed #cbd5e1; border-radius: 18px; padding: 16px; display: grid; gap: 12px; background: #f8fafc; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.preview-item { position: relative; width: 88px; height: 88px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item button { position: absolute; top: 4px; right: 6px; background: rgba(255,255,255,.86); width: 22px; height: 22px; border-radius: 999px; }
.product-mini { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.product-mini img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: #eef2f7; }

.product-page-body { background: #f8fafc; }
.product-page { padding: 36px 0 60px; }
.product-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: start; }
.product-main-image { border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.product-main-image img { width: 100%; height: 520px; object-fit: cover; }
.product-gallery { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.thumb-btn { width: 90px; height: 90px; padding: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.product-panel h1 { margin: 6px 0 10px; font-size: 38px; }
.product-code { color: var(--muted); margin-bottom: 14px; }
.product-big-price { font-size: 42px; }

@media (max-width: 1100px) {
  .menu { display: none; }
  .icon-btn { display: inline-flex; align-items: center; justify-content: center; }
  body.menu-open .menu { display: flex; position: absolute; top: 86px; left: 16px; right: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .hide-mobile { display: none; }
  .hero-grid, .workshop-grid, .appointment-grid, .footer-grid, .product-layout, .admin-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { min-height: 74px; }
  .brand { font-size: 20px; }
  .hero { min-height: auto; }
  .hero-grid { padding: 46px 0; }
  .form-row, .admin-wrap { grid-template-columns: 1fr; }
  .admin-wrap { display: block; }
  .admin-sidebar { position: sticky; top: 0; z-index: 30; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 8px; overflow: auto; }
  .admin-sidebar .brand { grid-column: 1 / -1; }
  .admin-main { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .filters input, .filters select { width: 100%; min-width: 100%; }
  .product-main-image img { height: 360px; }
}
