:root {
  --bg: #060d18;
  --bg-elevated: #0c1628;
  --bg-card: #111d32;
  --bg-card-hover: #152238;
  --border: rgba(148, 163, 184, 0.14);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --success: #10b981;
  --error: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-h: 64px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --container: 1320px;
  --container-narrow: 520px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2rem, var(--container-narrow)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 13, 24, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); font-weight: 700; font-size: 1.15rem; text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-img { height: 38px; width: auto; display: block; }
.logo-footer .logo-img { height: 34px; }
.site-nav {
  display: none; align-items: center; gap: 1.25rem;
}
.site-nav a {
  color: var(--text-muted); font-size: 0.95rem; font-weight: 500; text-decoration: none;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--accent); font-weight: 600; }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text); margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-open .site-nav {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  padding: 1rem 1.5rem 1.5rem; background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; position: static; flex-direction: row; padding: 0; background: transparent; border: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-secondary {
  background: var(--bg-card); color: var(--text); border-color: var(--border);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; overflow: hidden;
}
.hero-container {
  position: relative; z-index: 1;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,13,24,0.25) 0%, rgba(6,13,24,0.72) 80%),
    linear-gradient(90deg, rgba(6,13,24,0.65) 0%, rgba(6,13,24,0.35) 50%, rgba(6,13,24,0.45) 100%);
}
.hero-content {
  padding: 2rem 0 3rem;
}
.hero-copy {
  width: 100%;
}
.hero h1,
.hero-lead,
.eyebrow,
.form-hint,
.form-error {
  text-align: left;
}

.plate-form {
  width: 100%;
  max-width: min(100%, 480px);
  margin: 0 0 1.25rem;
}

.hero-trust {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem;
  width: 100%;
}
.plate-input-wrap {
  display: flex; align-items: stretch; margin-bottom: 0.5rem;
  border: 2px solid var(--border); border-radius: var(--radius);
  background: rgba(17, 29, 50, 0.85); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.plate-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.plate-prefix {
  display: flex; align-items: center; padding: 0 1rem;
  background: rgba(0,0,0,0.25); color: var(--text-muted);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em;
  border-right: 1px solid var(--border);
}
.plate-input {
  flex: 1; min-width: 0; padding: 1.1rem 1rem;
  border: 0; background: transparent; color: var(--text);
  font-family: inherit; font-size: 1.35rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.plate-input::placeholder { color: #64748b; font-weight: 600; letter-spacing: 0.08em; }
.plate-input:focus { outline: none; }
.form-hint { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--text-muted); }
.form-error { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--error); }
#submit-btn { margin-top: 0.25rem; }
#submit-btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }

.eyebrow {
  display: inline-block; margin: 0 0 0.75rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  margin: 0 0 1rem; font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.1; letter-spacing: -0.03em;
}
.text-gradient {
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin: 0 0 1.75rem; font-size: 1.08rem; color: var(--text-muted); max-width: 52ch; }

.plate-form { margin-bottom: 0; }
.hero-trust li {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.9rem; color: var(--text-muted);
}
.hero-trust svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

@media (min-width: 768px) {
  .hero-trust {
    flex-direction: row; flex-wrap: wrap; justify-content: flex-start;
    gap: 1.25rem 1.75rem;
  }
  .hero-content { padding: 3.5rem 0 4rem; }
}

/* Stats strip */
.logos-strip { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.logos-strip-inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
.stat-card {
  padding: 1rem; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border); text-align: center;
}
.stat-card strong { display: block; font-size: 1.35rem; color: var(--accent); }
.stat-card span { font-size: 0.8rem; color: var(--text-muted); }
@media (min-width: 768px) {
  .logos-strip-inner { grid-template-columns: repeat(4, 1fr); }
}

/* Sections */
.section { padding: 4rem 0; scroll-margin-top: calc(var(--header-h) + 1rem); }
.section-alt { background: var(--bg-elevated); }
.section-header { text-align: center; max-width: 780px; margin: 0 auto 2.5rem; }
.section-header-left { text-align: left; margin-left: 0; }
.section-header h2 { margin: 0 0 0.75rem; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em; }
.section-header p { margin: 0; color: var(--text-muted); }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
}
.step-card {
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 0.75rem;
  border-radius: 50%; background: var(--accent-glow); color: var(--accent);
  font-weight: 700;
}
.step-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.step-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.report-section {
  display: grid; gap: 2.5rem; align-items: center;
}
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.feature-icon { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.feature-list strong { display: block; margin-bottom: 0.2rem; }
.feature-list p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.report-visual img {
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .report-section { grid-template-columns: 1fr 1fr; }
}

/* Pricing */
.pricing-grid {
  display: grid; gap: 1rem;
}
.price-card {
  position: relative; padding: 1.75rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(37, 99, 235, 0.15);
}
.price-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 0.75rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.price-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.price-amount { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.price-unit { margin: 0 0 1.25rem; color: var(--text-muted); font-size: 0.9rem; }
.price-card ul { list-style: none; margin: 0 0 1.5rem; padding: 0; flex: 1; }
.price-card li {
  padding: 0.4rem 0 0.4rem 1.4rem; position: relative;
  color: var(--text-muted); font-size: 0.92rem;
}
.price-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700;
}
.pricing-note { margin: 1.5rem 0 0; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.15rem; cursor: pointer; font-weight: 600; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; float: right; color: var(--accent); font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 1.15rem 1rem; }
.faq-answer p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* SEO block */
.seo-block { padding-top: 2rem; }
.seo-content h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.seo-content p { color: var(--text-muted); margin: 0 0 1rem; }

/* CTA banner */
.cta-banner {
  padding: 3rem 0; background: linear-gradient(135deg, #1e3a5f 0%, #0c1628 100%);
  border-top: 1px solid var(--border);
}
.cta-banner-inner {
  display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start;
}
.cta-banner h2 { margin: 0 0 0.35rem; font-size: 1.5rem; }
.cta-banner p { margin: 0; color: var(--text-muted); }
@media (min-width: 768px) {
  .cta-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Footer */
.site-footer {
  padding: 3rem 0 0; background: #04080f; border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; gap: 2rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 32ch; }
.footer-contact a { color: var(--text); }
.site-footer h3 { margin: 0 0 0.75rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--text-muted); font-size: 0.92rem; text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 2.5rem; padding: 1.25rem 0; border-top: 1px solid var(--border); }
.footer-bottom-inner { text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.footer-legal-note { margin-top: 0.5rem !important; font-size: 0.78rem !important; opacity: 0.8; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

/* Auth & legal pages */
.page-auth { padding-top: 2rem; padding-bottom: 4rem; }
.card {
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.auth-form label { display: block; margin: 0 0 0.35rem; font-size: 0.9rem; font-weight: 600; }
.auth-form input {
  width: 100%; margin-bottom: 1rem; padding: 0.85rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit;
}
.auth-form input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.auth-switch { text-align: center; color: var(--text-muted); }
.auth-pack-note {
  margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12); color: #bfdbfe; font-size: 0.9rem;
}
.alert { padding: 1rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.alert-success { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.25); }
.alert-error { background: rgba(248, 113, 113, 0.12); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.25); }
.legal-content h1 { margin-bottom: 0.5rem; }
.legal-content .legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-content h2 { margin: 2rem 0 0.75rem; font-size: 1.2rem; }
.legal-content h3 { margin: 1.35rem 0 0.5rem; font-size: 1.05rem; color: var(--text); }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content ul, .legal-content ol { margin: 0 0 1rem; padding-left: 1.35rem; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-content table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem;
  font-size: 0.92rem;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--border); padding: 0.65rem 0.85rem;
  text-align: left; vertical-align: top; color: var(--text-muted);
}
.legal-content th { background: var(--bg-card); color: var(--text); font-weight: 600; }
.legal-content .legal-note {
  margin: 1.25rem 0; padding: 1rem 1.15rem; border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2);
  color: #bfdbfe; font-size: 0.92rem;
}
.account-cards { display: grid; gap: 1rem; }
.account-stat { text-align: center; }
.account-stat-label { display: block; color: var(--text-muted); font-size: 0.9rem; }
.account-stat-value { font-size: 2.5rem; color: var(--accent); }
.account-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.inline-form { display: inline; }

.status-page { text-align: center; padding: 4rem 0; }
.status-icon { font-size: 3rem; margin-bottom: 1rem; }

/* Panel cuenta */
.page-panel { padding-top: 2rem; padding-bottom: 4rem; }
.panel-header {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: 1.5rem;
}
.panel-header h1 { margin: 0 0 0.25rem; }
.panel-email { margin: 0; color: var(--text-muted); }
.panel-header-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.panel-grid {
  display: grid; gap: 1rem; margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .panel-header { flex-direction: row; align-items: center; justify-content: space-between; }
  .panel-grid { grid-template-columns: 280px 1fr; }
}
.account-stat-hint { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.card-desc { color: var(--text-muted); margin: 0 0 0.5rem; }
.panel-reports h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.empty-state { color: var(--text-muted); margin: 0; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td {
  padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border);
}
.data-table th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.status-badge {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
}
.status-ready { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.status-pending { background: rgba(251,191,36,0.15); color: #fcd34d; }
.status-failed { background: rgba(248,113,113,0.15); color: #fca5a5; }
@media (max-width: 640px) {
  .data-table thead { display: none; }
  .data-table tr { display: block; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem 0; }
  .data-table td { display: flex; justify-content: space-between; border: 0; padding: 0.5rem 1rem; }
  .data-table td::before { content: attr(data-label); color: var(--text-muted); font-weight: 600; margin-right: 1rem; }
}

/* Blog */
.blog-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card time { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-card h2 { margin: 0 0 0.65rem; font-size: 1.1rem; line-height: 1.35; }
.blog-card h2 a { color: var(--text); text-decoration: none; }
.blog-card h2 a:hover { color: var(--accent); }
.blog-card p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.92rem; }
.blog-read-more { font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.blog-back { display: inline-block; margin-bottom: 1rem; color: var(--text-muted); text-decoration: none; }
.blog-back:hover { color: var(--text); }
.blog-article-header { margin-bottom: 2rem; max-width: none; text-align: left; }
.blog-article-header time { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-article-header h1 {
  margin: 0; font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2; letter-spacing: -0.02em;
}
.blog-body { font-size: 1.05rem; line-height: 1.75; }
.blog-body > *:first-child { margin-top: 0; }
.blog-body h2 {
  margin: 2.25rem 0 0.85rem; font-size: 1.35rem;
  color: var(--text); letter-spacing: -0.02em;
}
.blog-body h3 { margin: 1.75rem 0 0.65rem; font-size: 1.15rem; color: var(--text); }
.blog-body p { margin: 0 0 1.15rem; color: var(--text-muted); }
.blog-body ul, .blog-body ol { margin: 0 0 1.25rem; padding-left: 1.35rem; color: var(--text-muted); }
.blog-body li { margin-bottom: 0.45rem; }
.blog-body a { color: var(--accent); font-weight: 500; }
.blog-body a:hover { text-decoration: underline; }
.blog-body img {
  width: 100%; max-width: 100%; height: auto; margin: 1.5rem 0;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.blog-body figure { margin: 1.5rem 0; }
.blog-body figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.blog-body blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(59, 130, 246, 0.06); color: var(--text-muted);
}
