/* ========================================================================
   logic4learn.com — Stylesheet compartido
   v1.0 (abril 2026)
   Paleta Pistari como base del estudio: navy + dorado.
   ======================================================================== */

/* --- Reset & vars ------------------------------------------------------- */
:root {
  --navy-900: #042C53;
  --navy-700: #0a3a6b;
  --navy-100: #EFF6FF;
  --gold-500: #EF9F27;
  --gold-300: #f4b85a;
  --gold-50:  #FEF7E6;
  --bg:       #FAFBFC;
  --surface:  #FFFFFF;
  --text:     #1F2937;
  --text-mut: #6B7280;
  --text-soft:#9CA3AF;
  --border:   #E5E7EB;
  --border-soft:#F3F4F6;
  --radius:   12px;
  --radius-lg:18px;
  --shadow-sm:0 1px 2px rgba(4,44,83,0.06), 0 1px 3px rgba(4,44,83,0.04);
  --shadow-md:0 4px 12px rgba(4,44,83,0.08), 0 2px 4px rgba(4,44,83,0.04);
  --shadow-lg:0 12px 32px rgba(4,44,83,0.12), 0 4px 8px rgba(4,44,83,0.06);
  --max-w:    1100px;
  --max-w-sm: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-900); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold-500); }

/* --- Top nav ------------------------------------------------------------ */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255,255,255,0.92);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand .accent { color: var(--gold-500); }
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.nav-links a {
  color: var(--text-mut);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy-900);
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  padding: 80px 24px 64px;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--gold-50);
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid var(--gold-300);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--gold-500); }
.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-mut);
  max-width: 640px;
  margin: 0 auto 32px;
}

/* --- CTA buttons -------------------------------------------------------- */
.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy-900);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--surface);
  color: var(--navy-900);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--navy-100); border-color: var(--navy-900); }
.btn-store {
  background: #000;
  color: #fff;
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 10px;
}
.btn-store:hover { background: #1a1a1a; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-store small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  display: block;
  line-height: 1.2;
}
.btn-store strong {
  font-size: 17px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}
.btn-store.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Sections ----------------------------------------------------------- */
.section {
  padding: 72px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-narrow {
  padding: 64px 24px;
  max-width: var(--max-w-sm);
  margin: 0 auto;
}
.section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  text-align: center;
}
.section h2 .accent { color: var(--gold-500); }
.section .subtitle {
  text-align: center;
  color: var(--text-mut);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* --- Feature grid ------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-100);
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-100);
  color: var(--navy-900);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 22px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-mut);
  line-height: 1.6;
}

/* --- How-it-works steps ------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 8px 0 8px;
}
.step p {
  font-size: 15px;
  color: var(--text-mut);
}

/* --- FAQ ---------------------------------------------------------------- */
.faq-list {
  max-width: 760px;
  margin: 36px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-900);
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--gold-500);
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin-top: 10px;
  color: var(--text-mut);
  font-size: 15px;
  line-height: 1.65;
}

/* --- Catálogo de apps (home del estudio) -------------------------------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.app-card img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
}
.app-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.app-card .app-desc {
  font-size: 14px;
  color: var(--text-mut);
  margin-bottom: 16px;
}
.app-card .app-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--gold-50);
  color: var(--navy-900);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold-300);
}
.app-card.coming-soon {
  opacity: 0.65;
  cursor: not-allowed;
}
.app-card.coming-soon:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.app-card.coming-soon .app-status {
  background: var(--border-soft);
  border-color: var(--border);
  color: var(--text-mut);
}

/* --- Mock screenshots --------------------------------------------------- */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.screenshot {
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: 24px;
  padding: 18px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 8px solid #111;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.screenshot::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #111;
  border-radius: 0 0 12px 12px;
}
.screenshot .placeholder-tag {
  font-size: 10px;
  font-weight: 600;
  background: rgba(239,159,39,0.2);
  color: var(--gold-300);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.screenshot h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.screenshot p {
  font-size: 13px;
  opacity: 0.8;
  max-width: 80%;
}

/* --- Hero visual: Pistari icon + glow ----------------------------------- */
.hero-visual {
  margin: 0 auto 32px;
  width: 120px;
  height: 120px;
  position: relative;
}
.hero-visual img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(4,44,83,0.18), 0 4px 12px rgba(239,159,39,0.15);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: radial-gradient(circle, rgba(239,159,39,0.15), transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

/* --- Stats strip -------------------------------------------------------- */
.stats {
  background: var(--navy-900);
  color: #fff;
  padding: 48px 24px;
  margin: 24px 0;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat .number {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.stat .label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* --- Footer ------------------------------------------------------------- */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.footer-brand h4 .accent { color: var(--gold-500); }
.footer-brand p {
  font-size: 14px;
  color: var(--text-mut);
  max-width: 320px;
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: var(--text-mut);
  font-size: 14px;
}
.footer-col a:hover { color: var(--navy-900); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; font-size: 13px; }
  .hero { padding: 56px 20px 40px; }
  .section { padding: 56px 20px; }
}

/* ========================================================================
   Estilos para páginas legales (privacy / terms)
   ======================================================================== */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  color: var(--text);
  line-height: 1.75;
}
.legal-header {
  background: var(--navy-900);
  color: #fff;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
}
.legal-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.legal-header p { opacity: 0.7; font-size: 14px; }
.legal-header .badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 13px;
  margin-top: 10px;
}
.legal .summary {
  background: var(--navy-100);
  border-left: 4px solid var(--navy-900);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 36px;
  font-size: 15px;
  color: #1E3A5F;
}
.legal .summary strong { color: var(--navy-900); }
.legal h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 22px 0 8px;
}
.legal p, .legal li {
  font-size: 15px;
}
.legal ul {
  margin: 8px 0 12px 22px;
}
.legal ul li { margin-bottom: 6px; }
.legal a { color: var(--navy-900); text-decoration: underline; }
.legal a:hover { color: var(--gold-500); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.legal table th {
  background: var(--navy-100);
  color: var(--navy-900);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
}
.legal table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal .highlight {
  background: var(--gold-50);
  border-left: 4px solid var(--gold-500);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-size: 15px;
}
.legal .contact-block {
  background: var(--navy-100);
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 12px;
}
.legal .contact-block p { margin: 4px 0; }
.legal-footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
