/* eFlyer — sitio informativo */

:root {
  --orange: #fd7a29;
  --orange-bright: #ff7c2c;
  --orange-deep: #e45f12;
  --orange-soft: #fff1e6;
  --orange-mid: #ffb074;
  --ink: #121212;
  --ink-soft: #2a2a2a;
  --muted: #5e5e5e;
  --line: rgba(18, 18, 18, 0.1);
  --surface: #ffffff;
  --bg: #fffaf6;
  --hero-top: #1a120c;
  --hero-mid: #2a180c;
  --hero-bottom: #3d2210;
  --radius: 1rem;
  --header-h: 4.25rem;
  --max: 42rem;
  --max-wide: 58rem;
  --font: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--orange-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 250, 246, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 250, 246, 0.96);
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: auto;
  height: 2.65rem;
  flex-shrink: 0;
}

@media (max-width: 400px) {
  .brand-logo {
    height: 2.25rem;
  }
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.brand-e {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(0.45rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-0.45rem) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--orange-deep);
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--orange);
  color: #fff !important;
  border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: min(100svh, 52rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.25rem 5rem;
  overflow: hidden;
  color: #fff;
  background: var(--hero-top);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(253, 122, 41, 0.45), transparent 70%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(228, 95, 18, 0.28), transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(255, 176, 116, 0.12), transparent 60%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 45%, var(--hero-bottom) 100%);
  animation: hero-glow 10s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0.92;
    transform: scale(1.04);
  }
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  text-align: center;
}

.hero-logo {
  width: min(100%, 22rem);
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.35));
  animation: hero-rise 0.9s var(--ease) both;
}

.hero-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  animation: hero-rise 0.9s var(--ease) 0.12s both;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  animation: hero-rise 0.9s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: hero-rise 0.9s var(--ease) 0.32s both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-bright);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ——— Sections ——— */

.section {
  padding: 4.5rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-lead {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.section-emphasis {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.section-problema {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-como {
  background:
    linear-gradient(180deg, transparent, rgba(253, 122, 41, 0.06) 40%, transparent);
}

.feature-visual {
  margin: 2.5rem 0 0;
  text-align: center;
}

.feature-visual img {
  width: min(100%, 14rem);
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 16px 28px rgba(253, 122, 41, 0.28));
  animation: float-soft 5s ease-in-out infinite;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.6rem);
  }
}

.feature-visual figcaption {
  max-width: 26rem;
  margin: 0 auto;
  font-size: 0.98rem;
  color: var(--muted);
}

/* Steps */

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}

.step h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Flyer traits — not cards: simple stacked rows */

.flyer-traits {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.flyer-traits li {
  display: grid;
  gap: 0.15rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.flyer-traits strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.flyer-traits span {
  color: var(--muted);
}

.section-publicar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.section-publicar .eyebrow {
  color: var(--orange-mid);
}

.section-publicar h2,
.section-publicar .section-emphasis {
  color: #fff;
}

.section-publicar .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

/* Audience — two blocks without card chrome */

.audience {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .audience {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.audience-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}

.audience-block p {
  margin: 0;
  color: var(--muted);
}

.audience-block + .audience-block {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .audience-block + .audience-block {
    padding-top: 0;
    border-top: 0;
    padding-left: 2.5rem;
    border-left: 1px solid var(--line);
  }
}

/* CTA */

.section-cta {
  padding-block: 5rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(253, 122, 41, 0.18), transparent 70%),
    var(--orange-soft);
  text-align: center;
}

.cta-inner {
  max-width: 28rem;
}

.cta-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.1rem;
}

.section-cta h2 {
  margin-bottom: 0.75rem;
}

.section-cta p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.cta-note {
  font-weight: 700;
  color: var(--orange-deep) !important;
}

/* ——— Footer ——— */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 1.25rem 2.5rem;
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.brand-logo-footer {
  height: 2.85rem;
}

.brand-footer .brand-name {
  color: #fff;
}

.footer-tagline {
  margin: 0;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--orange-mid);
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ——— Legal pages ——— */

.legal-page {
  padding: 3rem 1.25rem 5rem;
}

.legal-page .section-inner {
  max-width: 44rem;
}

.legal-page h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
}

.legal-doc h2 {
  margin: 2.5rem 0 0.85rem;
  font-size: clamp(1.25rem, 3vw, 1.45rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.legal-doc h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-doc p {
  margin: 0 0 1rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin: 0.35rem 0;
}

.legal-doc li + li {
  margin-top: 0.45rem;
}

.legal-doc strong {
  color: var(--ink-soft);
  font-weight: 800;
}

.legal-doc a {
  font-weight: 700;
  word-break: break-word;
}

.legal-doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0;
}

.legal-doc code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.9em;
  background: var(--orange-soft);
  color: var(--ink);
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
}

.legal-doc .table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.legal-doc table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-doc th,
.legal-doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
}

.legal-doc th {
  background: var(--orange-soft);
  color: var(--ink);
  font-weight: 800;
}

.legal-doc td {
  color: var(--muted);
  background: var(--surface);
}

.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-page .footer-nav {
  margin-bottom: 0.5rem;
}

/* ——— Reveal on scroll ——— */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Mobile nav ——— */

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(255, 250, 246, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(18, 18, 18, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
}

@media (min-width: 761px) {
  .hero {
    padding-top: 5.5rem;
  }

  .section {
    padding: 5.5rem 1.5rem;
  }
}
