/* =========================================================
   FILTRA TU PLACA — Design tokens
   Concepto: la placa vehicular como objeto de identidad.
   ========================================================= */
:root {
  /* Color */
  --navy:        #0B1F3A;
  --navy-2:      #123458;
  --navy-deep:   #081020;
  --yellow:      #F5B700;
  --yellow-deep: #C98F00;
  --sky:         #2E9BE0;
  --sky-deep:    #1B76B3;
  --green:       #1E9E6B;
  --green-deep:  #157A54;

  --paper:       #F5F6F8;
  --white:       #FFFFFF;
  --line:        #DEE3EA;
  --line-strong: #C4CCD8;
  --text:        #16212F;
  --text-muted:  #55677E;
  --text-soft:   #8695AA;

  --on-navy:        #E8ECF2;
  --on-navy-muted:  #93A4BE;
  --on-navy-line:   rgba(232, 236, 242, 0.14);

  /* Type */
  --f-display: 'Space Grotesk', 'Inter', sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(11, 31, 58, 0.04), 0 12px 32px rgba(11, 31, 58, 0.07);
  --shadow-navy: 0 20px 60px rgba(3, 9, 20, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy-deep);
  box-shadow: 0 6px 20px rgba(245, 183, 0, 0.28);
}

.btn-yellow:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 10px 28px rgba(245, 183, 0, 0.36); }

.btn-sm { padding: 10px 18px; font-size: 0.82rem; }

/* ----- NAV ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 16, 32, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--on-navy-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--on-navy);
  gap: 10px;
  cursor: pointer;
}

.brand span { color: var(--yellow); }

.brand-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: inline-block;
}

footer .brand-logo { height: 28px; }

.brand-icon {
  display: none;
  align-items: center;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  background: var(--yellow);
  border: 2px solid var(--navy-deep);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(245, 183, 0, 0.35);
}

.brand-icon i {
  width: 3px;
  height: 3px;
  background: var(--navy-deep);
  border-radius: 50%;
  position: relative;
}

.brand-icon i::before,
.brand-icon i::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--navy-deep);
  border-radius: 50%;
  top: 0;
}

.brand-icon i::before { left: -14px; }
.brand-icon i::after { left: 11px; }

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.9rem;
  color: var(--on-navy-muted);
  font-weight: 500;
}

.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--yellow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--on-navy-line);
  background: var(--navy-deep);
}

.mobile-menu a { color: var(--on-navy-muted); font-size: 1rem; }
.mobile-menu.open { display: flex; }

/* ----- HERO ----- */
.hero {
  position: relative;
  background: var(--navy);
  padding: 128px 0 72px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--on-navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--on-navy-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 90%);
}

.hero-content { position: relative; z-index: 2; }

.hero-intro { max-width: 680px; margin: 0 auto; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(245, 183, 0, 0.08);
  border: 1px solid rgba(245, 183, 0, 0.32);
  color: var(--yellow);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  color: var(--on-navy);
  margin-top: 20px;
}

.hero h1 .highlight-yellow { color: var(--yellow); }
.hero h1 .highlight-sky { color: var(--sky); }

.hero-lead {
  color: var(--on-navy-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin: 0 auto 48px;
  max-width: 520px;
}

/* ----- PLATE PANEL (elemento firma) ----- */
.plate-panel {
  max-width: 640px;
  margin: 0 auto 44px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-navy);
  overflow: hidden;
}

.plate-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--navy-deep);
}

.plate-panel-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}

.plate-panel-flag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--sky);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.plate-input-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 26px;
  background:
    repeating-linear-gradient(115deg, rgba(11, 31, 58, 0.035) 0 2px, transparent 2px 26px),
    var(--white);
  border-bottom: 1px dashed var(--line-strong);
  overflow: hidden;
}

.plate-bolt {
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7c8aa0, var(--navy-2));
  box-shadow: inset 0 0 0 2px rgba(11, 31, 58, 0.15);
}

#placaInput {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--navy-deep);
  padding: 6px 4px;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--f-mono);
  text-align: center;
}

#placaInput::placeholder { color: #C7CFDA; letter-spacing: 6px; }
#placaInput:focus { outline: none; }

.plate-scan {
  position: absolute;
  left: 0;
  top: 0;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 155, 224, 0.28), transparent);
  pointer-events: none;
  animation: plateScan 5s ease-in-out infinite;
}

@keyframes plateScan {
  0%, 15% { transform: translateX(-120%); }
  50% { transform: translateX(420%); }
  65%, 100% { transform: translateX(420%); }
}

.plate-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  flex-wrap: wrap;
}

.search-hint { margin: 0; font-size: 0.82rem; color: var(--text-soft); }
.search-hint .hint-yellow { color: var(--yellow-deep); font-weight: 600; }
.search-hint .hint-sky { color: var(--sky-deep); font-weight: 600; }
.search-hint .hint-green { color: var(--green-deep); font-weight: 600; }

.search-toast {
  display: none;
  margin: 0;
  padding: 12px 22px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--green-deep);
  background: rgba(30, 158, 107, 0.08);
  border-top: 1px solid rgba(30, 158, 107, 0.18);
}

/* ----- STATS ----- */
.stats {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
}

.stat {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 0 18px;
  border-left: 1px solid var(--on-navy-line);
}

.stat:first-child { border-left: none; }

.stat-num {
  display: block;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.4rem;
}

.num-yellow { color: var(--yellow); }
.num-sky { color: var(--sky); }
.num-green { color: var(--green); }

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--on-navy-muted);
}

/* ----- RECOVERY BAND (discreto) ----- */
.recovery-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recovery-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  flex-wrap: wrap;
}

.recovery-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.recovery-copy { flex: 1; min-width: 240px; }

.recovery-eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 3px;
}

.recovery-copy h2 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.4;
}

.recovery-copy h2 .highlight-yellow { color: var(--yellow-deep); }

.recovery-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 520px;
}

.recovery-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-whatsapp {
  background: var(--white);
  color: #1FA855;
  border: 1px solid rgba(31, 168, 85, 0.35);
  box-shadow: none;
  padding: 9px 18px;
  font-size: 0.82rem;
}

.btn-whatsapp:hover { background: rgba(31, 168, 85, 0.06); transform: none; }

.btn-whatsapp .wa-ico { color: #1FA855; font-size: 0.55rem; }

.recovery-link {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.recovery-link:hover { color: var(--navy); }

/* ----- SECTIONS ----- */
.section { padding: 88px 0; background: var(--white); }
.section-alt { background: var(--paper); }

.section-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  max-width: 640px;
}

.section-title .highlight-navy { color: var(--navy-2); }
.section-title .highlight-sky { color: var(--sky-deep); }
.section-title .highlight-green { color: var(--green-deep); }
.section-title .highlight-yellow { color: var(--yellow-deep); }

.section-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ----- STEPS (secuencia real: 1→2→3) ----- */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 18px;
}

.step-line {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
  margin-top: 24px;
}

.step { padding: 0; }

.step-num {
  display: inline-block;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  width: 48px; height: 48px;
  line-height: 46px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 18px;
}

.step h4 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ----- MODULE CARDS ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(11, 31, 58, 0.12); }

.card-yellow { border-top-color: var(--yellow); }
.card-sky { border-top-color: var(--sky); }
.card-green { border-top-color: var(--green); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  border-radius: 10px;
  background: var(--paper);
}

.badge {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
}

.badge-yellow { background: rgba(245, 183, 0, 0.12); color: var(--yellow-deep); }
.badge-sky { background: rgba(46, 155, 224, 0.12); color: var(--sky-deep); }
.badge-green { background: rgba(30, 158, 107, 0.12); color: var(--green-deep); }

.card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 20px; min-height: 60px; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.source-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-soft);
}

.card-btn {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--navy);
  transition: color 0.2s ease, gap 0.2s ease;
}

.card-btn:hover { color: var(--sky-deep); }

.card-featured {
  background: var(--navy);
  border-color: var(--navy);
}

.card-featured .card-icon { background: rgba(255, 255, 255, 0.08); }
.card-featured h4, .card-featured p { color: var(--on-navy); }
.card-featured .source-tag { color: var(--on-navy-muted); }
.card-featured .card-footer { border-top-color: var(--on-navy-line); }
.card-featured .card-btn { color: var(--yellow); }
.card-featured .card-btn:hover { color: var(--yellow-deep); }

/* ----- TIPS ----- */
.tips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.tip {
  display: flex;
  gap: 16px;
  padding: 26px 20px 26px 0;
  border-bottom: 1px solid var(--line);
}

.tip:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 26px; }
.tip:nth-child(even) { padding-left: 26px; }
.tip-wide { grid-column: 1 / -1; border-right: none; padding-left: 0; }

.tip-mark {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-top: 6px;
}

.tip-mark.tip-yellow { background: var(--yellow); }
.tip-mark.tip-sky { background: var(--sky); }
.tip-mark.tip-green { background: var(--green); }

.tip h4 { font-size: 0.98rem; margin-bottom: 6px; }
.tip p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ----- FAQ ----- */
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }

.faq {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
}

.faq summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px; height: 28px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  font-size: 1.1rem;
}

.faq[open] summary::after { content: '−'; background: var(--navy); color: var(--white); border-color: var(--navy); }

.faq p { color: var(--text-muted); font-size: 0.92rem; margin: 14px 0 0; max-width: 640px; }

/* ----- CTA BANNER ----- */
.cta-banner {
  background: var(--navy);
  padding: 64px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner-text h2 {
  color: var(--on-navy);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin: 0 0 6px;
}

.cta-banner-text h2 .highlight-yellow { color: var(--yellow); }
.cta-banner-text p { color: var(--on-navy-muted); margin: 0; font-size: 0.95rem; }

/* ----- DISCLAIMER ----- */
.disclaimer-section { padding: 48px 0; }

.disclaimer {
  padding: 22px 24px;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.7;
  background: var(--paper);
  border-left: 3px solid var(--line-strong);
  border-radius: 0 8px 8px 0;
}

.disclaimer strong { color: var(--text-muted); }

/* ----- FOOTER ----- */
footer { background: var(--navy-deep); padding: 34px 0; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links { display: flex; gap: 24px; font-size: 0.85rem; color: var(--on-navy-muted); }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { font-size: 0.8rem; color: var(--on-navy-muted); }

/* ----- LOGO REVEAL ----- */
.logo-reveal-overlay {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 16, 32, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.logo-reveal-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.logo-reveal-close {
  position: absolute; top: 28px; right: 28px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 183, 0, 0.1);
  border: 1px solid rgba(245, 183, 0, 0.3);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.logo-reveal-close:hover { background: var(--yellow); color: var(--navy-deep); transform: scale(1.08); }

.logo-reveal-content {
  display: flex; align-items: center; gap: 16px;
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.35s ease 0.12s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.logo-reveal-overlay.active .logo-reveal-content { opacity: 1; transform: scale(1); }

.logo-reveal-icon { font-size: 3.2rem; color: var(--yellow); }

.logo-reveal-text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 3rem;
  color: var(--on-navy);
}

.logo-reveal-text span { color: var(--yellow); }

.logo-reveal-slash {
  position: absolute; top: 50%; left: 50%;
  width: 160vw; height: 3px;
  background: linear-gradient(90deg, transparent, var(--sky), var(--yellow), transparent);
  transform: translate(-50%, -50%) rotate(-18deg) translateX(-120%);
  opacity: 0;
  box-shadow: 0 0 20px rgba(46, 155, 224, 0.5);
}

.logo-reveal-overlay.active .logo-reveal-slash { animation: slashSweep 0.55s ease forwards; }

@keyframes slashSweep {
  0% { transform: translate(-50%, -50%) rotate(-18deg) translateX(-120%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(-18deg) translateX(120%); opacity: 0; }
}

/* ----- ANIMATIONS ----- */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.26s; }
.delay-4 { animation-delay: 0.38s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ----- WHATSAPP WIDGET ----- */
.wa-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.wa-fab {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #1FA855;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}

.wa-fab:hover { transform: translateY(-2px) scale(1.03); }

.wa-fab-icon { font-size: 1.5rem; position: relative; z-index: 1; }

.wa-fab-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(31, 168, 85, 0.55);
  animation: waPulse 2.2s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  80% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

.wa-fab.has-badge::after {
  content: '1';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #E23D3D;
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.wa-panel {
  width: min(320px, 84vw);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.28);
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
}

.wa-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wa-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  background: var(--navy);
  color: var(--on-navy);
}

.wa-avatar {
  position: relative;
  width: 38px; 
  height: 38px;
  flex-shrink: 0;
  display: flex; 
  align-items: center; 
  justify-content: center;
  border-radius: 50%;
  background: var(--white); /* Cambiado a blanco */
  overflow: hidden; /* Asegura que la imagen o logo no sobrepase el círculo */
  padding: 4px; /* Opcional: genera un margen interno limpio alrededor del ícono */
}

/* Para asegurar que cualquier imagen dentro del avatar se mantenga centrada y proporcional */
.wa-avatar img,
.wa-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.wa-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1FA855;
  border: 2px solid var(--navy);
}

.wa-panel-head strong { display: block; font-family: var(--f-display); font-size: 0.92rem; }
.wa-panel-head span { display: block; font-size: 0.74rem; color: var(--on-navy-muted); }
.wa-panel-head > div { flex: 1; }

.wa-status {
  display: flex !important;
  align-items: center;
  gap: 5px;
}

.wa-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1FA855;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.wa-close {
  background: none;
  border: none;
  color: var(--on-navy-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
}

.wa-close:hover { color: var(--yellow); }

.wa-panel-body { padding: 16px; background: #E9EDF1; min-height: 52px; }

.wa-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border-radius: 12px 12px 12px 2px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.08);
}

.wa-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-soft);
  animation: waTypingBounce 1.1s ease-in-out infinite;
}

.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes waTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.wa-bubble {
  background: var(--white);
  border-radius: 12px 12px 12px 2px;
  padding: 12px 14px;
  font-size: 0.86rem;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.08);
}

.wa-bubble-in { animation: waBubbleIn 0.3s ease; }

@keyframes waBubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wa-panel-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.wa-panel-foot textarea {
  resize: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--f-body);
  font-size: 0.86rem;
  color: var(--text);
}

.wa-panel-foot textarea:focus { outline: none; border-color: var(--sky); }
.wa-panel-foot .btn { align-self: flex-end; }

/* ----- RESPONSIVE ----- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px 0; }
  .step-line { display: none; }
  .tip:nth-child(odd) { border-right: none; padding-right: 0; }
  .tip:nth-child(even) { padding-left: 0; }
}

@media (max-width: 720px) {
  .nav-links, .nav-inner > .btn { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 104px 0 56px; }
  .hero-intro { text-align: left; }

  .plate-panel-foot { flex-direction: column; align-items: stretch; }
  .plate-panel-foot .btn { width: 100%; }

  .stats { justify-content: flex-start; }
  .stat { border-left: none; border-top: 1px solid var(--on-navy-line); padding: 16px 0 0; text-align: left; }
  .stat:first-child { border-top: none; }

  .grid { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; }

  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }

  .cta-banner-inner { flex-direction: column; align-items: flex-start; }

  .logo-reveal-text { font-size: 2rem; }
  .logo-reveal-icon { font-size: 2.4rem; }

  .recovery-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .recovery-actions { width: 100%; }
  .btn-whatsapp { width: 100%; }

  .wa-widget { right: 14px; bottom: 14px; }
  .wa-panel { width: min(300px, 88vw); }
}

@media (max-width: 480px) {
  .brand { font-size: 1.05rem; }
  #placaInput { letter-spacing: 3px; }
  .plate-input-shell { padding: 24px 18px; }
}