/* AutoescuelaBot Marketing Site */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --accent: #25d366; /* WhatsApp green */
  --dark: #1a1a2e;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-600: #6c757d;
  --gray-900: #212529;
}

/* Base */
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
  width: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-900);
}

/* Navbar */
.navbar { padding: .75rem 0; }
.navbar-brand { font-size: 1.4rem; letter-spacing: -.02em; }
.nav-link { font-weight: 500; font-size: .95rem; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.hero .lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--gray-600);
  max-width: 540px;
}

/* Sections */
.section { padding: 5rem 0; }
.section-gray { background: var(--gray-50); }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
}

/* Feature cards */
.feature-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Steps */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Pain points */
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
}
.pain-icon {
  font-size: 1.5rem;
  color: #dc3545;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* Pricing */
.pricing-card {
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: transform .2s;
}
.pricing-card.highlighted {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(13,110,253,.15);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.pricing-period { font-size: .9rem; color: var(--gray-600); }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 0;
  font-size: .95rem;
}
.pricing-feature i { font-size: .85rem; }

/* FAQ */
.faq-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: .5rem;
}
.faq-item .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.25rem;
}
.faq-item .accordion-button:not(.collapsed) {
  background: var(--gray-50);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 0;
  border-radius: 16px;
}

/* WhatsApp mockup */
.wa-mockup {
  background: #efeae2;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.wa-bubble {
  padding: .6rem 1rem;
  border-radius: 8px;
  margin-bottom: .5rem;
  font-size: .9rem;
  max-width: 85%;
  line-height: 1.4;
}
.wa-bubble-in {
  background: #fff;
  border-top-left-radius: 0;
}
.wa-bubble-out {
  background: #d9fdd3;
  border-top-right-radius: 0;
  margin-left: auto;
}
.wa-bubble-time {
  font-size: .7rem;
  color: #667781;
  text-align: right;
  margin-top: .2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .pricing-card { padding: 1.5rem; }
  body { font-size: 16px; }
}

/* Pricing hero */
.pricing-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
}
.pricing-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.pricing-hero .lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--gray-600);
  max-width: 600px;
}

/* Billing toggle */
.billing-label { font-size: 1rem; transition: color .2s; }
.billing-toggle { cursor: pointer; }
.form-switch-lg .form-check-input {
  width: 3rem;
  height: 1.5rem;
}
.pricing-currency { font-size: 1.5rem; font-weight: 700; }
.pricing-interval { font-size: 1rem; font-weight: 400; color: var(--gray-600); }

/* Enterprise card */
.enterprise-card {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  color: #fff;
  border-radius: 16px;
  padding: 3rem;
}
.enterprise-card p { color: rgba(255,255,255,.8); }

/* Calculator */
.calculator-card {
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 2.5rem;
}
.calc-stat {
  padding: 1rem;
}
.calc-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.calc-label {
  font-size: .9rem;
  color: var(--gray-600);
  margin-top: .25rem;
}

/* Buttons */
.btn-lg { padding: .75rem 2rem; font-size: 1.1rem; font-weight: 600; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* Trust badges */
.trust-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--gray-600);
}
.trust-badge i { color: var(--accent); font-size: 1.1rem; }

/* ── Funcionalidades page ── */

/* Funcionalidades hero */
.funcionalidades-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
}
.funcionalidades-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.funcionalidades-hero .lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--gray-600);
  max-width: 620px;
}

/* Feature list (checkmarks) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .4rem 0;
  font-size: .95rem;
  line-height: 1.5;
}
.feature-list li i {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* WhatsApp avatar (reusable) */
.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.wa-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .85rem;
  flex-shrink: 0;
}

/* Feature visual panels */
.feature-visual {
  max-width: 420px;
  margin: 0 auto;
}
.visual-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

/* Matriculación steps */
.visual-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border-radius: 8px;
  margin-bottom: .5rem;
  background: var(--gray-50);
  transition: background .2s;
}
.visual-step.active {
  background: #e8f0fe;
  border: 1px solid var(--primary);
}
.visual-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}

/* Chat preview items */
.chat-preview-item {
  padding: .6rem .75rem;
  border-radius: 8px;
  margin-bottom: .25rem;
  transition: background .2s;
}
.chat-preview-item.active {
  background: #e8f0fe;
}
.chat-preview-item:not(.active):hover {
  background: var(--gray-50);
}

/* Document extraction */
.doc-extract-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid #f0f2f5;
}
.doc-extract-row:last-of-type {
  border-bottom: none;
}
.doc-extract-label {
  font-size: .85rem;
  color: var(--gray-600);
  font-weight: 500;
}
.doc-extract-value {
  font-size: .9rem;
  font-weight: 600;
}

/* Dashboard stats mini */
.stat-mini {
  background: var(--gray-50);
  border-radius: 8px;
  padding: .75rem;
  text-align: center;
}

/* Carnet cards */
.carnet-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 1rem .75rem;
  text-align: center;
  height: 100%;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.carnet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-color: var(--primary);
}
.carnet-code {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.carnet-name {
  font-size: .78rem;
  font-weight: 600;
  margin-top: .25rem;
  line-height: 1.3;
}
.carnet-desc {
  font-size: .7rem;
  color: var(--gray-600);
  margin-top: .15rem;
}

/* Bono items */
.bono-item {
  padding: .75rem 1rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: .5rem;
  transition: border-color .2s;
}
.bono-item.highlighted {
  border-color: var(--accent);
  background: rgba(37, 211, 102, .04);
}

/* Security badges */
.security-badge {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.security-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.security-badge i {
  font-size: 1.6rem;
  display: block;
  margin-bottom: .5rem;
}

/* Centro items (multi-tenant) */
.centro-item {
  padding: .75rem;
  border: 1px solid #f0f2f5;
  border-radius: 8px;
  margin-bottom: .5rem;
}
.centro-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

/* Responsive - Funcionalidades */
@media (max-width: 768px) {
  .funcionalidades-hero { padding: 3rem 0 2rem; }
  .feature-visual { max-width: 100%; }
  .carnet-card { padding: .75rem .5rem; }
  .carnet-code { font-size: 1.3rem; }
  .security-badge { padding: 1rem .75rem; }
  .security-badge i { font-size: 1.3rem; }
}

/* ── Blog ── */

/* Blog hero */
.blog-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
}
.blog-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.blog-hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--gray-600);
  max-width: 600px;
}

/* Blog cards */
.blog-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

/* ── Blog card cover images ── */
.blog-card-cover {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: filter .3s;
}
.blog-card:hover .blog-card-cover {
  filter: brightness(1.05);
}
.blog-card-cover-pattern {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    radial-gradient(circle at 20% 80%, currentColor 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, currentColor 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, currentColor 1.5px, transparent 1.5px);
  background-size: 40px 40px, 60px 60px, 80px 80px;
}
.blog-card-cover > .bi {
  font-size: 3rem;
  color: #fff;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
  transition: transform .3s;
}
.blog-card:hover .blog-card-cover > .bi {
  transform: scale(1.1);
}

/* Cover color variants */
.blog-card-cover--blue {
  background: linear-gradient(135deg, #1a73e8 0%, #4a90d9 50%, #1565c0 100%);
  color: #1a73e8;
}
.blog-card-cover--green {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 50%, #075e54 100%);
  color: #25d366;
}
.blog-card-cover--orange {
  background: linear-gradient(135deg, #f57c00 0%, #ff9800 50%, #e65100 100%);
  color: #f57c00;
}
.blog-card-cover--purple {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #6d28d9 100%);
  color: #7c3aed;
}
.blog-card-cover--red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  color: #ef4444;
}
.blog-card-cover--dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #1a1a2e;
}
.blog-card-cover--teal {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #0f766e 100%);
  color: #0d9488;
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-date {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--gray-600);
  margin-bottom: .75rem;
}
.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .75rem;
}
.blog-card-title a {
  color: var(--gray-900);
  text-decoration: none;
}
.blog-card-title a:hover {
  color: var(--primary);
}
.blog-card-excerpt {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 1rem;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap .2s;
}
.blog-card-link:hover {
  gap: .6rem;
  color: var(--primary-dark);
}

/* Blog article (single post) */
.blog-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 2rem;
}
.blog-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.blog-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.blog-meta {
  font-size: .88rem;
  color: var(--gray-600);
}
.blog-body {
  font-size: 1.05rem;
  line-height: 1.75;
}
.blog-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.blog-body p {
  margin-bottom: 1.25rem;
  color: var(--gray-900);
}
.blog-body ul,
.blog-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.blog-body li {
  margin-bottom: .5rem;
  line-height: 1.65;
}
.blog-body a:not(.btn) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-body a:not(.btn):hover {
  color: var(--primary-dark);
}

/* Responsive - Blog */
@media (max-width: 768px) {
  .blog-hero { padding: 3rem 0 2rem; }
  .blog-card-body { padding: 1.25rem; }
  .blog-card-title { font-size: 1.05rem; }
  .blog-article { padding-top: 1rem; }
  .blog-body { font-size: 1rem; }
  .blog-body h2 { font-size: 1.25rem; }
}

/* ── Cookie Consent Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #e9ecef;
  box-shadow: 0 -4px 24px rgba(0,0,0,.1);
  padding: .85rem 0;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cookie-banner-text {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.cookie-banner-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: .75rem;
  }
  .cookie-banner-text { font-size: .82rem; }
}
