/* ALIADOS — estilo base. Mobile-first, elegante-romantico. El tenant sobreescribe --primary. */
:root {
  --primary: #b8324f;
  --primary-2: #7a1f38;
  --ink: #1d1720;
  --muted: #6d6470;
  --line: #ece6ea;
  --bg: #fdfbfc;
  --card: #ffffff;
  --ok: #1f8a54;
  --warn: #b7791f;
  --danger: #c0362c;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(40, 20, 35, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Georgia", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  padding: 56px 18px 48px;
  text-align: center;
}
.hero .logo { max-height: 74px; margin: 0 auto 18px; }
.hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0 0 10px; font-weight: 700; letter-spacing: -0.01em; }
.hero p { margin: 0 auto; max-width: 34rem; opacity: 0.94; }
.badge { display: inline-block; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3); padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; margin-bottom: 14px; }

/* Grid de paquetes */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 34px 0; }
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(40,20,35,0.13); }
.card .ph, .card img.cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f2edf0; }
.card .ph { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.85rem; text-align: center; padding: 12px; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.08rem; }
.card .inc { color: var(--muted); font-size: 0.86rem; flex: 1; }
.card .price { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-top: 6px; }
.card .price small { font-weight: 400; color: var(--muted); font-size: 0.72rem; display: block; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 0.95rem; padding: 11px 18px; border-radius: 12px; text-decoration: none; }
.btn:hover { background: var(--primary-2); }
.btn.wa { background: #25d366; color: #06301a; }
.btn.wa:hover { background: #1fb457; }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.block { width: 100%; }

/* Formularios */
label { display: block; font-size: 0.85rem; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.field-err { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }

/* Paneles */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 4px; font-size: 1.2rem; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #faf6f8; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi .n { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.kpi .l { font-size: 0.78rem; color: var(--muted); }

.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.tag.borrador { background: #fef3e6; color: var(--warn); }
.tag.activo { background: #e6f6ec; color: var(--ok); }
.tag.pausado { background: #f0eef1; color: var(--muted); }
.tag.pend { background: #fff4e0; color: var(--warn); }
.tag.aprob { background: #e6f6ec; color: var(--ok); }
.tag.rech { background: #fdecea; color: var(--danger); }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; }

.notice { padding: 12px 14px; border-radius: 10px; font-size: 0.88rem; margin: 10px 0; }
.notice.info { background: #eef4fb; color: #24557f; }
.notice.warn { background: #fdf3e3; color: var(--warn); }
.notice.stale { background: #fdecea; color: var(--danger); }

.footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 30px 18px 50px; }
.hidden { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transition: opacity 0.2s; z-index: 50; }
.toast.show { opacity: 1; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
