:root {
  /* Marca: neón cyan → violeta (del logo). */
  --cyan: #22d3ee;
  --violet: #a855f7;
  --grad: linear-gradient(100deg, #22d3ee, #a855f7);
  --grad-hover: linear-gradient(100deg, #38e0f5, #b975fb);

  /* Superficie oscura */
  --bg: #05060a;
  --bg-alt: #080b12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Texto */
  --ink: #f8fafc;
  --text: #cbd5e1;
  --muted: #8b97a8;

  --radius: 16px;
  --container: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 50% -8%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(900px 500px at 85% 8%, rgba(34, 211, 238, 0.1), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.accent,
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 760px;
}

/* --- Botones --- */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1.05rem;
}

.btn-block {
  display: block;
  text-align: center;
  width: 100%;
}

.btn-brand {
  background: var(--grad);
  color: #04121a;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.25);
}

.btn-brand:hover {
  background: var(--grad-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 38px rgba(124, 58, 237, 0.35);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(34, 211, 238, 0.5);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 10, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  background: rgba(5, 6, 10, 0.85);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  /* Logo grande dentro de la barra de 68px (sin agrandar la barra). */
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.4));
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.35),
    rgba(34, 211, 238, 0.12) 55%,
    transparent 70%
  );
  filter: blur(70px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 130px 20px 110px;
}

.badge {
  display: inline-block;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.9rem;
  color: #dbe4ee;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto;
}

.hero-sub {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: 1.18rem;
  color: var(--text);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 42px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Secciones --- */
.section {
  position: relative;
  padding: 90px 0;
}

.section-alt {
  position: relative;
  padding: 90px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--muted);
}

/* --- Grid + cards --- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
  background: var(--surface-2);
}

.step-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card h3 {
  margin-top: 12px;
  font-size: 1.2rem;
}

.card p {
  margin-top: 12px;
  color: var(--muted);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Precios --- */
.pricing {
  max-width: 440px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.18);
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.price-card h3 {
  font-size: 1.1rem;
}

.price {
  margin-top: 16px;
  font-size: 2.3rem;
  font-weight: 800;
}

.price-note {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 13px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
}

.tick {
  color: var(--cyan);
  font-weight: 700;
}

.price-fineprint {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- FAQ --- */
.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  color: var(--cyan);
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 20px;
  color: var(--muted);
}

/* --- CTA band --- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-band > .container {
  position: relative;
}

.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  font-weight: 800;
}

.cta-band p {
  max-width: 520px;
  margin: 16px auto 34px;
  color: var(--text);
  font-size: 1.1rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.logo-sm {
  font-weight: 700;
  color: var(--ink);
}

.site-footer a:hover {
  color: var(--ink);
}

/* --- Páginas de error --- */
.error-page {
  text-align: center;
  padding: 140px 0;
}

.error-code {
  font-size: 3.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  font-size: 1.9rem;
  margin: 8px 0 16px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero-inner {
    padding: 96px 20px 80px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Header auth --- */
.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-login {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.nav-login:hover {
  color: var(--ink);
}

/* --- Formularios --- */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.req {
  color: #f43f5e;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group textarea {
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #5b6675;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #f43f5e;
}

.form-group input.is-valid,
.form-group textarea.is-valid {
  border-color: #22c55e;
}

.field-error {
  display: block;
  min-height: 1.1em;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #fca5a5;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 76px;
}

.toggle-pw {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 8px;
}

.toggle-pw:hover {
  color: var(--cyan);
}

.form-alert {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecaca;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

/* --- Auth --- */
.auth-page {
  padding: 60px 20px 90px;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}

.auth-card h1 {
  font-size: 1.7rem;
}

.auth-sub {
  color: var(--muted);
  margin: 8px 0 24px;
}

.auth-alt {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-alt a {
  color: var(--cyan);
  font-weight: 600;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* --- Panel --- */
.panel-page {
  padding: 48px 0 90px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.panel-head h1 {
  font-size: 1.9rem;
}

.panel-sub {
  color: var(--muted);
  margin-top: 6px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}

.panel-card h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.empty-state {
  text-align: center;
  padding: 30px 10px;
  color: var(--text);
}

.empty-state .muted {
  font-size: 0.9rem;
  margin-top: 6px;
}

.muted {
  color: var(--muted);
}

.request-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.request-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
}

.request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.request-title {
  font-weight: 600;
  color: var(--ink);
}

.request-desc {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.request-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.8rem;
}

.tag {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.badge-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.st-pending {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.st-progress {
  background: rgba(34, 211, 238, 0.15);
  color: #67e8f9;
}

.st-done {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.st-closed {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

@media (max-width: 760px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .panel-head {
    flex-direction: column;
  }
}
