:root {
  --papel: #F8F1E0;
  --hoja: #FFFDF6;
  --tinta: #2B2A28;
  --rojo: #E6402E;
  --azul: #2E5FA3;
  --amarillo: #F7C440;
  --verde: #3E9B6E;
  --kraft: #EAD9B7;
  --gris: #55524C;
  --gris-suave: #6B665D;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--tinta);
  font-family: 'Rubik', system-ui, sans-serif; font-size: 16px; line-height: 1.55;
  background-color: var(--papel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.48 0 0 0 0 0.38 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}
.marker { font-family: 'Permanent Marker', cursive; font-weight: 400; }
h1, h2, h3 { font-family: 'Permanent Marker', cursive; font-weight: 400; margin: 0; text-wrap: pretty; }
p { text-wrap: pretty; }
.lienzo { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.topbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 9px 14px; background: var(--tinta); color: var(--papel); font-size: 12.5px; font-weight: 500; letter-spacing: 0.3px; text-align: center; }
.topbar b { color: var(--amarillo); font-weight: 700; }

header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.logo { font-family: 'Permanent Marker', cursive; font-size: 27px; color: var(--tinta); text-decoration: none; transform: rotate(-2deg); display: inline-block; }
.logo em { font-style: normal; color: var(--rojo); }
nav.principal { display: none; }
nav.principal a { color: var(--tinta); text-decoration: none; font-weight: 500; margin-left: 26px; border-bottom: 3px solid transparent; }
nav.principal a:hover { border-bottom-color: var(--amarillo); }

.btn {
  display: inline-block; padding: 15px 28px; font-family: 'Permanent Marker', cursive; font-size: 18px;
  color: var(--tinta); background: var(--amarillo); text-decoration: none; cursor: pointer; border: 3px solid var(--tinta);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 4px 4px 0 var(--tinta); transition: transform .1s, box-shadow .1s; text-align: center;
}
.btn:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--tinta); }
.btn.rojo { background: var(--rojo); color: #fff; }
.btn.chico { padding: 9px 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--tinta); }

.hoja {
  position: relative; background: var(--hoja); border: 1.5px solid rgba(43,42,40,0.25);
  box-shadow: 0 10px 24px rgba(90,70,40,0.18); padding: 32px 28px;
}
.cinta {
  position: absolute; width: 100px; height: 30px; background: rgba(222,205,166,0.85);
  box-shadow: 0 2px 4px rgba(90,70,40,0.2); z-index: 2;
}
.cinta.ti { top: -13px; left: 34px; transform: rotate(-5deg); }
.cinta.td { top: -13px; right: 34px; transform: rotate(4deg); }

/* ---- Hero del home ---- */
.hero { display: flex; flex-direction: column; gap: 52px; padding: 36px 0 60px; }
.sello {
  display: inline-block; padding: 6px 14px; margin-bottom: 20px; transform: rotate(-2deg);
  font-family: 'Caveat', cursive; font-size: 20px; font-weight: 600; color: var(--rojo);
  border: 2.5px dashed var(--rojo); border-radius: 10px; background: rgba(230,64,46,0.06);
}
h1 { font-size: clamp(38px, 5.5vw, 58px); line-height: 1.12; letter-spacing: 0.5px; margin-bottom: 14px; }
h1 .subrayado { position: relative; white-space: nowrap; }
h1 .subrayado svg { position: absolute; left: -2%; bottom: -12px; width: 104%; height: 18px; }
.hero .bajada { font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: var(--gris); max-width: 460px; margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hero-cta .alt { font-family: 'Caveat', cursive; font-size: 22px; font-weight: 600; color: var(--azul); text-decoration: underline wavy; text-underline-offset: 5px; }

/* ---- El recorrido: dibujo → video → juguete (escalonado) ---- */
.recorrido { display: flex; flex-direction: column; align-items: stretch; position: relative; }
.etapa { width: min(268px, 76vw); padding: 20px 18px 16px; text-align: center; z-index: 2; }
.etapa.e1 { align-self: flex-start; margin-left: 2%; transform: rotate(-2.2deg); }
.etapa.e2 { align-self: flex-end; margin-right: 2%; transform: rotate(1.8deg); }
.etapa.e3 { align-self: flex-start; margin-left: 10%; transform: rotate(-1.4deg); }
.garabato-linea { z-index: 1; width: 170px; height: 96px; margin: -14px 0; }
.garabato-linea.l1 { align-self: flex-start; margin-left: 33%; transform: rotate(6deg); }
.garabato-linea.l2 { align-self: flex-end; margin-right: 26%; transform: scaleX(-1) rotate(6deg); }
.etapa .paso-num { display: inline-block; margin-bottom: 10px; font-family: 'Caveat', cursive; font-size: 21px; font-weight: 600; }
.etapa.e1 .paso-num { color: var(--azul); }
.etapa.e2 .paso-num { color: var(--rojo); }
.etapa.e3 .paso-num { color: var(--verde); }
.etapa h3 { font-size: 17px; margin: 10px 0 4px; }
.etapa p { margin: 0; font-size: 12.5px; color: var(--gris-suave); line-height: 1.5; }
.etapa .visual {
  display: flex; align-items: center; justify-content: center; min-height: 130px;
  border: 2.5px dashed rgba(43,42,40,0.3); border-radius: 14px 6px 16px 5px; padding: 14px;
}

/* ---- Secciones ---- */
section { padding: 56px 0 0; }
h2.titulo { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; transform: rotate(-0.7deg); }
h2.titulo .crayon { color: var(--rojo); }
.bajadita { color: var(--gris-suave); margin: 0 0 32px; font-size: 17px; }

.pasos { display: grid; gap: 30px; }
.paso { padding: 28px 24px 24px; }
.paso:nth-child(1) { transform: rotate(-1.4deg); }
.paso:nth-child(2) { transform: rotate(0.9deg); }
.paso:nth-child(3) { transform: rotate(-0.6deg); }
.paso .num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 12px;
  font-family: 'Permanent Marker', cursive; font-size: 21px; color: #fff; border-radius: 50% 46% 52% 48%;
}
.paso:nth-child(1) .num { background: var(--azul); }
.paso:nth-child(2) .num { background: var(--rojo); }
.paso:nth-child(3) .num { background: var(--verde); }
.paso h3 { font-size: 20px; margin-bottom: 10px; }
.paso p { margin: 0; font-size: 15px; color: var(--gris); }

.formatos { display: grid; gap: 40px; max-width: 940px; }
.formato { padding: 32px 28px; }
.formato.digital { transform: rotate(-1deg); }
.formato.figura { transform: rotate(1.1deg); }
.etiqueta-reco {
  position: absolute; top: -18px; right: -8px; transform: rotate(6deg); z-index: 3;
  font-family: 'Permanent Marker', cursive; font-size: 15px; color: #fff; background: var(--rojo);
  padding: 8px 16px; border: 2.5px solid var(--tinta); border-radius: 12px 4px 14px 5px; box-shadow: 3px 3px 0 var(--tinta);
}
.formato h3 { font-size: 25px; margin-bottom: 4px; }
.formato .que { color: var(--gris-suave); font-size: 15px; margin: 0 0 18px; }
.precio { font-family: 'Permanent Marker', cursive; font-size: 38px; margin-bottom: 4px; }
.precio small { font-family: 'Rubik', sans-serif; font-size: 15px; color: var(--gris-suave); font-weight: 400; }
.tachado { font-family: 'Caveat', cursive; font-size: 19px; color: var(--verde); margin-bottom: 18px; }
.formato ul { list-style: none; padding: 0; margin: 0 0 26px; }
.formato li { padding: 7px 0 7px 34px; position: relative; font-size: 15.5px; border-bottom: 1.5px dashed rgba(43,42,40,0.15); }
.formato li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 20px; height: 16px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 11 C5 14,7 17,9 17 C12 13,17 5,22 2' fill='none' stroke='%233E9B6E' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.formato .btn { display: block; }
.nota-precios { margin: 18px 0 0; font-family: 'Caveat', cursive; font-size: 20px; color: var(--gris-suave); }

.motivos { display: grid; gap: 22px; }
.motivo { padding: 20px 22px; font-size: 15px; line-height: 1.55; }
.motivo:nth-child(odd) { transform: rotate(-0.8deg); }
.motivo:nth-child(even) { transform: rotate(0.7deg); }
.motivo .garra { display: block; font-family: 'Caveat', cursive; font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.motivo:nth-child(1) .garra { color: var(--azul); }
.motivo:nth-child(2) .garra { color: var(--rojo); }
.motivo:nth-child(3) .garra { color: #A87400; }
.motivo:nth-child(4) .garra { color: var(--verde); }

/* ---- Lista de espera ---- */
.nota-kraft {
  max-width: 660px; padding: 38px 32px; position: relative; transform: rotate(-0.8deg);
  background: var(--kraft); border: 1.5px solid rgba(43,42,40,0.2); box-shadow: 0 12px 26px rgba(90,70,40,0.22);
}
.nota-kraft h2 { font-size: clamp(24px, 3vw, 31px); margin-bottom: 12px; }
.nota-kraft p.explicacion { margin: 0 0 26px; color: #4A4436; font-size: 16.5px; }
.campos { display: flex; flex-direction: column; gap: 14px; }
.campos input {
  height: 54px; padding: 0 18px; font-family: 'Rubik', sans-serif; font-size: 16px; color: var(--tinta);
  background: var(--hoja); border: 2.5px solid var(--tinta); border-radius: 12px 5px 14px 6px;
}
.campos input:focus { outline: none; border-color: var(--azul); }
.campos input::placeholder { color: #9A917E; }
.letrita { margin: 16px 0 0; font-family: 'Caveat', cursive; font-size: 20px; color: #6B5B3E; }
.aviso-form { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.5; }
.aviso-form.repetido { color: #2E7D5B; }
.aviso-form.error { color: var(--rojo); }
.form-exito h2 { margin-bottom: 10px; }
.form-exito p { margin: 0 0 22px; color: #4A4436; font-size: 16.5px; }

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.faq details { padding: 0; }
.faq details:nth-child(odd) { transform: rotate(-0.5deg); }
.faq details:nth-child(even) { transform: rotate(0.4deg); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: 'Permanent Marker', cursive; font-size: 16.5px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2A28' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 4.5 C12 10 12 14 12.4 19.5 M4.5 12 C10 11.6 15 12.2 19.5 12'/%3E%3C/svg%3E");
  transition: transform 0.15s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E6402E' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 4.5 C12 10 12 14 12.4 19.5 M4.5 12 C10 11.6 15 12.2 19.5 12'/%3E%3C/svg%3E");
}
.faq details p { margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--gris); }

/* ---- Páginas de contenido (landings de intención, FAQ, blog) ---- */
.pagina-hero { padding: 44px 0 10px; max-width: 800px; }
.pagina-hero .miga { font-family: 'Caveat', cursive; font-size: 20px; font-weight: 600; color: var(--gris-suave); display: inline-block; margin-bottom: 18px; }
.pagina-hero .miga a { color: var(--azul); }
.pagina-hero h1 { font-size: clamp(32px, 4.5vw, 48px); }
.pagina-hero .bajada { font-size: clamp(16px, 2vw, 18.5px); line-height: 1.65; color: var(--gris); margin: 20px 0 0; }
.prosa { max-width: 780px; }
.prosa section { padding: 44px 0 0; }
.prosa .hoja { padding: 30px 28px 26px; }
.prosa .hoja + .hoja { margin-top: 34px; }
.prosa .hoja:nth-of-type(odd) { transform: rotate(-0.6deg); }
.prosa .hoja:nth-of-type(even) { transform: rotate(0.5deg); }
.prosa h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.prosa h2 .crayon { color: var(--rojo); }
.prosa p { font-size: 16px; line-height: 1.7; color: var(--gris); margin: 0 0 14px; }
.prosa p:last-child { margin-bottom: 0; }
.prosa a { color: var(--azul); font-weight: 500; }
.prosa ul.palomitas { list-style: none; padding: 0; margin: 0 0 14px; }
.prosa ul.palomitas li { padding: 8px 0 8px 34px; position: relative; font-size: 15.5px; line-height: 1.6; color: var(--gris); border-bottom: 1.5px dashed rgba(43,42,40,0.15); }
.prosa ul.palomitas li:last-child { border-bottom: none; }
.prosa ul.palomitas li::before {
  content: ""; position: absolute; left: 2px; top: 12px; width: 20px; height: 16px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 11 C5 14,7 17,9 17 C12 13,17 5,22 2' fill='none' stroke='%233E9B6E' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.prosa .resaltado {
  font-family: 'Caveat', cursive; font-size: 23px; font-weight: 600; color: var(--rojo);
  border-left: 4px solid var(--rojo); padding: 4px 0 4px 18px; margin: 20px 0; line-height: 1.4;
}

/* ---- CTA final ---- */
.cta-final {
  padding: 40px 28px; text-align: center; transform: rotate(-0.5deg);
  background: var(--rojo); border: 3px solid var(--tinta); box-shadow: 6px 6px 0 var(--tinta);
  border-radius: 20px 8px 22px 8px;
}
.cta-final h2 { font-size: clamp(28px, 4vw, 42px); color: #fff; margin-bottom: 10px; }
.cta-final p { margin: 0 0 26px; font-size: clamp(15px, 2vw, 18px); line-height: 1.55; color: #FFDDD6; }
.cta-final .btn { background: var(--hoja); box-shadow: 4px 4px 0 rgba(0,0,0,0.35); }

/* ---- Footer ---- */
footer { margin-top: 80px; background: var(--tinta); color: #CFC9BD; padding: 40px 0 30px; }
footer .logo { color: var(--papel); font-size: 23px; }
footer .descripcion { margin: 10px 0 26px; font-size: 14.5px; line-height: 1.6; max-width: 340px; }
.footer-columnas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 26px; }
.footer-columnas > div { display: flex; flex-direction: column; gap: 9px; }
.footer-columnas .titulo-col { font-size: 12px; font-weight: 700; color: #948C7C; letter-spacing: 0.6px; }
.footer-columnas a { color: #CFC9BD; font-size: 14px; text-decoration: none; }
.footer-columnas a:hover { color: var(--amarillo); }
.privacidad { margin: 0 0 24px; padding: 14px 18px; background: rgba(255,255,255,0.06); border-radius: 10px; font-size: 13px; line-height: 1.6; }
.privacidad summary { cursor: pointer; font-weight: 700; color: #CFC9BD; }
.privacidad p { margin: 10px 0 0; color: #A69E8D; }
.footer-legal { padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #948C7C; }
.footer-legal a { color: #948C7C; }

.whatsapp-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; background: var(--verde); border: 3px solid var(--tinta);
  border-radius: 50% 46% 52% 48%; box-shadow: 4px 4px 0 var(--tinta); transition: transform .1s, box-shadow .1s;
}
.whatsapp-flotante:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--tinta); }

/* ---- Escritorio ---- */
@media (min-width: 900px) {
  .lienzo { padding: 0 28px; }
  header { padding: 22px 0; }
  nav.principal { display: flex; }
  .hero { flex-direction: row; align-items: center; gap: 60px; padding: 48px 0 80px; }
  .hero-texto { flex: 0 0 46%; }
  .recorrido { flex: 1; }
  .etapa { width: 288px; }
  .etapa.e1 { margin-left: 0; }
  .etapa.e2 { margin-right: 3%; }
  .etapa.e3 { margin-left: 16%; }
  .garabato-linea { width: 235px; height: 132px; margin: -18px 0; }
  .garabato-linea.l1 { margin-left: 40%; }
  .garabato-linea.l2 { margin-right: 30%; }
  .pasos { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .formatos { grid-template-columns: 1fr 1fr; gap: 44px; }
  .formato { padding: 36px 32px; }
  .motivos { grid-template-columns: repeat(4, 1fr); }
  .lista-faq { display: flex; gap: 48px; align-items: flex-start; }
  .nota-kraft { flex: 0 0 440px; padding: 42px 38px; }
  .faq-bloque { flex: 1; }
  .cta-final { padding: 56px; }
  .footer-columnas { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 880px; }
}
