/* ══ HERO ═════════════════════════════════════════════════════════ */
.hero {
  padding: calc(var(--space-5) + 16px) 0 var(--space-6);
}

.hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

/* City Selector */
.city-selector {
  position: relative;
  display: inline-block;
}

.city-selector__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.city-selector__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 100;
  overflow: hidden;
}

.city-selector__option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #1e293b;
  transition: background 0.2s;
}

.city-selector__option:hover {
  background: #f1f5f9;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.hero__headline-accent {
  color: var(--brand-green);
}

.hero__sub {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  max-width: 480px;
}

@media (min-width: 768px) {
  .hero__headline {
    font-size: var(--text-2xl);
    line-height: var(--leading-2xl);
  }
}

/* ── CTA group ────────────────────────────────────────────────── */
.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .hero__cta-group {
    flex-direction: row;
    align-items: center;
  }
}

/* ── Guarantees ───────────────────────────────────────────────── */
.hero__guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.hero__guarantees li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.hero__guarantee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.hero__guarantee-icon svg {
  width: 14px;
  height: 14px;
}

/* ── Hero aside: ¿Cómo funciona? card ─────────────────────────── */
.hero__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero__how-card {
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: all var(--duration-base) var(--ease-out);
}

.hero__how-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-green);
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.1);
}

.hero__how-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.hero__how-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.hero__how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero__how-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(29, 158, 117, 0.1);
  border: 1px solid rgba(29, 158, 117, 0.25);
  border-radius: var(--radius-md);
  color: var(--brand-green);
  margin-bottom: var(--space-2);
}

.hero__how-num {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-1);
}

.hero__how-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.hero__how-desc {
  font-size: 10px;
  color: var(--text-tertiary);
  line-height: 1.3;
}

.hero__how-connector {
  width: 24px;
  height: 2px;
  background-color: var(--surface-border);
  margin-top: 24px;
  flex-shrink: 0;
}

.hero__steps-card {
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.hero__steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.hero__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
  position: relative;
  padding-top: var(--space-3);
}

.hero__step-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-green);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
  z-index: 1;
}

.hero__step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.hero__step-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
}

.hero__step-desc {
  font-size: 10px;
  color: var(--text-tertiary);
  line-height: 1.3;
}

/* ── Order preview card ───────────────────────────────────────── */
.hero__order-preview {
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.hero__order-time {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.hero__order-time-badge {
  flex-shrink: 0;
  width: 100px;
  padding: var(--space-3);
  background-color: var(--brand-green);
  border-radius: var(--radius-sm);
  text-align: center;
  color: #fff;
}

.hero__order-time-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1;
}

.hero__order-time-unit {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.hero__order-time-range {
  display: block;
  font-size: 9px;
  opacity: 0.8;
  line-height: 1.3;
}

.hero__order-barcode {
  margin-top: var(--space-2);
  font-size: 10px;
  letter-spacing: -1px;
  opacity: 0.6;
}

.hero__order-info {
  flex: 1;
}

.hero__order-info-title {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
}

.hero__order-info-time {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.hero__order-info-desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

/* ══ PRODUCTS SECTION ═════════════════════════════════════════════ */
.products-section {
  padding: var(--space-5) 0 var(--space-6);
  background-color: var(--surface-card);
  border-top: 1px solid var(--surface-border);
}

.products-section__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.products-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.products-section__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.products-section__link {
  font-size: var(--text-sm);
  color: var(--brand-green);
  font-weight: 500;
  transition: opacity var(--duration-fast);
}

.products-section__link:hover {
  opacity: 0.8;
}

.products-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--space-8);
  -webkit-overflow-scrolling: touch;
  padding-top: var(--space-2);
  padding-bottom: var(--space-3);
  scrollbar-width: thin;
}

.products-grid::-webkit-scrollbar {
  height: 8px;
}
.products-grid::-webkit-scrollbar-track {
  background: transparent;
}
.products-grid::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: 4px;
}
.products-grid::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

.products-grid > * {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .products-grid > * {
    flex: 0 0 280px;
  }
}

/* ── Product card large ───────────────────────────────────────── */
.product-card-lg {
  display: block;
  text-decoration: none;
  background-color: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
}

.product-card-lg:hover {
  transform: translateY(-3px);
  border-color: var(--brand-green);
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.1);
}

.product-card-lg__image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--surface-hover);
  overflow: hidden;
}

.product-card-lg__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-lg__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-hover) 0%, var(--surface-elevated) 100%);
}

.product-card-lg__badge {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
}

.product-card-lg__info {
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.product-card-lg__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.product-card-lg__desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.product-card-lg__price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--brand-green);
  font-weight: 500;
}

/* ══ HOW IT WORKS ═════════════════════════════════════════════════ */
.how-it-works {
  padding: var(--space-10) 0;
}

.how-it-works__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.how-it-works__title {
  text-align: center;
  margin-bottom: var(--space-8);
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.how-it-works__step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.how-it-works__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(29, 158, 117, 0.15);
  color: var(--brand-green);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
}

.how-it-works__text h4 {
  font-size: var(--text-md);
  margin-bottom: var(--space-1);
}

.how-it-works__text p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .how-it-works__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .how-it-works__step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ══ CTA CLOSE ════════════════════════════════════════════════════ */
.cta-close {
  padding: var(--space-12) 0;
  text-align: center;
}

.cta-close__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.cta-close__headline {
  margin-bottom: var(--space-4);
}

.cta-close__sub {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.cta-close__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.cta-close__whatsapp {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.cta-close__whatsapp a {
  color: var(--brand-green);
}
