/* MOSS — One-pager comercial (carpeta portable)
   Mobile-first · sin backend · todo relativo a esta carpeta */

:root {
  --bg: #10150F;
  --ink: #f2f5ea;
  --ink-soft: rgba(242, 245, 234, 0.72);
  --ink-mute: rgba(242, 245, 234, 0.55);
  --green: #98B528;
  --green-deep: #122A07;
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --pad: max(1.15rem, env(safe-area-inset-left));
  --pad-r: max(1.15rem, env(safe-area-inset-right));
  --font: 'Montserrat', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(16, 21, 15, 0.55) 0%,
      rgba(16, 21, 15, 0.78) 38%,
      rgba(16, 21, 15, 0.94) 72%,
      var(--bg) 100%
    ),
    url('../assets/fondo.webp') center top / cover no-repeat;
}

.page {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin-inline: auto;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

/* —— Top bar (aparece al pasar el hero) —— */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(720px, 100%);
  margin-inline: auto;
  padding: max(0.75rem, env(safe-area-inset-top)) var(--pad-r) 0.75rem var(--pad);
  background: linear-gradient(180deg, rgba(16, 21, 15, 0.92), rgba(16, 21, 15, 0.72) 70%, transparent);
  backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.5rem);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.top[hidden] {
  display: flex;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand span {
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  font-weight: 400;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  font-size: 0.78rem;
}

.btn-primary {
  background: #fff;
  color: var(--green-deep);
}

.btn-primary:hover {
  background: var(--green);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

/* —— Hero —— */
.hero {
  padding: 1.75rem var(--pad-r) 2.75rem var(--pad);
  min-height: min(78dvh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: rise 0.7s ease both;
}

.hero-logo {
  width: clamp(64px, 18vw, 96px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.hero-name {
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 12ch;
  font-size: clamp(1.55rem, 6.5vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  animation: rise 0.7s ease 0.08s both;
}

.hero-sub {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  animation: rise 0.7s ease 0.16s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Sections —— */
.section,
.cta {
  padding: 2.75rem var(--pad-r) 0.5rem var(--pad);
  border-top: 1px solid var(--line);
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2,
.cta h2 {
  margin: 0 0 0.55rem;
  font-weight: 400;
  font-size: clamp(1.2rem, 4.8vw, 1.55rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.25;
}

.lead {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 36rem;
}

/* —— Triad —— */
.triad {
  display: grid;
  gap: 0.7rem;
}

.tile {
  padding: 1.15rem 1.05rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.tile .num {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.tile strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 1rem;
}

.tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* —— Modules (accordion, ideal en móvil) —— */
.mods {
  display: grid;
  gap: 0.55rem;
}

.mod {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mod[open] {
  background: rgba(152, 181, 40, 0.1);
  border-color: rgba(152, 181, 40, 0.4);
}

.mod summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.95rem;
  cursor: pointer;
  min-height: 64px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.mod summary::-webkit-details-marker {
  display: none;
}

.mod summary > .material-symbols-outlined:first-child {
  color: var(--green);
  font-size: 24px;
  flex-shrink: 0;
}

.mod-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mod-title strong {
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.mod-title em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.mod .chev {
  color: rgba(255, 255, 255, 0.4);
  font-size: 22px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mod[open] .chev {
  transform: rotate(180deg);
  color: var(--green);
}

.mod-body {
  padding: 0 1rem 1.15rem;
  border-top: 1px solid transparent;
}

.mod[open] .mod-body {
  border-top-color: rgba(255, 255, 255, 0.08);
  padding-top: 0.95rem;
}

.mod-body > p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.mod-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.mod-body li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(242, 245, 234, 0.88);
}

.mod-body li .material-symbols-outlined {
  color: var(--green);
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

.ideal {
  margin: 1rem 0 0 !important;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem !important;
  color: var(--ink-mute) !important;
}

.ideal b {
  color: var(--green);
  font-weight: 500;
}

/* —— Verticals —— */
.verts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.vert {
  padding: 1rem 0.85rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.vert .material-symbols-outlined {
  color: var(--green);
  font-size: 24px;
  margin-bottom: 0.45rem;
}

.vert strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.vert p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* —— Benefits —— */
.benefits {
  display: grid;
  gap: 0.65rem;
}

.benefit {
  padding: 1.15rem 1.05rem;
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(152, 181, 40, 0.14), var(--panel));
  border: 1px solid rgba(152, 181, 40, 0.28);
}

.benefit strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.benefit p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* —— CTA —— */
.cta {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.cta .lead {
  margin-inline: auto;
}

.cta-note {
  margin: 0;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.foot {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1.25rem var(--pad-r) 0.5rem var(--pad);
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.foot a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot a:hover {
  color: var(--green);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* —— Tablet+ —— */
@media (min-width: 640px) {
  .page {
    width: min(880px, 100%);
  }

  .top {
    width: min(880px, 100%);
  }

  .hero {
    min-height: min(82dvh, 720px);
    padding-top: 3rem;
  }

  .triad {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .verts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  :root {
    --pad: 1.75rem;
    --pad-r: 1.75rem;
  }

  .page {
    width: min(980px, calc(100% - 2rem));
  }

  .top {
    width: min(980px, calc(100% - 2rem));
  }

  .section,
  .cta {
    padding-top: 3.5rem;
  }

  .hero h1 {
    max-width: 14ch;
  }
}

/* —— Reduce motion —— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand,
  .hero h1,
  .hero-sub,
  .reveal,
  .top {
    animation: none !important;
    transition: none !important;
  }

  .hero-brand,
  .hero h1,
  .hero-sub,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  .bg {
    background: var(--bg) !important;
  }

  .top .btn {
    display: none !important;
  }

  .mod {
    break-inside: avoid;
  }

  .mod:not([open]) .mod-body {
    display: block !important;
  }
}
