/* ============================================
   Señor Bistec — Landing Page Styles
   Mobile-first, zero dependencies
   ============================================ */

/* --- Self-hosted Font --- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans/PlusJakartaSans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans/PlusJakartaSans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans/PlusJakartaSans-latin.woff2') format('woff2');
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Design Tokens --- */
:root {
  --color-primary: #c0392b;
  --color-primary-light: #e74c3c;
  --color-primary-dark: #a93226;
  --color-accent: #2ecc71;
  --color-accent-dark: #27ae60;
  --color-warm: #f39c12;
  --color-warm-light: #f5b041;
  --color-bg: #faf7f5;
  --color-bg-alt: #ffffff;
  --color-text: #2c3e50;
  --color-text-light: #7f8c8d;
  --color-text-inverse: #ffffff;
  --color-border: #e8e0d8;
  --color-telegram: #26A5E4;
  --color-whatsapp: #25D366;
  --color-chatgpt-bg: #f0eded;
  --color-bistec-bg: #edf7f0;

  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-hero: 2.5rem;

  --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-section: 5rem;

  --max-width: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: var(--font-size-hero); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }

p {
  margin-bottom: var(--space-md);
}

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

.section {
  padding: var(--space-section) 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

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

/* --- Header / Nav --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: var(--space-xs);
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-pill);
  padding: 2px;
}

.lang-switcher a {
  display: block;
  padding: 8px 14px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-light);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher a:hover {
  color: var(--color-text);
}

.lang-switcher a.active {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Hero Section --- */
.hero {
  padding: var(--space-3xl) 0 var(--space-section);
  text-align: center;
}

.hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-bg-alt);
}

.hero-pretitle {
  font-size: var(--font-size-base);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.hero-trial {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* --- CTA Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-telegram {
  background-color: var(--color-telegram);
  color: var(--color-text-inverse);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-text-inverse);
}

.btn-whatsapp.coming-soon {
  opacity: 0.6;
  cursor: default;
  position: relative;
}

.btn-whatsapp.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.btn-whatsapp.coming-soon .badge-soon {
  font-size: 0.7rem;
  background: rgba(0,0,0,0.2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: var(--space-xs);
}

/* --- Problem Section --- */
.problem {
  text-align: center;
}

.problem h2 {
  max-width: 650px;
  margin: 0 auto var(--space-lg);
}

.problem-intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 550px;
  margin: 0 auto var(--space-2xl);
}

.problem-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.problem-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.problem-card-icon {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

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

.problem-card p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

.problem-tagline {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- How It Works --- */
.how-it-works {
  text-align: center;
}

.how-it-works h2 {
  margin-bottom: var(--space-2xl);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--font-size-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.step h3 {
  margin-bottom: var(--space-sm);
}

.step p {
  color: var(--color-text-light);
  max-width: 350px;
  margin: 0 auto;
  font-size: var(--font-size-sm);
}

/* --- Ask Anything (Advisor Showcase) --- */
.ask-anything {
  text-align: center;
}

.ask-anything h2 {
  margin-bottom: var(--space-sm);
}

.ask-anything-subtitle {
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
  font-size: var(--font-size-lg);
}

.conversations {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 500px;
  margin: 0 auto;
}

.conversation {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.msg {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

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

.msg-user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.msg-user .msg-avatar {
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.msg-text {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  max-width: 85%;
}

.msg-bot .msg-text {
  background: #dcf8c6;
  border-bottom-left-radius: 4px;
  color: var(--color-text);
}

.msg-user .msg-text {
  background: var(--color-bg);
  border-bottom-right-radius: 4px;
  color: var(--color-text);
}

.msg-photo {
  width: 140px;
  height: 105px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.msg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Hero trust signal */
.hero-trust {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-top: var(--space-xs);
}

/* --- Features Grid --- */
.features {
  text-align: center;
}

.features h2 {
  margin-bottom: var(--space-2xl);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.feature-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.feature-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Week Comparison --- */
.comparison {
  text-align: center;
}

.comparison h2 {
  margin-bottom: var(--space-sm);
}

.comparison-subtitle {
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
  font-size: var(--font-size-lg);
}

.comparison-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.comparison-day {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.comparison-day-label {
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  text-align: center;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-sm);
  grid-column: 1 / -1;
}

.chat-bubble {
  border-radius: var(--radius);
  padding: var(--space-lg);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  text-align: left;
  position: relative;
}

.chat-bubble-label {
  font-weight: 700;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.chat-bubble.chatgpt {
  background: var(--color-chatgpt-bg);
  border: 1px solid #ddd;
}

.chat-bubble.chatgpt .chat-bubble-label {
  color: var(--color-text-light);
}

.chat-bubble.bistec {
  background: var(--color-bistec-bg);
  border: 1px solid #c8e6c9;
}

.chat-bubble.bistec .chat-bubble-label {
  color: var(--color-accent-dark);
}

.chat-bubble blockquote {
  margin: 0;
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-border);
  color: var(--color-text);
  font-style: italic;
}

.chat-bubble.bistec blockquote {
  border-left-color: var(--color-accent);
}

/* --- Achievements --- */
.achievements {
  text-align: center;
}

.achievements h2 {
  margin-bottom: var(--space-sm);
}

.achievements-subtitle {
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
}

.badges-row {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-md) 0;
  scrollbar-width: none;
}

.badges-row::-webkit-scrollbar {
  display: none;
}

.badge-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
  width: 140px;
}

.badge-item img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  margin: 0 auto var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.badge-item span {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* --- FAQ --- */
.faq {
  text-align: center;
}

.faq h2 {
  margin-bottom: var(--space-2xl);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-size-base);
  list-style: none;
  user-select: none;
}

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

.faq-item summary::after {
  content: '+';
  font-size: var(--font-size-xl);
  color: var(--color-text-light);
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: var(--space-md);
}

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

.faq-answer {
  padding-bottom: var(--space-lg);
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: var(--font-size-sm);
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-inverse);
  padding: var(--space-section) 0;
}

.final-cta h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.final-cta p {
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
  font-size: var(--font-size-lg);
}

.final-cta .btn-telegram {
  background: var(--color-text-inverse);
  color: var(--color-telegram);
}

.final-cta .btn-whatsapp {
  background: rgba(255,255,255,0.15);
  color: var(--color-text-inverse);
  border: 1px solid rgba(255,255,255,0.3);
}

/* --- Footer --- */
.footer {
  padding: var(--space-2xl) 0;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

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

.footer-links a {
  color: var(--color-text-light);
  transition: color 0.2s ease;
  padding: var(--space-sm) var(--space-md);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  z-index: 99;
  background: var(--color-bg);
  padding: var(--space-xl);
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .lang-switcher {
  transform: scale(1.2);
}

/* --- Legal Pages --- */
.legal-nav {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-light);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
  min-height: 44px;
}

.legal-nav a:hover {
  color: var(--color-text);
  background: rgba(0,0,0,0.04);
}

.legal-nav a.active {
  color: var(--color-primary);
  background: rgba(192,57,43,0.08);
}

.legal-content {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-section);
  line-height: 1.7;
  color: var(--color-text);
}

.legal-content h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

.legal-content h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  scroll-margin-top: 80px;
}

.legal-content h3 {
  font-size: var(--font-size-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  scroll-margin-top: 80px;
}

.legal-content p {
  margin-bottom: var(--space-md);
}

.legal-content ul,
.legal-content ol {
  list-style: revert;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.legal-callout {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-alt);
  margin: var(--space-lg) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-content .table-wrap {
  overflow-x: auto;
  margin: var(--space-lg) 0;
  -webkit-overflow-scrolling: touch;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--color-bg);
  font-weight: 600;
}

.legal-content details {
  margin-bottom: var(--space-md);
}

.legal-content details summary {
  cursor: pointer;
  font-weight: 600;
  padding: var(--space-sm) 0;
  list-style: revert;
}

/* Legal links in footer */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: center;
}

.footer-legal a {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
  padding: var(--space-xs) 0;
}

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

/* Print styles for legal pages */
@media print {
  .header, .footer, .legal-nav, .mobile-menu {
    display: none !important;
  }
  .legal-content {
    max-width: 100%;
    padding: 0;
  }
  .legal-content a {
    color: inherit;
    text-decoration: none;
  }
  .legal-content a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* --- Responsive --- */

/* Tablet: 640px */
@media (min-width: 640px) {
  :root {
    --font-size-hero: 3rem;
    --font-size-2xl: 2.25rem;
  }

  .hero-avatar {
    width: 180px;
    height: 180px;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  .problem-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .comparison-day {
    grid-template-columns: 1fr 1fr;
  }

  .comparison-day-label {
    grid-column: 1 / -1;
  }

  .badge-item {
    width: 150px;
  }

  .badge-item img {
    width: 120px;
    height: 120px;
  }
}

/* Desktop: 1024px */
@media (min-width: 1024px) {
  :root {
    --font-size-hero: 3.5rem;
    --font-size-2xl: 2.5rem;
  }

  .hero-avatar {
    width: 200px;
    height: 200px;
  }

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

  .badges-row {
    justify-content: center;
    overflow-x: visible;
  }
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Mobile only: show hamburger, hide desktop lang */
@media (max-width: 639px) {
  .menu-toggle {
    display: block;
  }

  .nav-right .lang-switcher {
    display: none;
  }
}
