/* ═══════════════════════════════════════════════════════════
   PUROPIXEL DESIGN SYSTEM v2.0
   Neobrutalist. Sin blur. Sin gradientes. Sin cuentos.
   ═══════════════════════════════════════════════════════════ */

/* ───── DESIGN TOKENS ───── */
:root {
  /* Surfaces */
  --papel:  #F1EFE9;
  --blanco: #FFFFFF;
  --black:  #000000;
  --ink:    var(--black);

  /* Teal / Cyan */
  --teal-1: #DAF5F0; --teal-2: #A7DBD8; --teal-3: #87CEEB; --teal-4: #69D2E7;
  /* Green */
  --green-1: #B5D2AD; --green-2: #BAFCA2; --green-3: #90EE90; --green-4: #7FBC8C;
  /* Yellow */
  --yellow-1: #FDFD96; --yellow-2: #FFDB58; --yellow-3: #F4D738; --yellow-4: #E3A018;
  /* Coral */
  --coral-1: #F8D6B3; --coral-2: #FFA07A; --coral-3: #FF7A5C; --coral-4: #FF6B6B;
  /* Pink */
  --pink-1: #FCDFFF; --pink-2: #FFC0CB; --pink-3: #FFB2EF; --pink-4: #FF69B4;
  /* Violet */
  --violet-1: #E3DFF2; --violet-2: #C4A1FF; --violet-3: #A388EE; --violet-4: #9723C9;

  /* Semantic aliases */
  --amarillo: #FFD23F;
  --azul:     var(--violet-4);
  --coral:    var(--violet-3);
  --accent:   var(--violet-3);
  --cta:      var(--coral-4);
  --highlight: var(--yellow-3);

  /* Neobrutalist System */
  --borde:    3px solid var(--black);
  --sombra:   4px 6px 0 var(--black);
  --sombra-sm: 3px 4px 0 var(--black);
  --sombra-lg: 6px 8px 0 var(--black);
}

/* ───── RESET & BASE ───── */
*,*::before,*::after{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:96px; }
body{
  background: var(--papel);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection{ background: var(--amarillo); color: var(--ink); }
img,video{ display:block; max-width:100%; }
a{ color:inherit; }

/* ───── FOCUS ───── */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}

/* ───── TYPOGRAPHY UTILITIES ───── */
.mono{ font-family: 'Space Mono', monospace; }
.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ───── HEADER / NAV ───── */
header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--blanco);
  border-bottom: var(--borde);
}
.nav{
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.logo{
  display: flex; align-items: center; gap: 10px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px; letter-spacing: -.5px;
  text-decoration: none; text-transform: lowercase;
}
.logo img{ height: 48px; width: auto; }
.logo b{ color: var(--accent); font-weight: inherit; }
.nav-links{ display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a{
  text-decoration: none; font-weight: 500; font-size: 15px;
  border-bottom: 3px solid transparent; padding-bottom: 2px;
}
.nav-links a:hover, .nav-links a.active{ border-color: var(--accent); }

/* ───── BUTTONS ───── */
.btn{
  display: inline-block;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 15px;
  text-decoration: none; text-transform: uppercase; letter-spacing: .5px;
  background: var(--cta); color: var(--blanco);
  border: var(--borde);
  padding: 12px 22px;
  box-shadow: var(--sombra-sm);
  transition: transform .12s, box-shadow .12s;
  cursor: pointer;
}
.btn:hover{ transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active{ transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.amarillo{ background: var(--amarillo); color: var(--black); }
.btn.blanco{ background: var(--violet-4); color: var(--blanco); }
.btn.grande{ font-size: 17px; padding: 16px 30px; }
.btn.wsp{ background: #25D366; }

/* ───── BURGER MENU ───── */
.burger{
  display: none; background: none; border: var(--borde);
  width: 46px; height: 46px; cursor: pointer; background: var(--blanco);
}
.burger span{ display: block; width: 22px; height: 3px; background: var(--ink); margin: 4px auto; }

/* ───── EYEBROW ───── */
.eyebrow{
  font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  display: inline-block; background: var(--yellow-3);
  border: var(--borde); padding: 6px 12px;
  box-shadow: 4px 4px 0 var(--black);
  margin-bottom: 26px;
}

/* ───── SECTION HEADINGS ───── */
.sec-head{ margin-bottom: 54px; max-width: 720px; }
h1{
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: .96; letter-spacing: -1px;
  text-transform: uppercase;
}
h2{
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1; text-transform: uppercase; letter-spacing: -.5px;
  margin: 18px 0 16px;
}
.sec-head p{ font-size: 18px; }

/* ───── CARDS ───── */
.cards{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card{
  background: var(--blanco); border: var(--borde);
  box-shadow: var(--sombra); padding: 30px 26px;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.card:hover{ transform: translate(-5px,-5px); box-shadow: 13px 13px 0 var(--ink); }
.card .chip{
  display: grid; grid-template-columns: repeat(2, 14px); grid-auto-rows: 14px; gap: 3px;
  margin-bottom: 20px;
}
.card .chip i{ display: block; border: 2px solid var(--ink); }
.card h3{
  font-family: 'Archivo Black', sans-serif; font-size: 21px;
  text-transform: uppercase; line-height: 1.15; margin-bottom: 12px;
}
.card p{ font-size: 15.5px; }
.precio-tag{
  font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 18px; display: inline-block;
  background: var(--papel); border: 2px solid var(--ink); padding: 4px 10px;
}

/* ───── STEPS (PROCESO) ───── */
.pasos{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.paso{
  border: var(--borde); background: var(--papel);
  box-shadow: var(--sombra); padding: 30px 26px;
}
.paso .num{
  font-family: 'Archivo Black', sans-serif; font-size: 54px;
  color: var(--accent); line-height: 1;
  -webkit-text-stroke: 2px var(--ink);
}
.paso h3{
  font-family: 'Archivo Black', sans-serif; font-size: 20px;
  text-transform: uppercase; margin: 16px 0 10px;
}
.paso p{ font-size: 15.5px; }

/* ───── GEOMETRIC SHAPES ───── */
.nb-shape{
  position: relative; background: var(--black); display: inline-block;
}
.nb-shape::after{
  content: ''; position: absolute; inset: 0;
  clip-path: inherit; transform: scale(0.88);
  background: var(--shape-color);
}
.nb-square   { width: 100px; height: 100px; background: var(--yellow-3); border: var(--borde); }
.nb-rect     { width: 160px; height: 90px; background: var(--pink-4); border: var(--borde); }
.nb-circle   { width: 110px; height: 110px; background: var(--teal-4); border: var(--borde); border-radius: 50%; }
.nb-burst{
  --shape-color: var(--coral-4);
  width: 130px; height: 130px;
  clip-path: polygon(50% 0%, 58.7% 20.3%, 77% 7.9%, 73.4% 29.7%, 95.5% 29.2%, 80.7% 45.6%, 99.5% 57.1%, 78.2% 62.9%, 87.8% 82.7%, 66.8% 76.1%, 64.1% 98%, 50% 81%, 35.9% 98%, 33.2% 76.1%, 12.2% 82.7%, 21.8% 62.9%, 0.5% 57.1%, 19.3% 45.6%, 4.5% 29.2%, 26.6% 29.7%, 23% 7.9%, 41.3% 20.3%);
}
.nb-star{
  --shape-color: var(--green-3);
  width: 130px; height: 130px;
  clip-path: polygon(50% 0%, 62.3% 33%, 97.6% 34.5%, 70% 56.5%, 79.4% 90.5%, 50% 71%, 20.6% 90.5%, 30% 56.5%, 2.4% 34.5%, 37.7% 33%);
}
.nb-triangle{
  --shape-color: var(--violet-4);
  width: 120px; height: 110px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.nb-triangle::after{ transform: scale(0.84); transform-origin: 50% 78%; }

/* ───── SHAPE ANIMATIONS ───── */
@keyframes floatA  { 0%,100%{ translate: 0 0 }    50%{ translate: 0 -14px } }
@keyframes floatB  { 0%,100%{ translate: 0 0 }    50%{ translate: 0 -9px  } }
@keyframes floatC  { 0%,100%{ translate: 0 0 }    50%{ translate: 0 -18px } }
@keyframes spinSlow{ to{ rotate: 360deg  } }
@keyframes spinRev { to{ rotate: -360deg } }
@keyframes wobble  { 0%,100%{ rotate: -4deg }    50%{ rotate: 4deg } }
@keyframes pulse   { 0%,100%{ scale: 1 }         50%{ scale: 1.1 } }

.shape-anim.nb-circle  { animation: floatA 4s ease-in-out infinite, spinSlow 25s linear infinite; }
.shape-anim.nb-burst   { animation: floatB 3.5s ease-in-out infinite, wobble 5s ease-in-out infinite; }
.shape-anim.nb-star    { animation: floatC 5s ease-in-out infinite, spinRev 30s linear infinite; }
.shape-anim.nb-triangle{ animation: floatB 3s ease-in-out infinite, spinSlow 20s linear infinite; }
.shape-anim.nb-square  { animation: floatA 4.5s ease-in-out infinite, pulse 3s ease-in-out infinite; }

/* ───── FORMS ───── */
form{
  background: var(--blanco); border: var(--borde);
  box-shadow: var(--sombra); padding: 34px 30px;
}
.f-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-grupo{ margin-bottom: 18px; }
label{
  font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  display: block; margin-bottom: 7px;
}
input, select, textarea{
  width: 100%; font-family: 'Space Grotesk', sans-serif; font-size: 16px;
  border: var(--borde); background: var(--papel);
  padding: 13px 14px; border-radius: 0; appearance: none;
}
textarea{ resize: vertical; min-height: 110px; }
select{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23131313' stroke-width='3' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.f-botones{ display: grid; gap: 14px; }
form .btn{ width: 100%; text-align: center; }
.form-nota{ font-size: 13px; margin-top: 14px; text-align: center; }
.form-ok{
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 15px;
  text-align: center; margin-top: 16px;
  background: var(--amarillo); border: var(--borde); padding: 12px;
}

/* ───── FOOTER ───── */
footer{
  background: var(--ink); color: var(--papel);
  border-top: var(--borde); padding: 54px 0 40px;
}
.foot{
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 30px; flex-wrap: wrap;
}
.foot .logo{ color: var(--papel); }
.foot-links{ list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a{ text-decoration: none; font-size: 14px; }
.foot-links a:hover{ color: var(--amarillo); }
footer small{
  font-family: 'Space Mono', monospace; font-size: 12px;
  display: block; margin-top: 14px; opacity: .75;
}

/* ───── REVEAL ON SCROLL ───── */
.rev{ opacity: 0; transform: translateY(28px); transition: opacity .6s, transform .6s; }
.rev.in{ opacity: 1; transform: none; }

/* ───── MARQUEE ───── */
.marquee{
  background: var(--cta);
  border-top: var(--borde); border-bottom: var(--borde);
  overflow: hidden; padding: 14px 0;
}
.marquee-track{
  display: flex; gap: 0; width: max-content;
  animation: scroll 22s linear infinite;
}
.marquee span{
  font-family: 'Archivo Black', sans-serif; font-size: 22px;
  text-transform: uppercase; white-space: nowrap;
  padding: 0 18px; color: var(--ink);
}
.marquee span i{ font-style: normal; color: var(--papel); }
@keyframes scroll{ to{ transform: translateX(-50%); } }

/* ───── INNER PAGES ───── */
.page{ padding: 150px 0 96px; }
.lead{ font-size: 20px; max-width: 650px; margin-bottom: 40px; }
h1 .hl{
  color: var(--blanco); padding: 0 10px;
  display: inline-block; transform: rotate(-1deg);
}

/* ───── DIALOG / MODAL ───── */
.dialog-overlay{
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.dialog{
  background: var(--blanco); border: var(--borde);
  box-shadow: var(--sombra-lg);
  padding: 32px 28px 28px;
  max-width: 420px; width: 100%;
  position: relative;
  animation: dialogIn .2s ease-out;
}
@keyframes dialogIn{ from{ opacity: 0; transform: translateY(12px) scale(.97); } }
.dialog h3{
  font-family: 'Archivo Black', sans-serif; font-size: 20px;
  text-transform: uppercase; line-height: 1.2; margin-bottom: 18px;
  padding-right: 32px;
}
.dialog-close{
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: var(--blanco); border: var(--borde);
  box-shadow: var(--sombra-sm);
  font-family: 'Space Mono', monospace; font-size: 18px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .12s, box-shadow .12s;
}
.dialog-close:hover{ transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.dialog-close:active{ transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--black); }
.dialog-actions{
  display: flex; gap: 12px; justify-content: flex-end;
  margin-top: 24px; flex-wrap: wrap;
}
.dialog .btn-ghost{
  font-family: 'Space Mono', monospace; font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  background: none; border: none; cursor: pointer;
  padding: 12px 18px; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 3px;
}
.dialog .btn-ghost:hover{ background: var(--papel); text-decoration: none; }

/* ───── SECTION SPACING ───── */
section{ padding: 96px 0; }

/* ───── RESPONSIVE ───── */
@media (max-width: 900px){
  .cards, .pasos{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  body{ font-size: 16px; }
  section{ padding: 70px 0; }
  .cards, .pasos{ grid-template-columns: 1fr; }
  .f-row{ grid-template-columns: 1fr; }

  .nav-links{
    display: none; position: absolute; top: 80px; left: 0; right: 0;
    background: var(--yellow-1); border-bottom: var(--borde);
    flex-direction: column; gap: 0; padding: 8px 0;
  }
  .nav-links.abierto{ display: flex; }
  .nav-links li{ width: 100%; text-align: center; }
  .nav-links a{ display: block; padding: 14px; border: none; font-size: 17px; }
  .nav .btn{ display: none; }
  .burger{ display: block; }
  .hero-ctas .btn{ width: 100%; text-align: center; }
  .marquee span{ font-size: 17px; }
}

/* ───── REDUCED MOTION ───── */
@media (prefers-reduced-motion: reduce){
  .shape-anim{ animation: none !important; }
  .marquee-track{ animation: none; }
  .rev{ opacity: 1; transform: none; transition: none; }
  [data-par]{ transform: none !important; }
  html{ scroll-behavior: auto; }
}
