:root {
  --green: #0A6B4C;
  --green-deep: #0D1B14;
  --green-soft: #F2F8F5;
  --green-mid: #197A5C;
  --orange: #E8521A;
  --ink: #0D1B14;
  --muted: #475569;
  --paper: #F2F8F5;
  --line: rgba(10, 107, 76, 0.15);
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 15% 50%, rgba(10, 107, 76, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(232, 82, 26, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

a { color: var(--green); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--green-mid); }
img { max-width: 100%; display: block; height: auto; }

.wrap {
  width: min(1200px, 90vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 107, 76, 0.1);
  transition: all 0.3s ease;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(10, 107, 76, 0.3);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a:not(.btn) {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.nav a:not(.btn):hover::after, 
.nav a[aria-current="page"]::after {
  width: 100%;
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 14px rgba(10, 107, 76, 0.4);
}

.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 107, 76, 0.5);
  color: white;
}

.btn-secondary {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 14px rgba(232, 82, 26, 0.4);
}

.btn-secondary:hover {
  background: #cc4514;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 82, 26, 0.5);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(13, 27, 20, 0.1);
}

.btn-ghost:hover {
  background: rgba(13, 27, 20, 0.05);
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: fadeUp 0.8s ease-out;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
  max-width: 800px;
}

.hero-highlight {
  background: linear-gradient(120deg, var(--green), var(--green-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 1rem 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 700px;
  margin-inline: auto;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 1rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* History Section */
.history-section {
  background: var(--green-deep);
  color: white;
  padding: 6rem 0;
  border-radius: 3rem;
  margin: 4rem 1rem;
  text-align: center;
}

.history-content {
  max-width: 800px;
  margin: 0 auto;
}

.history-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.4;
  margin-bottom: 2rem;
  color: white;
}

.history-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

/* About Creator */
.creator-section {
  padding: 5rem 0;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.creator-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  background: var(--paper);
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: var(--shadow-sm);
}

.creator-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.creator-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.creator-role {
  color: var(--green);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.creator-bio {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.creator-links {
  display: flex;
  gap: 1rem;
}

.creator-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 600;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.creator-links a:hover {
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Steps (Como Usar) */
.steps-container {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  gap: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateX(10px);
  border-color: var(--green);
}

.step-number {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background: var(--green);
  color: white;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(10, 107, 76, 0.3);
}

.step-content h3 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.step-content p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Demo Mockup */
.demo-section {
  padding: 6rem 0;
  text-align: center;
}

.device-mockup {
  position: relative;
  width: 320px;
  height: 650px;
  margin: 0 auto;
  border-radius: 3rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.device-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

details {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}

summary {
  padding: 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--green);
  font-size: 1.5rem;
  transition: transform 0.3s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Forum */
.forum-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  align-items: start;
}

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

.panel {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 100px;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  background: #f8fafc;
  transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  background: white;
  box-shadow: 0 0 0 3px var(--green-soft);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.post-list {
  display: grid;
  gap: 1.5rem;
}

.post {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.sugerencia { background: #e0f2fe; color: #0284c7; }
.badge.queja { background: #fee2e2; color: #dc2626; }
.badge.bug { background: #ffedd5; color: #ea580c; }
.badge.idea { background: #dcfce7; color: #16a34a; }
.badge.status { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.post h4 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

.post p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 400% 100%;
  animation: loading 1.5s infinite ease-in-out;
  border-radius: 0.5rem;
}

@keyframes loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.skeleton-text { height: 1rem; margin-bottom: 0.5rem; width: 100%; }
.skeleton-title { height: 1.5rem; margin-bottom: 1rem; width: 70%; }
.skeleton-badge { height: 1.5rem; width: 4rem; border-radius: 9999px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--green);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: #dc2626;
}

/* Footer */
.site-footer {
  background: white;
  padding: 3rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 4rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
}

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

.copyright {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile Menu */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(0,0,0,0.05);
  }
  
  .nav.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
  }
  
  .hero {
    padding: 4rem 0 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: stretch;
  }
  
  .creator-card {
    flex-direction: column;
    text-align: center;
  }
  
  .creator-links {
    justify-content: center;
  }
}

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