/* ==========================================================================
   Comensal — Landing Page Design System
   Paleta, tipografía y estilos por sección del refactor de landing.
   Se carga DESPUÉS de main.css: hereda la mecánica del template base
   (header sticky, nav mobile, scroll-top, AOS vendor, etc.) y sobreescribe
   su theming con la nueva paleta y los componentes nuevos de la landing.
   ========================================================================== */

:root {
  --color-teal: #00A8A8;
  --color-teal-dark: #007B7B;
  --color-teal-light: #E6F7F7;
  --color-green: #8AB92D;
  --color-green-dark: #6A9020;
  --color-dark: #0D1F1F;
  --color-text: #1A2E2E;
  --color-text-mid: #3D5A5A;
  --color-text-light: #6A8A8A;
  --color-white: #FFFFFF;
  --color-gray-bg: #F4F8F8;
  --color-gray-line: #D8E8E8;
  --color-error: #d64545;
  --color-error-dark: #a83232;

  --font-base: 'Inter', sans-serif;
  --section-padding: clamp(64px, 8vw, 112px);
}

/* Remapeo de las variables del template base (main.css) a la nueva paleta,
   para que header/nav/footer/scroll-top hereden el theme sin reescribir
   toda su mecánica. */
:root {
  --default-font: var(--font-base);
  --heading-font: var(--font-base);
  --nav-font: var(--font-base);
  --background-color: var(--color-white);
  --default-color: var(--color-text-mid);
  --heading-color: var(--color-dark);
  --accent-color: var(--color-teal);
  --surface-color: var(--color-white);
  --contrast-color: var(--color-white);
  --nav-color: var(--color-text-mid);
  --nav-hover-color: var(--color-teal);
  --nav-mobile-background-color: var(--color-white);
  --nav-dropdown-background-color: var(--color-white);
  --nav-dropdown-color: var(--color-text-mid);
  --nav-dropdown-hover-color: var(--color-teal);
}

html { scroll-behavior: smooth; }

.light-background {
  --background-color: var(--color-gray-bg);
  --surface-color: var(--color-white);
}

.dark-background {
  --background-color: var(--color-dark);
  --default-color: rgba(255, 255, 255, 0.7);
  --heading-color: var(--color-white);
  --surface-color: #142e2e;
  --contrast-color: var(--color-white);
}

/* Superficies de navegador propias del sistema, no del default del user-agent */
::selection { background: var(--color-teal); color: var(--color-white); }
:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; }
.dark-background ::selection { background: var(--color-green); color: var(--color-dark); }

/* ==============================
   Tipografía base
   ============================== */
body { font-family: var(--font-base); color: var(--color-text-mid); }

h1, .h1 {
  font-family: var(--font-base);
  font-weight: 800;
  color: var(--color-dark);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2, .h2 {
  font-family: var(--font-base);
  font-weight: 700;
  color: var(--color-dark);
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
h3, .h3 { font-family: var(--font-base); font-weight: 600; font-size: 20px; }
h4 { font-family: var(--font-base); font-weight: 600; }
p { font-family: var(--font-base); font-weight: 400; font-size: 16px; line-height: 1.7; color: var(--color-text-mid); max-width: 70ch; }
small, .microcopy { font-family: var(--font-base); font-weight: 400; font-size: 13px; color: var(--color-text-light); }

.dark-background h1, .dark-background h2, .dark-background h3, .dark-background h4 { color: var(--color-white); }

.hero-gradient-text {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: none;
  color: var(--color-dark);
}
.section-title .lead {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-mid);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.dark-background .section-title h2 { color: var(--color-white); }
.dark-background .section-title .lead { color: rgba(255, 255, 255, 0.75); }

/* ==============================
   0. Barra social proof (ticker)
   ============================== */
.social-proof-bar {
  background: var(--color-teal);
  color: var(--color-white);
  padding: 9px 0;
  font-size: 13px;
  font-weight: 500;
  top: 0;
  z-index: 1031;
}
.ticker-wrapper { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-content { display: inline-block; padding-left: 100%; animation: ticker 26s linear infinite; }
.ticker-item { display: inline-block; }
.ticker-sep { display: inline-block; margin: 0 20px; opacity: 0.6; font-size: 10px; vertical-align: middle; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-content { animation: none; padding-left: 0; }
  .ticker-content .ticker-item ~ * { display: none; }
}

/* ==============================
   1. Navegación
   ============================== */
#header.sticky-top { top: 36px; z-index: 1020; }

.header {
  background: var(--color-white);
  padding: 14px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.header.nav-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(13, 31, 31, 0.1);
}
.header .logo img { max-height: 36px; }

.navmenu a, .navmenu a:focus {
  color: var(--color-text-mid);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}
.navmenu a:hover, .navmenu a.active, .navmenu > ul > li > a:focus { color: var(--color-teal); }
.navmenu > ul > li > a:before { background-color: var(--color-teal); }

.header .btn-getstarted, .header .btn-getstarted:focus {
  position: relative;
  overflow: hidden;
  background: var(--color-teal);
  color: var(--color-white);
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: normal;
}
.header .btn-getstarted:hover, .header .btn-getstarted:focus:hover {
  background: var(--color-teal-dark);
  color: var(--color-white);
}

/* ==============================
   2. Hero
   ============================== */
.hero-section { background: var(--color-gray-bg); padding: var(--section-padding) 0; }
.hero-content { max-width: 600px; }
.hero-headline { color: var(--color-dark); max-width: 600px; }
.hero-subheadline { color: var(--color-text-mid); font-size: 18px; margin-top: 16px; }

.hero-cta-group { gap: 16px 28px; margin-top: 28px; }

.hero-cta-primary.btn-get-started {
  position: relative;
  overflow: hidden;
  background: var(--color-teal);
  color: var(--color-white);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: normal;
  padding: 16px 32px;
  border-radius: 10px;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero-cta-primary.btn-get-started:hover {
  background: var(--color-teal-dark);
  color: var(--color-white);
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 168, 168, 0.28);
}

.hero-cta-secondary {
  color: var(--color-teal);
  font-weight: 600;
  gap: 8px;
}
.hero-cta-secondary:hover { color: var(--color-teal-dark); text-decoration: underline; }
.hero-cta-secondary i { font-size: 20px; }

.hero-img img { border-radius: 16px; box-shadow: 0 20px 50px rgba(13, 31, 31, 0.15); width: 100%; }

/* Animación de entrada al cargar (no scroll-triggered) */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-headline    { animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.hero-subheadline { animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
.hero-ctas        { animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
.hero-image       { animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }

@media (prefers-reduced-motion: reduce) {
  .hero-headline, .hero-subheadline, .hero-ctas, .hero-image { animation: none; }
}

/* ==============================
   3. Flujo operativo
   ============================== */
.flow-section { background: var(--color-white); padding: var(--section-padding) 0; }

.flow-steps { gap: 8px; }
.flow-step { flex: 1 1 0; min-width: 0; padding: 20px 6px; }

.flow-step-card {
  position: relative;
  background: var(--color-teal-light);
  border: 1.5px solid var(--color-teal);
  border-radius: 14px;
  padding: 34px 16px 20px;
  height: 100%;
}

.flow-step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-teal);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 168, 168, 0.35);
}

.flow-step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 168, 168, 0.15);
}
.flow-step-icon i { color: var(--color-teal); font-size: 1.5rem; }

.flow-step-title { font-weight: 700; font-size: 14px; color: var(--color-dark); margin-bottom: 8px; }
.flow-step-desc { font-weight: 400; font-size: 12px; color: var(--color-text-light); margin: 0; }

.flow-step-arrow i { color: var(--color-green); font-size: 1.6rem; }

.flow-closing { background: var(--color-teal-light); border-radius: 14px; padding: 28px; }

@media (max-width: 1024px) {
  .flow-step-arrow { display: flex !important; margin: 2px 0; }
  .flow-step-arrow i { transform: rotate(90deg); display: inline-block; }
}

/* ==============================
   4. Beneficios
   ============================== */
.benefits-section { background: var(--color-gray-bg); padding: var(--section-padding) 0; }

.benefit-card {
  background: var(--color-white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 168, 168, 0.08);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 168, 168, 0.14); }

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.benefit-icon i { color: var(--color-teal); font-size: 1.4rem; }

.benefit-title { font-weight: 700; font-size: 18px; color: var(--color-dark); margin-bottom: 10px; }
.benefit-desc { margin: 0; }

/* ==============================
   5. Dashboard preview (mockup inline)
   ============================== */
.dashboard-section {
  background: #0D1F1F;
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 120px) 0;
}

.dashboard-section::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 168, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 185, 45, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-section > * { position: relative; z-index: 1; }

.dashboard-section .section-title h2 {
  color: #FFFFFF;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 14px;
}
.dashboard-section .section-title .lead {
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(15px, 1.8vw, 18px);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

.dashboard-mockup-wrapper { margin-bottom: 0; }

.dashboard-mockup {
  display: flex;
  flex-direction: column;
  width: 92%;
  max-width: 820px;
  margin: 0 auto 48px;
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  transform-origin: center bottom;
  will-change: transform;
  /* Sombra con tinte teal para conectarlo con la paleta */
  box-shadow:
    0 0 0 1px rgba(0, 168, 168, 0.2),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 168, 168, 0.08);
}

.dash-window-bar {
  background: #1A3535;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dash-dot-red { background: #FF5F57; }
.dash-dot-yellow { background: #FFBD2E; }
.dash-dot-green { background: #28C840; }
.dash-window-title {
  margin-left: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.dash-body { display: flex; width: 100%; }

.dash-sidebar { width: 180px; flex: 0 0 180px; background: var(--color-dark); padding: 16px; }
.dash-logo-area { height: 32px; background: rgba(0, 168, 168, 0.3); border-radius: 6px; margin-bottom: 20px; }
.dash-menu-items { display: flex; flex-direction: column; gap: 8px; }
.dash-menu-item { width: 100%; height: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.dash-menu-item.active { background: rgba(0, 168, 168, 0.5); }

.dash-main { flex: 1; min-width: 0; padding: 20px; background: var(--color-white); }
.dash-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.dash-title { font-family: var(--font-base); font-weight: 600; font-size: 15px; color: var(--color-dark); }
.dash-subtitle { font-family: var(--font-base); font-weight: 400; font-size: 12px; color: var(--color-text-light); }

.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.dash-kpi { background: var(--color-gray-bg); border-radius: 10px; padding: 12px; border: 1px solid var(--color-gray-line); }
.kpi-label { font-size: 10px; color: var(--color-text-light); display: block; }
.kpi-value { font-family: var(--font-base); font-weight: 700; font-size: 16px; color: var(--color-dark); display: block; margin-top: 2px; }
.kpi-sub { font-size: 9px; color: var(--color-text-light); }
.dash-kpi.kpi-highlight { border-color: var(--color-teal); background: var(--color-teal-light); }
.kpi-badge {
  display: inline-block; margin-top: 4px;
  font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
}
.kpi-badge.alto { background: var(--color-teal); color: var(--color-white); }

.dash-table { width: 100%; overflow-x: auto; }
.dash-table-header, .dash-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 0.8fr;
}
.dash-table-header {
  background: var(--color-gray-bg);
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-light);
}
.dash-row {
  padding: 7px 10px;
  font-size: 11px;
  color: var(--color-text);
  border-bottom: 1px solid #F0F4F4;
  transition: background 0.15s ease;
}
.dash-row:hover { background: #F9FCFC; }
.dash-row-highlight { background: var(--color-teal-light); }
.dash-row-bajo { background: rgba(214, 69, 69, 0.05); }

.badge-alto, .badge-bajo {
  justify-self: start;
  font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
}
.badge-alto { background: var(--color-teal-light); color: var(--color-teal-dark); }
.badge-bajo { background: rgba(214, 69, 69, 0.1); color: var(--color-error-dark); }

@media (max-width: 768px) {
  .dash-body { flex-direction: column; }
  .dash-sidebar { display: none; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-table { overflow-x: auto; }
  .dash-table-header, .dash-row { min-width: 480px; }
}

.dashboard-indicators { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.indicator-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 168, 168, 0.12);
  border: 1px solid rgba(0, 168, 168, 0.35);
  color: #7ADEDF;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 24px;
  cursor: default;
  opacity: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.indicator-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00A8A8;
  flex-shrink: 0;
}
.indicator-chip:hover {
  background: rgba(0, 168, 168, 0.22);
  border-color: rgba(0, 168, 168, 0.6);
  color: #FFFFFF;
}

@keyframes chipBounce {
  0%   { opacity: 0; transform: scale(0.8) translateY(8px); }
  60%  { transform: scale(1.05) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.dashboard-indicators.is-visible .indicator-chip {
  animation: chipBounce 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.dashboard-indicators.is-visible .indicator-chip:nth-child(1) { animation-delay: 0ms; }
.dashboard-indicators.is-visible .indicator-chip:nth-child(2) { animation-delay: 70ms; }
.dashboard-indicators.is-visible .indicator-chip:nth-child(3) { animation-delay: 140ms; }
.dashboard-indicators.is-visible .indicator-chip:nth-child(4) { animation-delay: 210ms; }
.dashboard-indicators.is-visible .indicator-chip:nth-child(5) { animation-delay: 280ms; }
.dashboard-indicators.is-visible .indicator-chip:nth-child(6) { animation-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .indicator-chip { opacity: 1; }
  .dashboard-indicators.is-visible .indicator-chip { animation: none; }
}

.dashboard-cta {
  margin-top: 8px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
}
.dashboard-cta a {
  color: #8AB92D;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 185, 45, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.dashboard-cta a:hover { color: #A8D93E; border-color: rgba(138, 185, 45, 0.8); }

/* ==============================
   6. Testimonios / Stats
   ============================== */
.testimonials-section { background: var(--color-dark); padding: var(--section-padding) 0; }
.testimonials-section .section-title h2 { color: var(--color-white); }

.testimonial-quote-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 32px;
  max-width: 760px;
  margin: 0 auto 48px;
}
.testimonial-quote { font-size: 18px; font-style: italic; color: var(--color-white); margin: 0; text-align: center; }

.stat-counter { padding: 0 12px; }
.stat-counter-number { gap: 4px; }
.counter-prefix, .counter-value {
  font-family: var(--font-base);
  font-weight: 900;
  font-size: 52px;
  color: var(--color-green);
  line-height: 1;
}
.counter-suffix { font-weight: 900; font-size: 28px; color: var(--color-green); align-self: flex-end; margin-bottom: 6px; }
.stat-counter-label { color: rgba(255, 255, 255, 0.6); font-size: 13px; margin-top: 10px; }

@media (min-width: 992px) {
  .stats-counters > [class*="col-"]:not(:last-child) .stat-counter {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* ==============================
   7. Demo + Piloto (conversión)
   ============================== */
.conversion-section { background: var(--color-white); padding: var(--section-padding) 0; }
.conversion-columns { row-gap: 32px; }

.conversion-card { background: var(--color-white); border-radius: 16px; padding: 0; position: relative; overflow: hidden; }
.demo-card { border: 2px solid var(--color-teal); box-shadow: 0 16px 40px rgba(0, 168, 168, 0.12); }
.pilot-card { border: 2px solid var(--color-green); box-shadow: 0 16px 40px rgba(138, 185, 45, 0.14); }

.conversion-card-header { padding: 32px 36px 20px; }
.demo-card .conversion-card-header { background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-gray-bg) 100%); }
.pilot-card .conversion-card-header { background: linear-gradient(135deg, #F0F8E0 0%, var(--color-gray-bg) 100%); }
.conversion-card-body { padding: 4px 36px 32px; }

.badge-popular {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-green);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-block;
  z-index: 1;
}
.pilot-card .conversion-card-header { padding-top: 44px; }

.conversion-card-title { font-weight: 700; font-size: 22px; color: var(--color-dark); margin-top: 0; margin-bottom: 10px; }
.conversion-card-desc { margin-bottom: 16px; }

.conversion-badges { font-size: 13px; font-weight: 600; color: var(--color-text-mid); margin-bottom: 0; }
.badge-urgency { display: block; font-size: 13px; font-weight: 600; color: var(--color-green-dark); margin-bottom: 20px; }

.pilot-includes-list { margin: 0 0 20px; padding: 0; }
.pilot-includes-list li { font-size: 14px; color: var(--color-text-mid); margin-bottom: 8px; }

.conversion-form .form-group { margin-bottom: 4px; }
.conversion-form label {
  display: block;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-mid);
  margin-bottom: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.conversion-form .form-group:focus-within label { color: var(--color-teal); transform: translateY(-1px); }
.conversion-form .form-control {
  border: 1.5px solid var(--color-gray-line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  width: 100%;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.conversion-form .form-control:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.15);
  outline: none;
}
.conversion-form .form-control.input-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}
.form-hint { margin-top: 4px; }

.field-error { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--color-error); }

.error-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(214, 69, 69, 0.08);
  border: 1px solid rgba(214, 69, 69, 0.25);
  color: var(--color-error-dark);
  font-size: 14px;
}

.success-message {
  margin-top: 8px;
  padding: 20px;
  border-radius: 12px;
  background: var(--color-teal-light);
  border: 1px solid var(--color-teal);
  color: var(--color-teal-dark);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.hidden { display: none !important; }

.btn-conversion {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-white);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn-demo { background: var(--color-teal); }
.btn-demo:hover:not(:disabled) { background: var(--color-teal-dark); transform: scale(1.02); }
.btn-pilot { background: var(--color-green); }
.btn-pilot:hover:not(:disabled) { background: var(--color-green-dark); transform: scale(1.02); }
.btn-conversion:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.conversion-microcopy { margin-top: 16px; font-size: 13px; color: var(--color-text-light); text-align: center; }

/* Al enviar con éxito, landing-interactions.js agrega .is-submitted al
   <form>: oculta los campos y el botón, dejando visible #success-demo /
   #success-piloto (fuera del form, ver Blade). */
.conversion-form.is-submitted .conversion-form-fields,
.conversion-form.is-submitted .btn-conversion { display: none; }

.trust-badges-row { gap: 24px; margin-top: 48px; }
.trust-badge { font-size: 13px; color: var(--color-text-light); }

@media (max-width: 768px) {
  .conversion-card-header { padding: 28px 22px 16px; }
  .conversion-card-body { padding: 4px 22px 28px; }
}

/* ==============================
   Botones — shimmer effect
   ============================== */
.hero-cta-primary::after,
.header .btn-getstarted::after,
.btn-conversion::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.hero-cta-primary:hover::after,
.header .btn-getstarted:hover::after,
.btn-conversion:hover:not(:disabled)::after {
  left: 140%;
  transition: left 0.55s ease;
}

/* ==============================
   WhatsApp flotante
   ============================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--color-white);
  border-radius: 50px;
  padding: 12px 20px;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 9999;
  animation: waPulse 2.2s ease-out infinite;
}
.whatsapp-float:hover {
  animation: none;
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}
.whatsapp-float i { font-size: 20px; }

@keyframes waPulse {
  0%   { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

@media (max-width: 480px) {
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; }
}

/* ==============================
   Footer
   ============================== */
.footer { padding: 56px 0 24px; }
.footer h4 { color: var(--color-white); font-size: 15px; margin-bottom: 10px; }
.footer .icon { color: var(--color-teal-light); }
.footer .social-links a { color: var(--color-teal-light); border-color: rgba(255, 255, 255, 0.2); }
.footer .social-links a:hover { color: var(--color-white); border-color: var(--color-white); }
.footer .copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer .copyright p { color: rgba(255, 255, 255, 0.4); font-size: 12px; }

.footer-logo-col .logo img {
  height: 36px;
  width: auto;
  max-height: none;
  filter: brightness(0) invert(1);
}

/* ==============================
   Animaciones globales (IntersectionObserver, ver landing-interactions.js)
   ============================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.scroll-reveal-scale { transform: translateY(28px) scale(0.96); }
.scroll-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
}
