/* MiLoro tropical — sintoniza con app: cream + verde loro + amarillo pico + rojo cabeza */
:root {
  --bg: #FFFBEB;
  --bg-soft: #FEF3C7;
  --bg-card: #FFFFFF;
  --ink: #1F2937;
  --ink-soft: #78350F;
  --ink-mute: #92400E;
  --accent: #16A34A;
  --accent-h: #15803D;
  --accent-soft: #DCFCE7;
  --warm: #F59E0B;
  --hot: #EF4444;
  --border: #FCD34D;
  --shadow: 0 2px 4px rgba(245, 158, 11, 0.08), 0 8px 24px rgba(22, 163, 74, 0.12);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.5rem; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 0;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-h); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-outline {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.btn[data-state="soon"] { opacity: 0.6; cursor: not-allowed; }

/* nav */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .nav nav a:not(.btn-outline) { display: none; }
}

/* hero */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  text-align: center;
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero .sub {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 1rem auto 2rem;
}
.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 2rem;
  color: var(--ink-mute);
  font-size: 0.95rem;
}

/* features */
.features { padding: 5rem 0; }
.features h2 { text-align: center; margin-bottom: 3rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card .ic { font-size: 2rem; margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.95rem; }

/* how */
.how { background: var(--bg-soft); padding: 5rem 0; }
.how h2 { text-align: center; margin-bottom: 3rem; }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.steps .num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}
.steps code {
  background: var(--accent-soft);
  color: var(--accent-h);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

/* pricing */
.pricing { padding: 5rem 0; }
.pricing h2 { text-align: center; }
.sub-h2 { text-align: center; color: var(--ink-soft); margin-bottom: 3rem; }
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow);
}
.ribbon {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan-head { margin-bottom: 1.25rem; }
.price { display: flex; align-items: baseline; gap: 0.25rem; margin-top: 0.5rem; }
.amt { font-size: 2.4rem; font-weight: 800; color: var(--ink); }
.period { color: var(--ink-mute); font-size: 1rem; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}
.plan li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: "✓ "; color: var(--accent); font-weight: 700; margin-right: 0.4rem; }
.plan .btn { width: 100%; }
.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: 2rem;
  max-width: 640px;
  margin-inline: auto;
}

/* download */
.download { background: var(--bg-soft); padding: 5rem 0; text-align: center; }
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}
.dl {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
.dl .os { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem; }
.dl .ver { font-size: 0.85rem; color: var(--ink-mute); margin: 0 0 1rem; }
.alpha-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* faq */
.faq { padding: 5rem 0; }
.faq h2 { text-align: center; margin-bottom: 3rem; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  max-width: 800px;
  margin-inline: auto;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink-mute);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq p { margin: 0.75rem 0 0; font-size: 0.95rem; }

/* footer */
footer { background: var(--ink); color: white; padding: 4rem 0 2rem; }
footer p, footer a { color: rgba(255, 255, 255, 0.7); }
footer a:hover { color: white; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
.foot-brand { font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 0.3rem; }
footer h4 { color: white; font-size: 0.9rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
footer a { display: block; padding: 0.2rem 0; font-size: 0.9rem; }
.copy {
  text-align: center;
  font-size: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

/* MiLoro: nuevos elementos + ajustes branding loro */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand img { display: block; }

.hero-icon {
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 8px 24px rgba(22, 163, 74, 0.3));
}

/* Pricing 2-tier centered + price-alt anual */
.plans.two-tier {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .plans.two-tier { grid-template-columns: 1fr; }
}
.price-alt {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}
.discount-badge {
  background: var(--accent);
  color: white;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-left: 0.25rem;
}
.pricing-note-vertical {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
}
.pricing-note-vertical a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

/* Download cards: misma altura + iconos OS oficiales */
.dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dl .os-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl .os-icon svg { width: 100%; height: 100%; }
.dl .os {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.dl .ver {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin: 0 0 1rem;
  min-height: 2.4em;     /* alinea botones aunque algunas .ver sean más cortas */
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl .btn { margin-top: auto; }   /* el botón siempre al fondo de la tarjeta */
.dl.recommended {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.18);
}

/* Language picker */
.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.8rem;
  font-size: 0.9rem;
}
.lang-picker select {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}
.lang-picker select:hover { border-color: var(--accent); }

/* Footer background ajustado a paleta loro */
footer {
  background: linear-gradient(180deg, #064E3B 0%, #022C22 100%);
  color: #FDE68A;
}
.foot-brand { color: #FDE68A; }
footer h4 { color: #FCD34D; }
footer a { color: #6EE7B7; }
footer a:hover { color: #FCD34D; }
