/* ==========================================================================
   TicketBot — páginas públicas (inicio.html, planes.html)
   Autocontenido: no depende de tailwind.css
   ========================================================================== */
:root {
  --bg: #0a0c13;
  --surface: #11141f;
  --surface-2: #171b2a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #eceef7;
  --muted: #9097ad;
  --accent: #7c3aed;
  --accent-2: #a855f7;
  --ok: #34d399;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(1000px 520px at 50% -8%, rgba(124, 58, 237, .22), transparent 65%),
    radial-gradient(700px 420px at 100% 30%, rgba(168, 85, 247, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -.03em; line-height: 1.12; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex-shrink: 0; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
::selection { background: rgba(124, 58, 237, .45); }
:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; border-radius: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 19, .7);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-family: 'Sora', sans-serif; letter-spacing: -.02em; }
.logo {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px -6px rgba(124, 58, 237, .7), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.links { display: flex; align-items: center; gap: 4px; }
.links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: .18s var(--ease); }
.links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.links a.on { color: #fff; background: rgba(124, 58, 237, .16); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), filter .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  font-family: inherit; color: #fff;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 14px 34px -12px rgba(124, 58, 237, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(124, 58, 237, .12); border: 1px solid rgba(124, 58, 237, .32);
  color: #ddd0ff; font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; max-width: 15ch; margin-inline: auto; }
.grad { background: linear-gradient(120deg, #c4b5fd, #c084fc 55%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 58ch; margin: 24px auto 0; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: #6f768c; }

/* ---------- Mock de Discord ---------- */
.stage { margin-top: 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; text-align: left; align-items: start; }
.window {
  background: linear-gradient(180deg, rgba(23, 27, 42, .9), rgba(17, 20, 31, .9));
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c3144; }
.window-bar span { margin-left: 8px; }
.window-body { padding: 20px; }
.field { margin-bottom: 14px; }
.field small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.fake-input { background: rgba(6, 8, 13, .65); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 14px; }
.fake-input.focus { border-color: rgba(124, 58, 237, .8); box-shadow: 0 0 0 3px rgba(124, 58, 237, .22); }
.caret { display: inline-block; width: 1.5px; height: 1em; background: #c4b5fd; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dc { background: #313338; border-radius: 16px; padding: 18px; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 40px 80px -30px #000; }
.dc-row { display: flex; gap: 12px; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.dc-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.tag { background: #5865f2; font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 600; letter-spacing: .02em; }
.embed { margin-top: 8px; background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 6px; padding: 14px 16px; }
.embed h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; font-family: 'Inter'; letter-spacing: 0; }
.embed p { font-size: 13.5px; color: #dbdee1; line-height: 1.55; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dc-btn { background: #5865f2; color: #fff; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 4px; }
.dc-btn.red { background: #da373c; }

/* ---------- Secciones ---------- */
section { padding: 84px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c4b5fd; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin: 12px 0 14px; }
.sec-head p { color: var(--muted); font-size: 17px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, rgba(23, 27, 42, .75), rgba(17, 20, 31, .75));
  border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(124, 58, 237, .4); box-shadow: 0 24px 50px -28px rgba(124, 58, 237, .6); }
.ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #ddd0ff; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .28), rgba(168, 85, 247, .18));
  box-shadow: 0 0 0 1px rgba(124, 58, 237, .35) inset;
}
.card h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

.soon { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fcd34d; background: rgba(252, 211, 77, .1); border: 1px solid rgba(252, 211, 77, .28); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
@media (max-width: 900px) { .grid3[style] { grid-template-columns: 1fr !important; } }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: 18px; border: 1px dashed var(--line-strong); }
.step::before {
  counter-increment: s; content: counter(s);
  font-family: 'Sora'; font-weight: 800; font-size: 44px; line-height: 1;
  background: linear-gradient(135deg, #a78bfa, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 18px; margin: 14px 0 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* Banda CTA */
.band {
  text-align: center; padding: 64px 28px; border-radius: 26px; border: 1px solid rgba(124, 58, 237, .35);
  background: radial-gradient(600px 240px at 50% 0, rgba(124, 58, 237, .28), transparent 70%), linear-gradient(180deg, #151934, #0f1220);
}
.band h2 { font-size: clamp(28px, 4vw, 42px); }
.band p { color: #b4b9d3; margin: 14px auto 28px; max-width: 48ch; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 34px 30px; position: relative; }
.plan.best {
  border-color: rgba(167, 139, 250, .65);
  background: radial-gradient(500px 220px at 50% -10%, rgba(124, 58, 237, .28), transparent 70%), linear-gradient(180deg, #181c36, #11141f);
  box-shadow: 0 40px 80px -40px rgba(124, 58, 237, .8);
  transform: translateY(-10px);
}
.plan.best:hover { transform: translateY(-14px); }
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .04em; box-shadow: 0 8px 20px -6px rgba(124, 58, 237, .8);
}
.plan .name { font-family: 'Sora'; font-weight: 700; font-size: 20px; }
.plan .sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; min-height: 22px; }
.price { display: flex; align-items: flex-end; gap: 8px; margin: 26px 0 4px; }
.price b { font-family: 'Sora'; font-size: 58px; line-height: .95; font-weight: 800; letter-spacing: -.04em; }
.price b sup { font-size: 24px; vertical-align: top; position: relative; top: 6px; margin-right: 2px; font-weight: 700; color: #c4b5fd; }
.price span { color: var(--muted); font-size: 15px; padding-bottom: 6px; }
.permonth { font-size: 14px; color: #ddd0ff; font-weight: 600; min-height: 22px; }
.save { display: inline-block; margin-left: 8px; font-size: 12px; background: rgba(52, 211, 153, .14); color: var(--ok); padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.plan hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.plan ul { list-style: none; padding: 0; display: grid; gap: 13px; margin-bottom: 30px; flex: 1; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: #cfd3e6; }
.plan li svg { color: var(--ok); margin-top: 3px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin-top: 40px; color: var(--muted); font-size: 14.5px; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust svg { color: #c4b5fd; }

/* Comparativa */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 16px 20px; text-align: left; font-size: 15px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #7d849c; background: rgba(255, 255, 255, .03); }
td { border-top: 1px solid var(--line); color: #cfd3e6; }
td:first-child { color: var(--text); font-weight: 600; }
tr.hl td { background: rgba(124, 58, 237, .08); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 14px; background: rgba(23, 27, 42, .6); transition: border-color .2s; }
details[open] { border-color: rgba(124, 58, 237, .4); }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 22px; color: #c4b5fd; transition: transform .25s var(--ease); line-height: 1; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; color: #6f768c; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
footer nav { display: flex; gap: 22px; }
footer a:hover { color: var(--text); }

/* Entrada */
.rise { animation: rise .7s var(--ease) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 900px) {
  .stage, .grid3, .steps, .plans { grid-template-columns: 1fr; }
  .plan.best { transform: none; }
  .plan.best:hover { transform: translateY(-4px); }
  .hero { padding: 64px 0 48px; }
  section { padding: 60px 0; }
  .links a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Logo HYDRASTUDIO: logo.png encima; si no existe queda el icono de respaldo */
.logo { position: relative; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; background: #000; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand { font-size: 17px; letter-spacing: .02em; }

/* Planes avanzados: acento fucsia para distinguirlos de los básicos */
.plan.adv { border-color: rgba(217, 70, 239, .28); }
.plan.adv:hover { border-color: rgba(217, 70, 239, .6); box-shadow: 0 24px 50px -28px rgba(217, 70, 239, .6); }
.plan.adv .price b sup { color: #f0abfc; }
.plan.adv .permonth { color: #f5d0fe; }
.plan.adv.best { border-color: rgba(217, 70, 239, .7); background: radial-gradient(500px 220px at 50% -10%, rgba(217, 70, 239, .26), transparent 70%), linear-gradient(180deg, #221736, #11141f); box-shadow: 0 40px 80px -40px rgba(217, 70, 239, .8); }
.plan.adv .ribbon { background: linear-gradient(135deg, #a855f7, #d946ef); }
.adv-feats .card .soon { margin-bottom: 12px; }
@media (max-width: 900px) { .adv-feats[style] { grid-template-columns: 1fr !important; } }

/* Chips con las funciones de cada versión */
.feat-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.feat-chips span { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #ddd0ff; background: rgba(124, 58, 237, .14); border: 1px solid rgba(168, 85, 247, .35); }

/* Tabla de funciones por versión */
.feat-table th:not(:first-child), .feat-table td:not(:first-child) { text-align: center; }
.feat-table .yes { color: var(--ok); font-weight: 800; font-size: 18px; }
.feat-table .no { color: #565c72; }
.feat-table td:last-child { background: rgba(217, 70, 239, .05); }

.feat-table .prio { color: #f0abfc; font-weight: 700; }

/* Listas de los planes: sin estirarse y con etiqueta "Próximamente" pequeña */
.plan ul { align-content: start; gap: 11px; }
.plan li { align-items: flex-start; }
.plan li svg { margin-top: 3px; }
.soon.mini { margin: 0 0 0 6px; padding: 1px 8px; font-size: 10px; letter-spacing: .05em; vertical-align: 1px; white-space: nowrap; }
