/* =========================================================
   COMELÓN — Landing design system
   Tokens exactos del brand brief. No usar colores/fuentes
   fuera de esta paleta.
   ========================================================= */

:root {
  --bg: #FFF8ED;
  --surface: #FFFFFF;
  --surfaceMuted: #F6EBDD;
  --text: #173D2B;
  --textMuted: #5E625B;
  --textOnDark: #FFFFFF;
  --brand: #173D2B;
  --brandSoft: #5F7F45;
  --brandTint: #E8F0E7;
  --accent: #F4510B;
  --accentSoft: #FF8A3D;
  --accentTint: #FFF0E6;
  --track: #E8F0E7;
  --divider: #F6EBDD;

  --forest: #123B2A;
  --orange: #F36B21;
  --avocado: #6B8E3D;
  --mango: #F5A623;
  --cream: #F8F3E8;
  --charcoal: #17201B;
  --gray: #7A8078;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;

  --shadow-sm: 0 4px 12px rgba(23, 61, 43, 0.05);
  --shadow-md: 0 6px 16px rgba(23, 61, 43, 0.06);
  --shadow-lg: 0 10px 24px rgba(23, 61, 43, 0.08);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Archivo Black', 'Inter', sans-serif;
  --font-logo: 'Baloo 2', 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brandSoft);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--accentSoft);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- A11y ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--brand);
  color: var(--textOnDark);
  padding: var(--s-3) var(--s-4);
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.section {
  padding: 72px 0;
}

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

.section-head .overline {
  display: block;
  margin-bottom: var(--s-2);
}

.section-head .title {
  margin-bottom: var(--s-3);
}

.section-head .lead {
  color: var(--textMuted);
  font-size: 17px;
}

/* ---------- Tipografía ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

.title {
  font-size: 34px;
}

.section-title {
  font-size: 30px;
}

.overline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brandSoft);
}

.lead {
  color: var(--textMuted);
  font-size: 17px;
  line-height: 1.65;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--textOnDark);
  box-shadow: 0 6px 16px rgba(244, 81, 11, 0.22);
}

.btn-primary:hover {
  background-color: var(--accentSoft);
  color: var(--textOnDark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(244, 81, 11, 0.28);
}

.btn-primary:active {
  background-color: var(--accent);
  transform: translateY(0);
}

.btn-ghost {
  background-color: var(--surface);
  color: var(--brand);
  border-color: var(--brand);
}

.btn-ghost:hover {
  background-color: var(--brandTint);
  color: var(--brand);
}

/* ---------- Header ---------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 248, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.main-header.is-sticky {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 248, 237, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
}

.logo {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -2%;
  color: var(--forest);
  line-height: 1;
}

.logo:hover {
  color: var(--forest);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav-links a {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.lang-wrap {
  display: flex;
  align-items: center;
}

.lang-dd {
  position: relative;
  display: inline-flex;
}

.lang-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
  background-color: var(--surface);
  border: 2px solid var(--divider);
  border-radius: var(--r-pill);
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lang-dd-btn:hover {
  border-color: var(--brandSoft);
  background-color: var(--brandTint);
}

.lang-dd-btn:focus-visible {
  outline: 3px solid var(--accentSoft);
  outline-offset: 2px;
}

.lang-dd-globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brandSoft);
  flex-shrink: 0;
}

.lang-dd-globe svg {
  display: block;
}

.lang-dd-current {
  white-space: nowrap;
}

.lang-dd-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--textMuted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lang-dd.is-open .lang-dd-caret {
  transform: rotate(180deg);
}

.lang-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.lang-dd.is-open .lang-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dd-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-dd-menu li:hover {
  background: var(--brandTint);
  color: var(--brand);
}

.lang-dd-menu li[aria-selected="true"] {
  background: var(--brandTint);
  color: var(--brand);
}

.lang-dd-menu li:focus-visible {
  outline: 3px solid var(--accentSoft);
  outline-offset: -1px;
}

.lang-dd-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.lang-dd-check {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.lang-dd-menu li[aria-selected="true"] .lang-dd-check {
  opacity: 1;
}

.toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  position: relative;
}

.toggle-btn i,
.toggle-btn i::before,
.toggle-btn i::after {
  content: '';
  position: absolute;
  left: 8px;
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background-color: var(--brand);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toggle-btn i {
  top: 18px;
}

.toggle-btn i::before {
  top: -7px;
}

.toggle-btn i::after {
  top: 7px;
}

body.menu-open .toggle-btn i {
  background-color: transparent;
}

body.menu-open .toggle-btn i::before {
  transform: rotate(45deg);
  top: 0;
}

body.menu-open .toggle-btn i::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 81, 11, 0.18) 0%, transparent 70%);
  top: -160px;
  right: -120px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 127, 69, 0.14) 0%, transparent 70%);
  bottom: -180px;
  left: -140px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .tagline {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: var(--s-4);
}

.hero-copy .tagline em {
  font-style: normal;
  color: var(--accent);
}

.hero-copy .subcopy {
  font-size: 18px;
  color: var(--textMuted);
  max-width: 480px;
  margin-bottom: var(--s-8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.hero-badge {
  margin-top: var(--s-4);
}

.hero-badge img {
  height: 52px;
  width: auto;
  transition: transform 0.2s ease;
}

.hero-badge:hover img {
  transform: scale(1.05);
}

/* Hero visual: mascota + frame con dashboard */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 280px;
}

.mascot-wrap::before {
  content: '';
  position: absolute;
  inset: 8% 6% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 81, 11, 0.25) 0%, transparent 70%);
  z-index: -1;
}

.mascot-wrap img,
.mascot-wrap video {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  display: block;
}

.mascot-video {
  object-fit: contain;
  aspect-ratio: auto;
}

/* ---------- Hero slider (estilo original: tomando foto + comida pasando) ---------- */
.banner-slider {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 56px;
}

.slider-mobile-frame {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.slider-mobile-frame > img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.scanner-scan {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 300px;
}

.scanner-scan img {
  filter: brightness(0);
  opacity: 0.35;
  width: 100%;
  height: auto;
}

.scanner-bar {
  position: absolute;
  inset: 30px 24px;
}

.scanner-bar::before {
  content: '';
  height: 4px;
  left: 0;
  width: 100%;
  background-color: var(--accent);
  border-radius: 3px;
  position: absolute;
  top: 0;
  animation: topSlide 2s linear infinite;
}

@keyframes topSlide {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* ---------- Plato slider (dentro del frame) ---------- */
.plato-slider {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 310px;
  height: 310px;
  overflow: hidden;
  border-radius: 12px;
  z-index: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plato-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: platoFade 12.5s infinite;
}

@keyframes platoFade {
  0%, 16%   { opacity: 1; }
  20%, 100% { opacity: 0; }
}

/* Dashboard mockup */
.dashboard {
  position: absolute;
  z-index: 4;
  right: -100px;
  bottom: -54px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  min-width: 104px;
}

.ring {
  position: relative;
  width: 84px;
  height: 84px;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--track);
  stroke-width: 10;
}

.ring-bar {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 345.6;
  stroke-dashoffset: 345.6;
}

.ring.is-animating .ring-bar {
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ring-value {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.ring-label {
  font-size: 8px;
  font-weight: 500;
  color: var(--textMuted);
  margin-top: 2px;
  line-height: 1.2;
}

/* ---------- Cómo funciona ---------- */
.how-section {
  background-color: var(--surface);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--textOnDark);
  background: var(--accent);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: var(--s-4);
}

.step-card .title {
  font-size: 20px;
  margin-bottom: var(--s-2);
}

.step-card p {
  color: var(--textMuted);
  font-size: 15px;
  line-height: 1.6;
}

.step-media {
  margin-top: var(--s-5);
  border-radius: var(--r-md);
  overflow: hidden;
}

.step-media img {
  width: 100%;
  height: 240px;
  object-fit: contain;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--accentTint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}

.feature-icon img {
  width: 26px;
  height: 26px;
}

.feature-card .title {
  font-size: 20px;
  margin-bottom: var(--s-2);
}

.feature-card p {
  color: var(--textMuted);
  font-size: 15px;
  line-height: 1.6;
}

.feature-media {
  margin-top: var(--s-5);
  border-radius: var(--r-md);
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature-card:hover .feature-media img {
  transform: scale(1.04);
}

/* ---------- Testimonios ---------- */
.testimonials-section {
  background-color: var(--surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--brandTint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}

.testimonial-handle {
  font-size: 12px;
  color: var(--textMuted);
  line-height: 1.3;
}

.stars {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--mango);
  flex-shrink: 0;
  line-height: 1;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}

/* ---------- Datos honestos ---------- */
.honest-section {
  background-color: var(--brandTint);
}

.honest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.honest-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}

.honest-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--accentTint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.honest-icon img {
  width: 20px;
  height: 20px;
}

.honest-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.honest-card strong {
  font-weight: 700;
  color: var(--text);
}

/* ---------- Precios ---------- */
.pricing-table-wrap {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.pricing-table th,
.pricing-table td {
  padding: var(--s-4) var(--s-6);
  text-align: center;
  border-bottom: 1px solid var(--divider);
  font-size: 15px;
}

.pricing-table thead th {
  padding: var(--s-8) var(--s-6);
  background: var(--bg);
}

.pricing-table th.plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  text-align: left;
  color: var(--text);
}

.pricing-table th.plan-free {
  background: var(--surface);
  color: var(--text);
}

.pricing-table th.plan-premium {
  background: var(--brandTint);
  color: var(--text);
}

.pricing-table td.row-label {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.pricing-table td.plan-free {
  background: var(--surface);
}

.pricing-table td.plan-premium {
  background: var(--brandTint);
}

.pricing-table .check,
.pricing-table .cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
}

.pricing-table .check {
  background: var(--brandTint);
}

.pricing-table .check img {
  width: 12px;
  height: 12px;
}

.pricing-table .cross {
  background: var(--surfaceMuted);
  opacity: 0.6;
}

.pricing-table .cross img {
  width: 12px;
  height: 12px;
}

.pricing-table .price-tag {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.pricing-table .price-tag.small {
  font-weight: 600;
  font-size: 15px;
}

.pricing-note {
  margin-top: var(--s-4);
  text-align: center;
  color: var(--textMuted);
  font-size: 13px;
  line-height: 1.6;
}

.pricing-cta {
  margin-top: var(--s-6);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item.is-open {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--brandTint);
  transition: background-color 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--brand);
  border-radius: 2px;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 13px;
  left: 8px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  top: 8px;
  left: 13px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-item.is-open .faq-icon {
  background: var(--accentTint);
}

.faq-item.is-open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  display: none;
  padding: 0 var(--s-5) var(--s-5);
}

.faq-answer p {
  color: var(--textMuted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.main-footer {
  background-color: var(--brand);
  color: var(--textOnDark);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--s-8);
  padding-bottom: var(--s-8);
}

.footer-logo {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -2%;
  color: var(--textOnDark);
  line-height: 1;
  margin-bottom: var(--s-3);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.footer-col .title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--s-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--textOnDark);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-legal a:hover {
  color: var(--textOnDark);
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Legal pages (términos / privacidad) ---------- */
.legal-main {
  padding: 56px 0 80px;
}

.legal-header {
  border-bottom: 1px solid var(--divider);
  padding-bottom: var(--s-6);
  margin-bottom: var(--s-8);
}

.legal-header .overline {
  display: block;
  margin-bottom: var(--s-2);
}

.legal-header h1 {
  font-size: 34px;
  margin-bottom: var(--s-3);
}

.legal-header .updated {
  color: var(--textMuted);
  font-size: 13px;
  font-weight: 500;
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.legal-body h2 {
  font-size: 22px;
  margin: var(--s-8) 0 var(--s-3);
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text);
}

.legal-body h3 {
  font-size: 17px;
  margin: var(--s-6) 0 var(--s-2);
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text);
}

.legal-body p {
  margin-bottom: var(--s-4);
  color: var(--text);
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-6);
  list-style: disc;
}

.legal-body ol {
  list-style: decimal;
}

.legal-body li {
  margin-bottom: var(--s-2);
  color: var(--text);
}

.legal-body strong {
  font-weight: 700;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-4) 0 var(--s-6);
  font-size: 14px;
}

.legal-body th,
.legal-body td {
  border: 1px solid var(--divider);
  padding: var(--s-3);
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: var(--bg);
  font-weight: 700;
}

.legal-body blockquote {
  border-left: 3px solid var(--brandSoft);
  background: var(--brandTint);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s-3) var(--s-4);
  margin: var(--s-4) 0;
}

.legal-body blockquote p {
  margin-bottom: 0;
}

.legal-note {
  margin-top: var(--s-8);
  padding: var(--s-4) var(--s-5);
  background: var(--accentTint);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 14px;
  color: var(--brand);
  margin-bottom: var(--s-6);
}

.legal-back:hover {
  color: var(--brandSoft);
}

/* ---------- Auth (login / account / callback) ---------- */
.auth-main {
  padding: 56px 0 80px;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.auth-card .overline {
  display: block;
}

.auth-title {
  font-size: 28px;
  margin-bottom: var(--s-1);
}

.auth-sub {
  color: var(--textMuted);
  font-size: 15px;
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.field label,
.field > span {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--divider);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--brandSoft);
  box-shadow: 0 0 0 3px rgba(95, 127, 69, 0.15);
}

.btn-block {
  width: 100%;
}

.btn-danger {
  background-color: var(--accent);
  color: var(--textOnDark);
  box-shadow: 0 6px 16px rgba(244, 81, 11, 0.22);
}

.btn-danger:hover {
  background-color: var(--accentSoft);
  color: var(--textOnDark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(244, 81, 11, 0.28);
}

.btn-danger:active {
  background-color: var(--accent);
  transform: translateY(0);
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--textMuted);
  font-size: 13px;
  font-weight: 500;
  margin: var(--s-2) 0;
}

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

.auth-note {
  font-size: 13px;
  color: var(--textMuted);
  text-align: center;
  line-height: 1.6;
}

.auth-back {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.auth-back a {
  color: var(--brand);
}

.auth-back a:hover {
  color: var(--brandSoft);
}

.auth-alert {
  background: var(--accentTint);
  color: var(--text);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  font-size: 14px;
  line-height: 1.5;
}

.auth-banner {
  max-width: 640px;
  margin: 0 auto var(--s-6);
  background: var(--brandTint);
  color: var(--text);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.auth-spinner {
  display: flex;
  justify-content: center;
  padding: var(--s-4) 0;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--brandTint);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Account page */
.account-email {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}

.account-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--brandSoft);
}

.account-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.account-actions {
  margin-top: var(--s-2);
}

/* Modal de confirmación de borrado */
.modal {
  width: min(92vw, 460px);
  border: none;
  border-radius: var(--r-xl);
  padding: 0;
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(23, 61, 43, 0.4);
  backdrop-filter: blur(2px);
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--s-6) var(--s-6) var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.modal-title {
  font-size: 22px;
}

.modal-text {
  color: var(--textMuted);
  font-size: 15px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-2);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .subcopy {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-badge {
    justify-content: center;
  }

  .hero-visual {
    margin-top: var(--s-6);
  }

  .features-grid,
  .honest-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    gap: var(--s-4);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .title {
    font-size: 28px;
  }

  .section-title {
    font-size: 26px;
  }

  .toggle-btn {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
    padding: calc(64px + var(--s-6)) var(--s-5) var(--s-6);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  body.menu-open .nav {
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-3);
  }

  .nav-links a {
    display: block;
    padding: var(--s-2) 0;
  }

  .header-cta {
    flex-wrap: nowrap;
    gap: var(--s-2);
  }

  .header-cta .btn {
    width: auto;
    flex-shrink: 1;
    min-width: 0;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lang-wrap {
    width: auto;
  }

  .lang-dd {
    width: auto;
    flex-shrink: 0;
  }

  .lang-dd-btn {
    width: auto;
    justify-content: center;
    padding: 10px;
  }

  .lang-dd-current,
  .lang-dd-caret {
    display: none;
  }

  .lang-dd-menu {
    right: 0;
    left: auto;
    width: auto;
    min-width: 190px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .honest-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy .tagline {
    font-size: 34px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--s-4);
  }

  .header-inner {
    gap: var(--s-2);
  }

  .logo {
    font-size: 26px;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-cta .btn {
    padding: 9px 12px;
    font-size: 12px;
  }

  .lang-dd-btn {
    padding: 9px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero-copy .tagline {
    font-size: 30px;
  }

  .hero-copy .subcopy {
    font-size: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .slider-mobile-frame {
    width: 78%;
  }

  .scanner-scan {
    width: 190px;
  }

  .scanner-bar {
    inset: 20px 15px;
  }

  .dashboard {
    position: static;
    transform: none;
    margin: var(--s-4) auto 0;
  }

  .plato-slider {
    width: 190px;
    height: 190px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: var(--s-3) var(--s-4);
  }

  .auth-card {
    padding: var(--s-6) var(--s-5);
  }
}
