/* ============================================
   Tenda — Sitio principal
   Tokens de marca (branding-tenda.md)
   ============================================ */

:root {
  --orange: #FF6D00;
  --orange-dark: #E05F00;
  --peach: #FFF3E5;
  --peach-border: #FFDCB3;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --text: #212121;
  --text-secondary: #757575;
  --text-tertiary: #9E9E9E;
  --success: #43A047;
  --success-soft: #E8F5E9;

  /* --line ya se repetía como #ECECEC suelto en varios componentes
     (tabla comparativa, etc.) — nombrado acá para no seguir
     duplicando el literal. --border es un gris más oscuro, para
     inputs y controles de formulario (login, onboarding). */
  --line: #ECECEC;
  --border: #DDDDDD;
  --shadow: 0 1px 2px rgba(33,33,33,0.04), 0 8px 24px rgba(33,33,33,0.06);

  --font-display: 'Caprasimo', serif;
  --font-body: 'Roboto', sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  padding: 20px 0;
  background: var(--white);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--orange);
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.main-nav a:hover {
  color: var(--orange);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--orange);
}

.btn-outline {
  background: var(--white);
  color: var(--orange);
  border: 1.5px solid var(--orange);
}

.btn-outline:hover {
  background: var(--peach);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--peach);
  border-radius: 0 0 40px 40px;
  padding: 72px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.12;
  margin: 0 0 22px;
  color: var(--text);
}

.hero-headline .accent {
  color: var(--orange);
}

.hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Ilustración: arcos creciendo (mostrador -> cadena) */

.hero-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.arch-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.arch {
  background: var(--orange);
  border-radius: 999px 999px 0 0;
}

/* ---------- Section shell ---------- */

section {
  padding: 88px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 0 48px;
}

.eyebrow {
  color: var(--orange);
  font-weight: 500;
  font-size: 14px;
  margin: 0 0 10px;
}

.section-title {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--text);
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Features grid ---------- */

.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--white);
  padding: 32px 28px;
}

.feature-card:nth-child(odd) {
  background: var(--peach);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 18px;
}

.feature-icon .material-symbols-outlined {
  font-size: 26px;
}

.feature-name {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 8px;
}

.feature-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0;
}

.features-more {
  text-align: center;
  margin-top: 36px;
}

/* ---------- Comparativa teaser ---------- */

.compare-teaser {
  background: var(--text);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.compare-teaser .section-title {
  color: var(--white);
  max-width: 480px;
}

.compare-teaser .section-desc {
  color: #C9C9C9;
  max-width: 460px;
}

/* ---------- Growth / crecimiento ---------- */

.growth {
  background: var(--peach);
  border-radius: var(--radius-lg);
}

.growth .wrap {
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.growth-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.growth-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}

.growth-list .material-symbols-outlined {
  color: var(--orange);
  font-size: 22px;
  flex-shrink: 0;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
}

.final-cta .section-title {
  margin: 0 auto 14px;
}

.final-cta .section-desc {
  margin: 0 auto 32px;
}

.final-cta .hero-actions {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 14px;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid #E2E2E2;
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap,
  .growth .wrap,
  .compare-teaser {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

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

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

  .hero-headline {
    font-size: 38px;
  }

  .compare-teaser {
    padding: 40px 28px;
  }
}

@media (max-width: 600px) {
  .main-nav {
    display: none;
  }

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

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

  section {
    padding: 56px 0;
  }
}

/* ---------- Page banner (páginas internas) ---------- */

.page-hero {
  background: var(--peach);
  border-radius: 0 0 40px 40px;
  padding: 64px 0 56px;
  text-align: center;
}

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

.page-hero .eyebrow {
  justify-content: center;
}

.page-hero .section-title {
  font-family: var(--font-display);
  font-size: 40px;
}

/* ---------- Feature categories (Funcionalidades) ---------- */

.feature-category {
  padding: 56px 0;
  border-bottom: 1px solid #ECECEC;
}

.feature-category:last-child {
  border-bottom: none;
}

.category-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-bottom: 8px;
}

.category-head h2 {
  font-size: 24px;
  margin: 0;
  position: sticky;
  top: 24px;
}

.category-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
}

.category-item {
  display: flex;
  gap: 16px;
}

.category-item .feature-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.category-item .feature-icon .material-symbols-outlined {
  font-size: 22px;
}

.category-item h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.category-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 900px) {
  .category-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-head h2 {
    position: static;
  }

  .category-items {
    grid-template-columns: 1fr;
  }
}

/* ---------- Tabla comparativa ---------- */

.compare-note {
  background: var(--peach);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 40px;
}

.compare-note strong {
  color: var(--orange-dark);
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid #ECECEC;
}

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid #ECECEC;
}

.compare-table th {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 13px;
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center;
}

.compare-table thead th.brand-col {
  color: var(--orange);
}

.compare-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:nth-child(odd) {
  background: #FAFAFA;
}

.icon-yes {
  color: var(--success);
  font-size: 20px;
}

.icon-no {
  color: #C6C6C6;
  font-size: 20px;
}

.cell-note {
  font-size: 13px;
  color: var(--text-secondary);
}

.compare-footnote {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ---------- Planes ---------- */

.billing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 48px;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px;
}

/* Toggle sin JS: radios ocultos + label estilada, mostrado/ocultado
   por :has() sobre el .wrap que contiene ambos (radios y precios). */
.billing-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.billing-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
}

.billing-radio:checked + .billing-option {
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.billing-radio:focus-visible + .billing-option {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.billing-save {
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
}

.pv-annual,
.pe-annual {
  display: none;
}

.wrap:has(#billing-annual:checked) .pv-monthly,
.wrap:has(#billing-annual:checked) .pe-monthly {
  display: none;
}

.wrap:has(#billing-annual:checked) .pv-annual,
.wrap:has(#billing-annual:checked) .pe-annual {
  display: inline;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid #ECECEC;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--text);
  border-color: var(--text);
  color: var(--white);
}

.plan-badge {
  position: absolute;
  top: -14px;
  right: 30px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
}

.price-plan {
  font-size: 14px;
  font-weight: 500;
  color: var(--orange);
  margin: 0 0 6px;
}

.price-card.featured .price-plan {
  color: #FFB877;
}

.price-value {
  font-family: var(--font-display);
  font-size: 34px;
  margin: 0 0 4px;
}

.price-unit {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
}

.price-card.featured .price-unit {
  color: #C9C9C9;
}

.price-extra {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.price-card.featured .price-extra {
  color: #C9C9C9;
}

.price-caption {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.price-card.featured .price-caption {
  color: #C9C9C9;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}

.price-list .material-symbols-outlined {
  color: var(--success);
  font-size: 19px;
  flex-shrink: 0;
}

.price-card .btn {
  width: 100%;
}

.price-card.featured .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}

.price-card.featured .btn-outline:hover {
  background: rgba(255,255,255,.08);
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ (acordeón) ---------- */

.faq-category {
  margin-bottom: 40px;
}

.faq-category h2 {
  font-size: 15px;
  color: var(--orange);
  margin: 0 0 16px;
}

.faq-item {
  border-bottom: 1px solid #ECECEC;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary .material-symbols-outlined {
  color: var(--orange);
  transition: transform .15s ease;
  flex-shrink: 0;
}

.faq-item[open] summary .material-symbols-outlined {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 22px;
  padding: 0 4px;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 640px;
}

/* ---------- Accessibility ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 2px;
}

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