*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --gold: #c9a84c;
  --gold-dim: #8a7030;
  --white: #f0ede8;
  --muted: #555;
  --card-bg: #111;
  --card-border: #1e1e1e;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  padding: 0;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--card-border);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
}

.nav-logo span { color: var(--gold); }

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

/* Project navigation links inside hero */
.project-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* .project-nav definition replaced above */

.nav-arrow {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  background: var(--card-bg);
  cursor: pointer;
}

.nav-arrow:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .nav-actions { gap: 0.5rem; }
  .nav-back { display: none; }
  .project-nav { gap: 1rem; margin-bottom: 2rem; }

  /* Hero más compacto */
  .hero { margin-top: 2rem; }
  .hero-desc { margin-bottom: 1.5rem; }

  /* Evitar overflow horizontal en screenshots */
  .img-l, .img-s, .img-v { max-width: 100%; flex-shrink: 1; }
  .hero-visual { gap: 0.75rem; }

  /* Features en 1 columna */
  .features { grid-template-columns: 1fr; }
}

.nav-back {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--white); }

/* ── HERO ── */
.hero {
  max-width: 1400px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
}

.hero-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 480px;
  max-width: 800px;
}

.hero-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1050px;
  margin-top: 5rem; /* Better balance with navigation inside content */
}

/* Stacks the 3rd image below for Salud Fácil */
.hero-visual-stacked {
  max-width: 750px;
  justify-content: center;
  flex-direction: column;
}

.visual-row {
  display: flex !important;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

@media (min-width: 1080px) {
  .hero-container { flex-wrap: nowrap; }
}

@media (max-width: 820px) {
  .hero-container { gap: 2rem; justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 2rem; max-width: 100%; margin-top: 0; }
}

.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.hero-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  display: block;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1rem;
  color: #888;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

@media (max-width: 820px) {
  .hero-container { gap: 2rem; justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 2rem; max-width: 100%; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  margin-left: 0.75rem;
}

.btn-secondary:hover { border-color: var(--gold); color: var(--white); transform: translateY(-1px); }

/* ── DIVIDER ── */
.divider {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  border-top: 1px solid var(--card-border);
  margin-top: 3rem;
  padding-top: 3rem;
}

/* ── FEATURES ── */
.features {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.5rem;
}

.feature-icon { font-size: 1.4rem; margin-bottom: 0.75rem; }

.feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── TECH PILLS ── */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tech-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-dim);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
}

.section-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* ── UI CONTROLS ── */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.active {
  color: var(--gold);
}

.lang-sep {
  color: var(--card-border);
  font-size: 0.8rem;
  user-select: none;
}
/* ── SHARED SCREENSHOTS ── */
.screenshot-img {
  width: auto;
  max-width: 100%;
  max-height: 700px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.screenshot-img:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold-dim);
}

.img-v { max-width: 320px; flex-shrink: 0; }
.img-s { max-width: 350px; flex-shrink: 0; }
.img-l { max-width: 650px; flex-shrink: 0; }


