/* ==========================================================================
   Pídelo por Chat Landing Page Styles
   Aesthetic: Warm Mexican Hospitality meets Modern SaaS
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Warm Mexican palette */
  --color-primary: #1B5E3C;          /* Deep forest green */
  --color-primary-light: #2E7D52;
  --color-primary-dark: #0F3D26;

  --color-secondary: #D4A574;         /* Warm terracotta/sand */
  --color-secondary-light: #E8C9A8;
  --color-secondary-dark: #B8845A;

  --color-accent: #25D366;            /* WhatsApp green */
  --color-accent-dark: #128C7E;

  --color-danger: #DC3545;
  --color-success: #25D366;

  /* Neutrals - Warm tinted */
  --color-bg: #FBF8F4;                /* Warm off-white */
  --color-bg-alt: #F5EFE6;
  --color-bg-dark: #1C1917;

  --color-text: #2C2520;              /* Warm dark brown */
  --color-text-muted: #6B5B4F;
  --color-text-light: #A89888;
  --color-text-inverse: #FBF8F4;

  --color-border: #E8DFD4;
  --color-border-dark: #D4C4B5;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-4xl: clamp(2.5rem, 1.75rem + 3.75vw, 4rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 72px;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(44, 37, 32, 0.05);
  --shadow-md: 0 4px 12px rgba(44, 37, 32, 0.08);
  --shadow-lg: 0 12px 32px rgba(44, 37, 32, 0.12);
  --shadow-xl: 0 24px 48px rgba(44, 37, 32, 0.16);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark sections */
.benefits,
.cta-section {
  --color-text: var(--color-text-inverse);
  --color-text-muted: rgba(251, 248, 244, 0.7);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--space-lg);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-xl);
  }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn__icon--left {
  margin-right: var(--space-xs);
}

/* Primary Button */
.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
}

/* WhatsApp Button */
.btn--whatsapp {
  background: transparent;
  color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn--whatsapp:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* Button Sizes */
.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
}

.btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(251, 248, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
  background: rgba(251, 248, 244, 0.95);
  box-shadow: var(--shadow-sm);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

.header__logo-icon {
  width: 36px;
  height: 36px;
}

.header__logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.header__logo-text {
  display: none;
}

@media (min-width: 480px) {
  .header__logo-text {
    display: block;
  }
}

/* Mobile Menu Toggle */
.header__menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.header__menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-bar:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
  .header__menu-toggle {
    display: none;
  }
}

/* Navigation */
.header__nav-list {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-md);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.header__nav-list.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.header__nav-link {
  display: block;
  padding: var(--space-md);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.header__nav-link:hover,
.header__nav-link:focus {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

@media (min-width: 768px) {
  .header__nav-list {
    position: static;
    flex-direction: row;
    gap: var(--space-sm);
    padding: 0;
    background: transparent;
    border: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .header__nav-link {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
  }

  .header__nav-link:hover,
  .header__nav-link:focus {
    background: transparent;
  }
}

.header__cta {
  display: none;
}

@media (min-width: 768px) {
  .header__cta {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   Parallax Background
   -------------------------------------------------------------------------- */
.parallax-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer {
    transform: none !important;
  }
}

/* Hero parallax layers */
.parallax-layer--1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-secondary-light) 0%, transparent 70%);
  opacity: 0.4;
  border-radius: 50%;
}

.parallax-layer--2 {
  bottom: 0;
  left: -10%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--color-primary) 0%, transparent 70%);
  opacity: 0.08;
}

.parallax-layer--3 {
  top: 30%;
  left: 50%;
  width: 300px;
  height: 300px;
  background:
    repeating-linear-gradient(
      45deg,
      var(--color-secondary) 0px,
      var(--color-secondary) 1px,
      transparent 1px,
      transparent 20px
    );
  opacity: 0.1;
  transform: translateX(-50%);
}

/* Benefits parallax */
.parallax-layer--4 {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(37, 211, 102, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, var(--color-secondary-dark) 0%, transparent 50%);
  opacity: 0.3;
}

/* CTA parallax */
.parallax-layer--5 {
  top: -20%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 60%);
  opacity: 0.1;
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
  overflow: hidden;
}

.hero__container {
  display: grid;
  gap: var(--space-3xl);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--space-lg);
}

@media (min-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-4xl);
    padding-inline: var(--space-xl);
  }
}

.hero__content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero__content {
    text-align: left;
  }
}

.hero__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease forwards;
}

/* Ensure content is visible even if animations don't run */
.hero__title,
.hero__subtitle,
.hero__ctas,
.hero__demo-note,
.hero__visual {
  opacity: 1;
}

.hero__title-accent {
  display: block;
  color: var(--color-primary);
  font-style: italic;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

@media (min-width: 1024px) {
  .hero__subtitle {
    margin-inline: 0;
  }
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (min-width: 480px) {
  .hero__ctas {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .hero__ctas {
    justify-content: flex-start;
  }
}

.hero__demo-note {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* Phone Mockup */
.hero__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  perspective: 1000px;
}

.phone-mockup__frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: #1C1917;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    var(--shadow-xl),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform var(--transition-slow);
}

.phone-mockup:hover .phone-mockup__frame {
  transform: rotateY(0) rotateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .phone-mockup__frame {
    transform: none;
  }

  .phone-mockup:hover .phone-mockup__frame {
    transform: none;
  }
}

.phone-mockup__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1C1917;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: #ECE5DD;
  border-radius: 32px;
  overflow: hidden;
}

/* Chat Demo */
.chat-demo {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-demo__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-md) var(--space-md);
  background: var(--color-primary);
  color: white;
}

.chat-demo__avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: white;
  border-radius: 50%;
}

.chat-demo__name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.chat-demo__messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  overflow-y: auto;
}

.chat-msg {
  max-width: 85%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.4;
}

.chat-msg--incoming {
  align-self: flex-start;
  background: white;
  border-bottom-left-radius: 4px;
}

.chat-msg--outgoing {
  align-self: flex-end;
  background: #DCF8C6;
  border-bottom-right-radius: 4px;
}

.chat-msg--confirm {
  background: #D4EDDA;
}

.chat-msg--confirm p {
  margin-bottom: 2px;
}

.chat-msg--confirm p:last-child {
  margin-bottom: 0;
}


/* Menu Card in Chat */
.menu-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: white;
  border-radius: var(--radius-sm);
  margin-top: var(--space-xs);
}

.menu-card__img {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

.menu-card__info {
  display: flex;
  flex-direction: column;
}

.menu-card__name {
  font-weight: 600;
  font-size: 12px;
}

.menu-card__price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header--light {
  color: var(--color-text-inverse);
}

.section-label {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(27, 94, 60, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-header--light .section-label {
  color: var(--color-accent);
  background: rgba(37, 211, 102, 0.2);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Problems Section
   -------------------------------------------------------------------------- */
.problems {
  padding: var(--space-5xl) 0;
  background: var(--color-bg-alt);
}

.problems__grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .problems__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.problem-card {
  padding: var(--space-xl);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.problem-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background: rgba(220, 53, 69, 0.1);
  border-radius: var(--radius-md);
}

.problem-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-danger);
}

.problem-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.problem-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Solution Bridge */
.solution-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.solution-bridge__arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  animation: bounce 2s infinite;
}

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

.solution-bridge__arrow svg {
  width: 32px;
  height: 32px;
}

.solution-bridge__content {
  max-width: 600px;
  padding: var(--space-xl);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-lg);
}

.solution-bridge__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.solution-bridge__desc {
  font-size: var(--text-base);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   How It Works Section - Screenshot Showcase
   -------------------------------------------------------------------------- */
.how-it-works {
  padding: var(--space-5xl) 0;
  background: var(--color-bg);
}

.steps-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.step-showcase {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .step-showcase {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .step-showcase--reverse {
    direction: rtl;
  }

  .step-showcase--reverse > * {
    direction: ltr;
  }
}

.step-showcase__content {
  order: 2;
}

@media (min-width: 768px) {
  .step-showcase__content {
    order: unset;
  }
}

.step-showcase__number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.step-showcase__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.step-showcase__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.step-showcase__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
}

.step-showcase__features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.step-showcase__features li::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.step-showcase__visual {
  order: 1;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .step-showcase__visual {
    order: unset;
  }
}

/* Phone Frame for Real Screenshots */
.phone-frame {
  position: relative;
  width: 260px;
  max-width: 100%;
  background: #1C1917;
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@media (min-width: 768px) {
  .phone-frame {
    width: 280px;
  }
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1C1917;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.phone-frame__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  object-fit: cover;
  object-position: top;
  aspect-ratio: 9 / 19.5;
}

/* --------------------------------------------------------------------------
   Dashboard / RRS Section
   -------------------------------------------------------------------------- */
.dashboard {
  padding: var(--space-5xl) 0;
  background: var(--color-bg-alt);
}

.dashboard__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .dashboard__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dashboard__grid {
    gap: var(--space-xl);
  }
}

.dashboard-feature {
  padding: var(--space-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.dashboard-feature__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background: rgba(27, 94, 60, 0.1);
  border-radius: var(--radius-md);
}

.dashboard-feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
}

.dashboard-feature__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.dashboard-feature__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Benefits Section
   -------------------------------------------------------------------------- */
.benefits {
  position: relative;
  padding: var(--space-5xl) 0;
  background: var(--color-bg-dark);
}

.benefits__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.benefit-card {
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: background var(--transition-base), transform var(--transition-base);
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background: rgba(37, 211, 102, 0.15);
  border-radius: var(--radius-md);
}

.benefit-card__svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
}

.benefit-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: white;
}

.benefit-card__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Social Proof Section
   -------------------------------------------------------------------------- */
.social-proof {
  padding: var(--space-5xl) 0;
}

.testimonials {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
}

.testimonial__quote {
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  border-radius: 50%;
}

.testimonial__info {
  display: flex;
  flex-direction: column;
}

.testimonial__name {
  font-weight: 600;
  font-style: normal;
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Trusted By */
.trusted-by {
  text-align: center;
}

.trusted-by__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.trusted-by__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.trusted-by__city {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq {
  padding: var(--space-5xl) 0;
  background: var(--color-bg-alt);
}

.faq__list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question:hover {
  background: var(--color-bg-alt);
}

.faq-item__question:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  position: relative;
  padding: var(--space-5xl) 0;
  background: var(--color-primary-dark);
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.lead-form-container {
  max-width: 480px;
  margin: 0 auto var(--space-3xl);
}

/* Lead Form */
.lead-form {
  background: var(--color-bg);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  /* Reset colors for light background form */
  --color-text: #2C2520;
  --color-text-muted: #6B5B4F;
  color: var(--color-text);
}

@media (min-width: 640px) {
  .lead-form {
    padding: var(--space-2xl);
  }
}

.lead-form__step {
  display: none;
}

.lead-form__step--active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.lead-form__step-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.lead-form__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-bg-alt);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lead-form__back:hover {
  background: var(--color-border);
}

.lead-form__back svg {
  width: 16px;
  height: 16px;
}

.lead-form__step-indicator {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lead-form__step-title {
  width: 100%;
  font-size: var(--text-xl);
  margin-top: var(--space-sm);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group:last-of-type {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

fieldset.form-group {
  border: none;
}

fieldset.form-group .form-label {
  margin-bottom: var(--space-md);
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-base);
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--color-text-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 60, 0.15);
}

.form-input--textarea {
  resize: vertical;
  min-height: 80px;
}

.form-input.is-invalid {
  border-color: var(--color-danger);
}

.form-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Input Group (for phone prefix) */
.form-input-group {
  display: flex;
  align-items: stretch;
}

.form-input-prefix {
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-border);
  border: 2px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.form-input--tel {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.form-error {
  display: block;
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-danger);
  min-height: 1.2em;
}

/* Form Options (Radio buttons) */
.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.form-options--inline {
  gap: var(--space-sm);
}

.form-option {
  flex: 1;
  min-width: 100px;
}

.form-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-option__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.form-option input:focus-visible + .form-option__box {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.form-option input:checked + .form-option__box {
  background: rgba(27, 94, 60, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.form-option:hover .form-option__box {
  border-color: var(--color-primary-light);
}

.form-option__icon {
  font-size: 24px;
}

.form-option__text {
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-option--small {
  min-width: auto;
}

.form-option--small .form-option__box {
  flex-direction: row;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Success State */
.lead-form__success {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.lead-form__success[hidden] {
  display: none;
}

.lead-form__success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 32px;
  font-weight: 700;
  color: white;
  background: var(--color-success);
  border-radius: 50%;
}

.lead-form__success-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.lead-form__success-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Alt CTA */
.cta-section__alt {
  text-align: center;
}

.cta-section__alt-text {
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.7);
}

.cta-section__alt .btn--whatsapp {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-section__alt .btn--whatsapp:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.footer__content {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer__content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer__logo-icon {
  width: 36px;
  height: 36px;
}

.footer__logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

.footer__nav-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.5);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__nav-list a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer__nav-list a:hover {
  color: white;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: white;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Scroll-triggered animations - JS adds .animate-on-scroll class */
.js-enabled .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled .animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* Turnstile CAPTCHA widget */
.cf-turnstile {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

/* Honeypot - must be invisible to humans but present in DOM for bots */
.form-hp {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
