/* La Pendientiza — estilos (sistema de diseño "La Pendientiza") */

:root {
  /* Color */
  --sky: #A3C9EA;
  --sky-soft: #D3E5F5;
  --sunny: #FFD559;
  --sunny-soft: #FFECB3;
  --paper: #FFFFFF;
  --ink: #1F1E1D;
  --ink-soft: #3A3936;

  /* Espacio */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 80px;

  /* Radio */
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Línea y sombra */
  --line-ink: 3px;
  --shadow-pop: 0 5px 0 0 var(--ink);
  --shadow-press: 0 2px 0 0 var(--ink);

  --font: "Figtree", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  --section-pad: 48px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-pad: var(--space-5); }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 800; }
p { text-wrap: pretty; }
::selection { background: var(--sunny); color: var(--ink); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.ink-bg :focus-visible { outline-color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px;
  border-radius: var(--radius-pill); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.center { text-align: center; }

/* Fondos */
.sky { background: var(--sky); }
.sky-soft { background: var(--sky-soft); }
.paper { background: var(--paper); }
.ink-bg { background: var(--ink); color: var(--paper); }
.section { padding: var(--section-pad) 0; }

/* Tipografía */
h1 {
  font-size: clamp(38px, 3.4vw + 22px, 68px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.025em;
}
h2, .section-title {
  font-size: clamp(26px, 1.2vw + 21px, 30px);
  line-height: 1.2;
  font-weight: 800;
}
h3 { font-size: 24px; line-height: 30px; font-weight: 800; }
.section-title { text-align: center; margin-bottom: var(--space-4); text-wrap: balance; }
.lead { font-size: 21px; line-height: 30px; font-weight: 600; }
.fine { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink-soft); }
.fine a { font-weight: 800; color: var(--ink); }

/* Íconos */
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-lg { width: 32px; height: 32px; }
.ico-sunny { color: var(--sunny); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 26px;
  font: 800 18px/22px var(--font);
  text-decoration: none; text-align: center;
  border: var(--line-ink) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pop);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: var(--shadow-press); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 3px 0 0 var(--paper), 0 6px 0 0 var(--ink); }
.btn-ink:hover { box-shadow: 0 3px 0 0 var(--paper), 0 7px 0 0 var(--ink); }
.btn-ink:active { box-shadow: 0 1px 0 0 var(--paper), 0 3px 0 0 var(--ink); }
.btn-sunny { background: var(--sunny); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.btn-lg { padding: 15px 30px; }

/* Píldoras y chips */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 8px 16px;
  font-size: 14px; line-height: 18px; font-weight: 800;
  border-radius: var(--radius-pill);
}
.chip-paper { background: var(--paper); border: 2px solid var(--ink); }
.chip-soft { background: var(--sky-soft); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 15px; }
.pill {
  display: inline-block;
  background: var(--sunny); color: var(--ink);
  border: var(--line-ink) solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-weight: 900; font-size: 22px; line-height: 28px;
  box-shadow: var(--shadow-pop);
}
.pill-inline { font-size: inherit; line-height: inherit; padding: 2px 14px; box-shadow: none; border-width: 2px; }

/* Placeholders visibles */
.ph {
  background: var(--sunny-soft);
  outline: 2px dashed var(--ink-soft);
  outline-offset: 1px;
  border-radius: 4px;
  padding: 0 4px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--line-ink) solid var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; border-radius: 8px; }
.brand img { height: 44px; width: auto; }
.header-nav { display: none; }
@media (min-width: 900px) {
  .header-inner { min-height: 80px; }
  .brand img { height: 56px; }
  .header-nav { display: flex; gap: var(--space-1); margin-left: auto; margin-right: var(--space-2); }
  .header-nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    font-weight: 800; font-size: 16px; text-decoration: none; border-radius: var(--radius-pill);
  }
  .header-nav a:hover { background: var(--sky-soft); }
}

/* Hero */
.hero { padding: 32px 0 var(--section-pad); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-areas: "chip" "art" "text";
  gap: var(--space-3);
  justify-items: center;
  text-align: center;
}
.hero-chip { grid-area: chip; }
.hero-art { grid-area: art; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.hero-text { grid-area: text; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); max-width: 620px; }
.hero-text h1 { text-wrap: balance; }
.hero-text .fine { margin-top: calc(-1 * var(--space-1)); }

.hero-art { position: relative; }
.ntp-row { display: flex; align-items: flex-end; justify-content: center; position: relative; }
.ntp { position: relative; z-index: 1; margin-right: -22px; }
.hero-art .pill { position: relative; z-index: 2; transform: rotate(-3deg); margin-top: -18px; }
.ntp {
  font-size: 96px; line-height: .8; font-weight: 900; letter-spacing: -0.05em;
  color: var(--paper);
  text-shadow: 6px 6px 0 var(--ink);
  -webkit-text-stroke: 0;
  padding-bottom: 14px;
  user-select: none;
}
.mascot { transform-origin: 50% 90%; }
.mascot-hero { width: 150px; margin-left: -6px; }

@media (min-width: 900px) {
  .hero { padding: var(--space-5) 0; }
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "chip art" "text art";
    column-gap: var(--space-4);
    row-gap: var(--space-3);
    justify-items: start;
    text-align: left;
  }
  .hero-chip { align-self: end; }
  .hero-text { align-items: flex-start; align-self: start; }
  .hero-art { align-self: center; justify-self: center; }
  .ntp { font-size: 160px; padding-bottom: 28px; }
  .mascot-hero { width: 280px; }
  .ntp { margin-right: -36px; }
  .pill { font-size: 26px; line-height: 32px; padding: 10px 26px; }
}

/* Problema → alivio */
.relief { padding: var(--section-pad) 0; }
.notes {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 20px 14px;
  max-width: 860px; margin: 0 auto var(--space-4);
}
.note {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px 14px 14px;
  background: var(--sunny-soft);
  border: var(--line-ink) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  font-weight: 800; font-size: 17px; line-height: 22px;
}
.note:nth-child(even) { background: var(--paper); }
.note .box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: none;
  border: var(--line-ink) solid var(--ink); border-radius: 6px; background: var(--paper);
  transition: background .2s ease;
}
.note .box .ico { width: 18px; height: 18px; stroke-width: 3.2; color: var(--sunny); opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.8, .64, 1); }
.note-text { text-decoration: line-through 3px transparent; transition: text-decoration-color .3s ease .1s; }
.note.is-done .box { background: var(--ink); }
.note.is-done .box .ico { opacity: 1; transform: none; }
.note.is-done .note-text { text-decoration-color: var(--ink); }
.note-a { transform: rotate(-4deg); }
.note-b { transform: rotate(3deg); }
.note-c { transform: rotate(-2deg); }
.note-d { transform: rotate(4deg); }
.note-e { transform: rotate(-3deg); }
.note-f { transform: rotate(2deg); }
.relief-line { text-align: center; text-wrap: balance; max-width: 760px; margin: 0 auto; }
.hl { background: var(--sunny); padding: 0 8px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Tarjetas */
.cards-3 { display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper);
  border: var(--line-ink) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: var(--space-3);
}
.service { display: flex; flex-direction: column; gap: var(--space-2); }
.service p, .who p { color: var(--ink-soft); }
.disc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; flex: none;
  background: var(--sunny); color: var(--ink);
  border: var(--line-ink) solid var(--ink);
  border-radius: var(--radius-pill);
}
.disc-paper { background: var(--paper); }
.after { text-align: center; margin-top: var(--space-4); }
.after-pill {
  display: inline-block; max-width: 100%;
  background: var(--sky-soft); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 12px 22px; font-size: 17px; line-height: 24px; text-wrap: balance;
}
.who { display: flex; flex-direction: column; gap: var(--space-1); }
.who .disc { margin-bottom: var(--space-1); }
.disc-sm { width: 48px; height: 48px; }
.who h3 { font-size: 21px; line-height: 26px; }

/* Pasos */
.steps {
  position: relative;
  display: grid; gap: var(--space-3);
  max-width: 980px; margin: 0 auto var(--space-4);
}
.step { position: relative; display: flex; align-items: flex-start; gap: var(--space-2); }
.step p { font-size: 19px; line-height: 28px; padding-top: 12px; }
.step-num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; flex: none;
  background: var(--ink); color: var(--sunny);
  border-radius: var(--radius-pill);
  font-weight: 900; font-size: 28px;
}
/* línea punteada entre pasos */
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: calc(-1 * var(--space-3));
  border-left: 3px dashed var(--ink);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .step { flex-direction: column; align-items: center; text-align: center; }
  .step:not(:last-child)::after {
    left: calc(50% + 40px); right: calc(-50% + 40px - var(--space-4)); top: 27px; bottom: auto;
    border-left: 0; border-top: 3px dashed var(--ink);
  }
}

/* Temporada */
.seasonal { background: var(--sunny); border-top: var(--line-ink) solid var(--ink); border-bottom: var(--line-ink) solid var(--ink); padding: var(--section-pad) 0; }
.seasonal-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); }
.seasonal-text { display: flex; flex-direction: column; gap: var(--space-1); max-width: 560px; }
.seasonal-text p { font-size: 19px; line-height: 28px; }
.seasonal-chip { align-self: center; margin-bottom: var(--space-1); }
@media (min-width: 900px) {
  .seasonal-inner { flex-direction: row; text-align: left; gap: var(--space-4); }
  .seasonal-text { flex: 1; max-width: none; }
  .seasonal-chip { align-self: flex-start; }
}

/* Confianza */
.trust { display: grid; gap: var(--space-2); max-width: 980px; margin: 0 auto; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); } }
.trust-item {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--sky-soft); border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 18px; line-height: 24px; font-weight: 800;
}
.reviews { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 900px) { .reviews:not([hidden]) { grid-template-columns: repeat(2, 1fr); } }
.review blockquote { font-size: 19px; line-height: 28px; margin-bottom: var(--space-2); }
.review figcaption { font-weight: 800; }

/* Preguntas */
.faq { display: flex; flex-direction: column; gap: var(--space-2); }
.faq details {
  background: var(--paper);
  border: var(--line-ink) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  min-height: 60px; padding: 14px 20px 14px 24px;
  font-weight: 800; font-size: 19px; line-height: 24px;
  cursor: pointer; list-style: none;
  border-radius: var(--radius-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico {
  width: 36px; height: 36px; padding: 6px;
  background: var(--sunny); border: 2px solid var(--ink); border-radius: var(--radius-pill);
  transition: transform .2s ease;
}
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; color: var(--ink-soft); }
.faq details p.ph { margin: 0 24px 20px; padding: 2px 6px; display: inline-block; }

/* CTA final */
.final { overflow: hidden; }
.final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); }
.final h2 { color: var(--paper); font-size: clamp(30px, 2.6vw + 20px, 44px); line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; max-width: 760px; }
.final-text { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.final-actions { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.final .btn-sunny { box-shadow: 0 5px 0 0 var(--paper); border-color: var(--paper); }
.final .btn-sunny:hover { box-shadow: 0 6px 0 0 var(--paper); }
.final .btn-sunny:active { box-shadow: 0 2px 0 0 var(--paper); }
.final-phone { color: var(--paper); font-weight: 900; font-size: 24px; text-decoration: none; padding: 10px 6px; }
.final-phone span { display: block; font-size: 14px; line-height: 18px; font-weight: 600; opacity: .85; }
.final-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.mascot-stage {
  display: flex; align-items: center; justify-content: center;
  width: 190px; height: 190px; flex: none;
  background: var(--sky);
  border: var(--line-ink) solid var(--paper);
  border-radius: var(--radius-pill);
}
.mascot-jump { width: 112px; }
@media (min-width: 900px) {
  .final-inner { flex-direction: row; justify-content: center; text-align: left; gap: var(--space-5); }
  .final-text, .final-actions { align-items: flex-start; }
  .final-actions { flex-direction: row; align-items: center; gap: var(--space-3); }
  .mascot-stage { width: 240px; height: 240px; }
  .mascot-jump { width: 140px; }
}

/* Footer */
.site-footer { background: var(--paper); border-top: var(--line-ink) solid var(--ink); padding: var(--space-4) 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; }
.footer-logo { height: 72px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px var(--space-3); }
.footer-links a, .footer-links span {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: 44px; font-weight: 800; text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.ntp-mini { font-weight: 900; color: var(--ink); }
@media (min-width: 900px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Botón flotante (móvil) */
.fab {
  position: fixed; right: 16px; bottom: 20px; z-index: 60;
  display: none; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  background: var(--ink);
  border: var(--line-ink) solid var(--paper);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pop);
  transition: transform .2s ease, opacity .2s ease, visibility .2s;
}
.fab:active { transform: translateY(3px); box-shadow: var(--shadow-press); }
@media (max-width: 767.98px) {
  .fab { display: inline-flex; }
  .fab.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }
  .site-footer { padding-bottom: 104px; }
}

/* Movimiento */
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}
@keyframes dance {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-6px); }
}
@keyframes jump {
  0%, 60%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-18px) rotate(-4deg); }
}
.mascot-hero { animation: dance 1.6s ease-in-out infinite; }
.mascot-hero:hover, .hero-art:hover .mascot-hero { animation: wiggle .5s ease-in-out infinite; }
.mascot-jump { animation: jump 1.8s ease-in-out infinite; }
.mascot-jump:hover { animation: wiggle .5s ease-in-out infinite; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.34, 1.4, .64, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Ajustes para teléfonos */
@media (max-width: 639.98px) {
  .notes { gap: 14px 10px; }
  .note { padding: 10px 12px 10px 10px; font-size: 15px; line-height: 20px; gap: 8px; }
  .note .box { width: 20px; height: 20px; }
  .note .box .ico { width: 15px; height: 15px; }
  .trust-item { padding: 12px 16px; font-size: 17px; }
  .btn-lg { padding: 14px 22px; }
}
