/* PARTIDARIO · Landing v2 */

:root {
  --teal:       #1B6B8A;
  --teal-soft:  #E6F1F5;
  --teal-dark:  #14536B;
  --amber:      #F5A623;
  --amber-soft: #FEF3DC;
  --ink:        #1A1A1A;
  --paper:      #F2F2F0;
  --surface:    #FFFFFF;
  --muted:      #6B6B6B;
  --border:     #E4E4E0;

  --grid-ink:  rgba(26,26,24,0.07);
  --grid-soft: rgba(26,26,24,0.05);

  --sh:    5px 5px 0 0 var(--ink);
  --sh-lg: 7px 7px 0 0 var(--ink);
  --sh-sm: 3px 3px 0 0 var(--ink);
  --sh-btn: 4px 4px 0 0 var(--ink);

  --bw: 2px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

section[id], [id="sumarme"] { scroll-margin-top: 90px; }

.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); font-size: 12px;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: var(--tracking-button);
  border: var(--bw) solid var(--ink); border-radius: 13px;
  padding: 14px 24px; cursor: pointer; background: var(--surface); color: var(--ink);
  box-shadow: var(--sh-btn); transition: transform 70ms ease, box-shadow 70ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 0 var(--ink); }
.btn:active { transform: translate(4px,4px); box-shadow: 0 0 0 0 var(--ink); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-amber { background: var(--amber); }
.btn-lg { font-size: 15px; padding: 17px 30px; }
.btn i { font-size: 18px; }

.link-2 { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--teal); }
.link-2:hover { gap: 10px; }

.micro { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(242,242,240,0.92); backdrop-filter: blur(8px); border-bottom: var(--bw) solid var(--ink); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo img { height: 28px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; }

/* HERO */
.hero {
  position: relative;
  background-image:
    linear-gradient(var(--grid-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px);
  background-size: 30px 30px;
  border-bottom: var(--bw) solid var(--ink);
}
.hero-in { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; padding: 84px 28px 92px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); margin-bottom: 20px; white-space: nowrap; }
.hero-eyebrow .pip { width: 8px; height: 8px; border-radius: 999px; background: var(--amber); border: 2px solid var(--ink); }
.hero h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -1.2px; line-height: 0.98; font-size: clamp(42px, 6vw, 72px); margin: 0 0 22px; }
.hero h1 .u { background: linear-gradient(transparent 62%, var(--amber-soft) 62%); padding: 0 2px; box-shadow: inset 0 -3px 0 var(--amber); }
.hero-sub { font-size: 19px; line-height: 1.55; max-width: 500px; margin: 0 0 30px; color: #333; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-micro { max-width: 380px; }

/* phone */
.collage { position: relative; display: flex; justify-content: center; }
.phone { width: 300px; border: var(--bw) solid var(--ink); border-radius: 38px; background: var(--surface); box-shadow: var(--sh-lg); overflow: hidden; }
.phone-shot { width: 100%; aspect-ratio: 1320 / 2868; overflow: hidden; }
.phone-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.float-anim { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); } 50% { transform: translateY(-10px) rotate(var(--rot,0deg)); } }
@media (prefers-reduced-motion: reduce) { .float-anim { animation: none; } }

/* SECTION SHELL */
.sec { padding: 96px 0; }
.sec-head { max-width: 660px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .eyebrow { color: var(--teal); display: inline-block; margin-bottom: 14px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.7px; line-height: 1.05; font-size: clamp(30px, 4vw, 44px); margin: 0 0 18px; }
.sec-head p { font-size: 18px; line-height: 1.6; color: #3a3a38; margin: 0; }

/* EL PROBLEMA */
.problem { background: #30B8C8; border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.problem-in { max-width: 860px; margin: 0 auto; text-align: center; }
.problem h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.7px; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.04; margin: 0 0 22px; color: var(--ink); }
.problem p { font-size: 19px; line-height: 1.6; color: #103e47; margin: 0; max-width: 680px; margin-left: auto; margin-right: auto; }

/* CÓMO FUNCIONA */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: var(--sh); padding: 30px 26px; position: relative; transition: transform 90ms ease, box-shadow 90ms ease; }
.step:hover { transform: translate(-2px,-2px); box-shadow: var(--sh-lg); }
.step-no { width: 50px; height: 50px; border: var(--bw) solid var(--ink); border-radius: 12px; background: var(--amber); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 20px; box-shadow: var(--sh-sm); }
.step h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0 0 10px; letter-spacing: -0.3px; }
.step p { font-size: 15.5px; line-height: 1.55; color: #444; margin: 0; }
.step-line { position: absolute; top: 54px; right: -22px; width: 22px; height: 2px; background: var(--ink); z-index: 1; }
.step:last-child .step-line { display: none; }

/* FUNCIONALIDADES */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 44px 0; }
.feature + .feature { border-top: 2px dashed var(--border); }
.feature.flip .feat-vis { order: 2; }
.feat-copy .feat-ic { width: 56px; height: 56px; border: var(--bw) solid var(--ink); border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-sm); margin-bottom: 20px; }
.feat-ic i, .feat-ic .ic { font-size: 28px; width: 28px; height: 28px; }
.feat-copy h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.5px; line-height: 1.08; margin: 0 0 14px; }
.feat-copy p { font-size: 17px; line-height: 1.62; color: #3a3a38; margin: 0; }
.feat-vis { display: flex; justify-content: center; }
.app-mount { width: 100%; display: flex; justify-content: center; }
#comm-personas span { white-space: nowrap; }

/* MANIFIESTO */
.manif { background: var(--teal); color: #fff; border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink);
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 30px 30px; }
.manif .sec-head { max-width: 720px; }
.manif .sec-head .eyebrow { color: var(--amber); }
.manif .sec-head h2 { color: #fff; }
.manif .sec-head p { color: #d7e8ef; }
.manif-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value { background: var(--surface); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 0 rgba(0,0,0,0.35); padding: 26px; }
.value-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.value-h .v-ic { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 10px; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--teal); }
.value-h .v-ic .ic { width: 20px; height: 20px; }
.value h3 { font-family: var(--font-display); font-weight: 800; font-size: 23px; margin: 0; letter-spacing: -0.3px; }
.value p { font-size: 15.5px; line-height: 1.58; color: #444; margin: 0; }
.manif-close { text-align: center; margin-top: 44px; font-family: var(--font-display); font-weight: 800; font-size: clamp(20px,2.6vw,26px); letter-spacing: -0.3px; color: #fff; }

/* POR INVITACIÓN */
.invite-card { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--sh-lg); padding: 52px 48px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.invite-card h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px,3.4vw,40px); letter-spacing: -0.6px; line-height: 1.05; margin: 0 0 16px; }
.invite-card p { font-size: 17px; line-height: 1.62; color: #3a3a38; margin: 0 0 18px; }
.invite-seal { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.invite-seal .badge { width: 120px; height: 120px; border: var(--bw) solid var(--ink); border-radius: 24px; background: var(--amber-soft); box-shadow: var(--sh); display: flex; align-items: center; justify-content: center; font-size: 56px; transform: rotate(-4deg); }
.invite-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.invite-form button { grid-column: 1 / -1; }
.invite-input { flex: 1; border: var(--bw) solid var(--ink); border-radius: 12px; padding: 13px 16px; font-family: var(--font-body); font-size: 15px; background: var(--paper); }
.invite-input:focus { outline: none; background: #fff; box-shadow: var(--sh-sm); }
.invite-ok { font-family: var(--font-mono); font-size: 13px; color: var(--teal); min-height: 18px; margin-top: 10px; }

/* CTA FINAL */
.cta { background: var(--amber); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink);
  background-image: linear-gradient(rgba(26,26,24,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(26,26,24,0.06) 1px, transparent 1px); background-size: 30px 30px; }
.cta-in { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-in h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px,4.4vw,52px); letter-spacing: -0.8px; line-height: 1.02; margin: 0 0 18px; }
.cta-in p { font-size: 19px; line-height: 1.55; color: #4a3a10; margin: 0 0 30px; }
.cta-in .micro { margin-top: 20px; color: #6a5418; }
.dl-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
.dl { display: inline-flex; align-items: center; gap: 11px; background: var(--ink); color: #fff;
  border: var(--bw) solid var(--ink); border-radius: 13px; box-shadow: var(--sh-btn); padding: 12px 20px;
  transition: transform 70ms ease, box-shadow 70ms ease; }
.dl:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 0 var(--ink); }
.dl:active { transform: translate(4px,4px); box-shadow: 0 0 0 0 var(--ink); }
.dl .ic { width: 22px; height: 22px; }
.dl span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.dl .small { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: #bdbdb8; }
.dl .big { font-family: var(--font-display); font-weight: 800; font-size: 16px; }

/* FOOTER */
.footer { background: var(--ink); color: #fff; padding: 66px 0 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 44px; border-bottom: 2px solid #3a3a38; }
.footer-brand .fb-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand .fb-logo img { height: 30px; width: auto; }
.footer-brand .tag { color: #9a9a95; font-family: var(--font-mono); font-size: 13px; }
.footer h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--amber); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 14.5px; color: #d4d4cf; }
.footer ul a:hover { color: #fff; }
.footer-bot { padding-top: 26px; }
.footer-bot .copy { font-family: var(--font-mono); font-size: 12.5px; color: #9a9a95; }

/* ICONOS */
.ic { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.16em; flex-shrink: 0; stroke-width: 2.25; }
.nav-burger .ic { width: 20px; height: 20px; }

/* REVEAL */
.reveal { transition: opacity 600ms ease, transform 600ms ease; }
@media (prefers-reduced-motion: no-preference) {
  html.js-anim .reveal { opacity: 0; transform: translateY(22px); }
  html.js-anim .reveal.in { opacity: 1; transform: none; }
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .manif-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; padding: 56px 28px 64px; }
  .collage { order: -1; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature .feat-vis, .feature.flip .feat-vis { order: -1; }
  .invite-card { grid-template-columns: 1fr; gap: 32px; padding: 40px 30px; }
  .invite-seal { order: -1; }
  .footer-top { flex-direction: column; gap: 28px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 64px 0; }
  .invite-form { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .link-2 { justify-content: center; }
  .nav-cta .btn { padding: 12px 16px; font-size: 12px; }
}
