:root {
  --bg:          #f7f1e3;
  --bg-2:        #f1e8d5;
  --bg-card:     #fffdf8;
  --border:      rgba(45,34,12,.10);
  --border-hover:rgba(45,34,12,.20);
  --text:        #20272e;
  --text-2:      rgba(32,39,46,.62);
  --text-3:      rgba(32,39,46,.42);
  --agua:        #2b4b63;
  --agua-2:      #37607e;
  --madera:      #b07a45;
  --luna:        #e9e4d4;
  --ok:          #2e7d32;
  --radius:      18px;
  --radius-sm:   12px;
  --nav-h:       64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sombra:      0 8px 24px rgba(31,40,50,.08);
  --sombra-lg:   0 16px 40px rgba(31,40,50,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }

a { color: var(--agua); }

.contenedor { width: min(1080px, 92vw); margin-inline: auto; }

.kicker, .lema {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--madera);
}

.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(247, 241, 227, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .contenedor { display: flex; align-items: center; gap: 18px; height: 100%; }
.nav .marca { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.nav .marca img { width: 32px; height: 32px; border-radius: 8px; }
.nav .marca b { font-size: 1.1rem; letter-spacing: -0.01em; }
.nav .enlaces { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav .enlaces a {
  text-decoration: none; color: var(--text-2);
  padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: .92rem;
  letter-spacing: -0.01em; transition: background .2s, color .2s;
}
.nav .enlaces a:hover { background: var(--bg-2); color: var(--text); }
.nav .enlaces a.activo { background: var(--agua); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; transition: background .2s, border-color .2s;
}
.nav-toggle:hover { background: var(--bg-2); border-color: var(--border-hover); }
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .25s, opacity .2s;
}
.nav-abierto .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-abierto .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-abierto .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 82% -20%, rgba(43,75,99,.12), transparent 60%),
    var(--bg);
}
.hero .contenedor {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center;
  padding: 70px 0 80px;
}
.hero .lema { margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 14px; }
.hero h1 .sub { display: block; color: var(--agua); }
.hero p.intro { font-size: 1.16rem; color: var(--text-2); max-width: 40ch; }

.hero-arte { justify-self: center; position: relative; }
.hero-arte img { width: min(320px, 70vw); border-radius: 28px; box-shadow: var(--sombra-lg); }
.hero-arte .ondas { position: absolute; inset: auto -28px -20px -28px; height: 56px;
  background: repeating-linear-gradient(180deg, transparent 0 10px, rgba(43,75,99,.08) 10px 12px);
  border-radius: 0 0 28px 28px; }

.descarga { margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: none; cursor: pointer; text-decoration: none;
  font-family: var(--font); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: var(--radius-sm);
  background: var(--agua); color: #fff;
  box-shadow: var(--sombra); transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--agua-2); }
.btn .so { font-size: 1.3rem; }
.btn small { display: block; font-weight: 400; opacity: .82; font-size: .76rem; }
.btn-txt { text-align: left; line-height: 1.15; }

.otras { margin-top: 14px; font-size: .92rem; color: var(--text-2); }
.otras a { margin: 0 4px; text-decoration: none; border-bottom: 1px solid var(--border-hover); }
.badge-ver {
  display: inline-block; margin-top: 12px; font-size: .82rem; color: var(--text-2);
  background: var(--bg-card); padding: 5px 13px; border-radius: 50px; border: 1px solid var(--border);
}

section.bloque { padding: 76px 0; }
section.bloque.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.bloque h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.03em; margin: 8px 0 18px; }
.bloque p.lead { font-size: 1.1rem; color: var(--text-2); max-width: 62ch; }

.mito-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.cita {
  font-size: 1.4rem; font-weight: 500; font-style: italic; line-height: 1.4;
  color: var(--text); border-left: 3px solid var(--madera); padding: 4px 0 4px 22px; margin: 0;
}
.cita span { display: block; font-size: .92rem; font-style: normal; font-weight: 400; color: var(--text-2); margin-top: 10px; }

.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.paso {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--sombra); transition: border-color .2s, transform .15s;
}
.paso:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.paso .num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--agua); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 14px;
}
.paso h3 { font-size: 1.22rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.paso p { margin: 0; color: var(--text-2); font-size: .97rem; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
.feature { display: flex; gap: 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--sombra); transition: border-color .2s; }
.feature:hover { border-color: var(--border-hover); }
.feature .ic { font-size: 1.7rem; }
.feature h3 { font-size: 1.18rem; margin-bottom: 4px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--text-2); font-size: .95rem; }

.mockup {
  border-radius: 14px; overflow: hidden; box-shadow: var(--sombra-lg);
  border: 1px solid var(--border-hover); background: #ece4d2; max-width: 460px; margin-inline: auto;
}
.mockup-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #ddd1b5; }
.mockup-bar .dots { display: flex; gap: 6px; }
.mockup-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mockup-bar .dots i:nth-child(1){ background:#e06c6c; } .mockup-bar .dots i:nth-child(2){ background:#e3b341; } .mockup-bar .dots i:nth-child(3){ background:#5bb36a; }
.mockup-bar .titulo { font-size: .74rem; color: #5a4f37; margin-inline: auto; }
.mockup-body { background: #f6f1e6; padding: 16px; font-size: .82rem; }
.mockup-verbar { display: flex; justify-content: space-between; font-size: .76rem; margin-bottom: 12px; }
.mockup-verbar b { color: var(--text); }
.mockup-verbar .ok { color: var(--ok); }
.mk-campo { margin-bottom: 9px; }
.mk-campo label { display: block; font-size: .72rem; color: #6a6048; margin-bottom: 3px; }
.mk-input { background: #fff; border: 1px solid #cdbf9c; border-radius: 6px; padding: 7px 9px; color: #333; }
.mk-row { display: flex; gap: 8px; }
.mk-row .mk-input { flex: 1; }
.mk-btn { background: var(--agua); color: #fff; border-radius: 6px; padding: 7px 12px; font-weight: 600; font-size: .76rem; white-space: nowrap; }
.mk-update { background: var(--madera); }
.mockup-log { margin-top: 12px; background: #1e1e1e; color: #e0e0e0; border-radius: 8px; padding: 10px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .72rem; line-height: 1.7; }
.mockup-log .ok { color: #7ec699; } .mockup-log .paso { color: #7fb0d6; } .mockup-log .warn { color: #e6b25a; }

footer { background: var(--text); color: rgba(255,255,255,.72); padding: 40px 0; margin-top: 20px; font-size: .9rem; }
footer .contenedor { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer a { color: var(--luna); }
footer strong { color: #fff; }

@media (max-width: 820px) {
  .hero .contenedor, .mito-grid { grid-template-columns: 1fr; }
  .hero-arte { order: -1; }
  .pasos, .features { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav .enlaces {
    position: absolute; top: var(--nav-h); right: 4vw;
    width: min(260px, 80vw);
    margin-left: 0; flex-direction: column; gap: 4px; flex-wrap: nowrap;
    background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--sombra-lg);
    padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-abierto .enlaces {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav .enlaces a { display: block; padding: 10px 14px; font-size: .98rem; }
}
