/* =========================================================
   Web Express · Pablo Sánchez Marketing Digital
   Paleta: blanco + negro tinta + amarillo del logo.
   ========================================================= */

:root {
  --y: #FFDE59;          /* amarillo del logo */
  --y-deep: #F7C400;
  --y-soft: #FFF6CC;
  --ink: #111111;
  --ink-2: #3A3A3A;
  --muted: #6B6B6B;
  --bg: #FFFFFF;
  --bg-soft: #FAF7EE;
  --line: #ECE7D8;
  --wa: #25D366;
  --radius: 22px;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 40px -18px rgba(17,17,17,.25);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
mark {
  background: linear-gradient(transparent 58%, var(--y) 58%, var(--y) 92%, transparent 92%);
  color: inherit; padding: 0 .08em;
}

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 2px solid var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--dark { background: var(--ink); color: var(--y); box-shadow: 4px 4px 0 var(--y-deep); }
.btn--dark:hover { box-shadow: 6px 6px 0 var(--y-deep); }
.btn--ghost { background: #fff; color: var(--ink); }
.btn--ghost:hover { background: var(--y); }
.btn--sm { padding: 10px 18px; font-size: .95rem; box-shadow: none; }
.btn--lg { padding: 18px 28px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.35); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: .98rem; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: var(--y); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 0; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: end; }
.hero__txt { padding-bottom: clamp(40px, 7vw, 96px); }
.tag {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem;
  background: var(--y-soft); border: 1px solid #F3E3A0; padding: 7px 14px; border-radius: 999px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } }
.hero h1 { margin-top: 18px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .98rem; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .ico { color: var(--ink); background: var(--y); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }

.hero__media { position: relative; align-self: end; display: flex; justify-content: center; }
.hero__blob {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 92%; aspect-ratio: 1; border-radius: 50% 50% 0 0 / 50% 50% 0 0;
  background: var(--y); height: 78%;
}
.hero__photo { position: relative; width: min(100%, 420px); filter: drop-shadow(0 20px 30px rgba(0,0,0,.12)); }
.bubble {
  position: absolute; background: var(--ink); color: #fff; font-size: .98rem; line-height: 1.35;
  padding: 14px 18px; border-radius: 6px; max-width: 230px; transform: rotate(-3deg);
}
.bubble strong { display: block; color: var(--y); font-size: 1.05rem; }
.bubble::after {
  content: ""; position: absolute; left: 34px; bottom: -22px;
  border: 12px solid transparent; border-top: 12px solid var(--ink); border-left: 12px solid var(--ink);
}
.bubble--hero { left: -4%; top: 16%; animation: float 5s ease-in-out infinite; }
.sticker {
  position: absolute; right: 2%; bottom: 14%; width: 118px; height: 118px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ink); display: grid; place-content: center; text-align: center;
  transform: rotate(10deg); box-shadow: 5px 5px 0 var(--ink); line-height: 1;
}
.sticker span { font-size: .85rem; font-weight: 600; }
.sticker b { font-size: 1.7rem; font-weight: 800; }
@keyframes float { 50% { transform: rotate(-3deg) translateY(-8px); } }

/* ---------- Tira de sectores ---------- */
.strip { background: var(--ink); color: #fff; overflow: hidden; padding: 16px 0; }
.strip__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.strip span { font-weight: 700; font-size: 1.1rem; padding: 0 22px; white-space: nowrap; display: flex; align-items: center; gap: 44px; }
.strip span::after { content: "✦"; color: var(--y); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { padding: clamp(72px, 10vw, 120px) 0; }
.sec--soft { background: var(--bg-soft); }
.sec--dark { background: var(--ink); color: #fff; }
.kicker {
  display: inline-block; font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em;
  background: var(--ink); color: var(--y); padding: 6px 12px; border-radius: 4px; transform: rotate(-2deg); margin-bottom: 18px;
}
.kicker--y { background: var(--y); color: var(--ink); }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 40em; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px;
  box-shadow: 6px 6px 0 var(--ink); transition: transform .2s;
}
.card:hover { transform: translate(-2px, -2px); }
.card p { color: var(--ink-2); margin: 0; }
.card__emoji { font-size: 2rem; display: block; margin-bottom: 14px; }
.fix { margin-top: 44px; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; max-width: 34em; }

.feat { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.feat p { color: var(--ink-2); margin: 0; }
.feat__ico { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: var(--y); color: var(--ink); margin-bottom: 18px; }

/* ---------- Precios ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; max-width: 920px; }
.plan {
  position: relative; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 34px 30px 30px; display: flex; flex-direction: column;
}
.plan--hot { background: var(--y); box-shadow: 8px 8px 0 var(--ink); }
.plan__badge {
  position: absolute; top: -15px; right: 24px; background: var(--ink); color: var(--y);
  font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px;
}
.plan__name { font-size: 1.6rem; margin: 0; }
.plan__for { color: var(--ink-2); margin: 4px 0 18px; }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.plan__price b { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.plan__price span { color: var(--ink-2); font-weight: 500; }
.plan__list { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan__list li { padding: 9px 0 9px 30px; position: relative; border-top: 1px dashed rgba(17,17,17,.18); }
.plan__list li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 16px; height: 9px;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg);
}
.plan--hot .btn--dark { box-shadow: 4px 4px 0 #fff; }

.care {
  margin-top: 24px; max-width: 920px; display: flex; gap: 20px; align-items: center; justify-content: space-between;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px;
}
.care h3 { margin-bottom: 6px; }
.care p { margin: 0; color: var(--ink-2); }
.care .btn { flex: none; }
.note { color: var(--muted); font-size: .92rem; margin-top: 18px; }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { border-top: 3px solid var(--y); padding-top: 22px; }
.step__n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--y); color: var(--ink); font-weight: 800; font-size: 1.4rem; margin-bottom: 16px;
}
.step p { color: #CFCFCF; margin: 0; }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__img { border-radius: 50%; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); width: min(100%, 400px); justify-self: center; }
.about__txt p { color: var(--ink-2); font-size: 1.08rem; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--y); padding-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; }
.faq details[open] { border-color: var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; padding: 20px 36px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--y); display: grid; place-items: center;
  font-weight: 700; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* ---------- CTA / Formulario ---------- */
.cta { background: var(--y); }
.cta__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cta h2 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.cta__txt p { font-size: 1.15rem; }
.cta__alt a { font-weight: 700; }
.form {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 30px;
  box-shadow: 10px 10px 0 var(--ink); display: grid; gap: 16px;
}
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input[type=text] {
  font: 500 1rem var(--font); padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg-soft);
}
.form input[type=text]:focus { outline: none; border-color: var(--ink); background: #fff; }
.form input.is-bad { border-color: #D93025; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600;
}
.seg input:checked + span { border-color: var(--ink); background: var(--y); }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.form__msg { margin: 0; font-weight: 600; color: #D93025; min-height: 0; }
.form__msg:empty { display: none; }
.form__small { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #BDBDBD; padding: 32px 0 96px; }
.foot__in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__in img { width: 44px; filter: invert(0); background: var(--y); border-radius: 10px; padding: 6px; }
.foot__in p { margin: 0; }
.foot__links { margin-left: auto; display: flex; gap: 20px; }
.foot__links a { text-decoration: none; font-weight: 600; color: #fff; }
.foot__links a:hover { color: var(--y); }

/* ---------- WhatsApp flotante ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); transition: transform .2s;
}
.fab svg { width: 32px; height: 32px; }
.fab:hover { transform: scale(1.07); }

/* ---------- Animación de entrada (el contenido se ve aunque falle JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .strip__track, .bubble--hero, .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__in .btn { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__txt { padding-bottom: 8px; }
  .hero__media { max-width: 440px; margin: 0 auto; width: 100%; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .about, .cta__in { grid-template-columns: 1fr; }
  .about__img { width: 260px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .nav__in { height: 64px; }
  .nav__logo img { height: 38px; }
  .hero__cta .btn { width: 100%; }
  .grid3, .plans, .steps { grid-template-columns: 1fr; }
  .card { box-shadow: 4px 4px 0 var(--ink); }
  .care { flex-direction: column; align-items: flex-start; }
  .bubble { font-size: .9rem; max-width: 190px; padding: 12px 14px; }
  .bubble--hero { left: 0; top: 10%; }
  .sticker { width: 96px; height: 96px; right: 0; }
  .sticker b { font-size: 1.4rem; }
  .form { padding: 22px; box-shadow: 6px 6px 0 var(--ink); }
  .foot__links { margin-left: 0; width: 100%; }
}

/* ---------- Ajustes ---------- */
.nav__logo img { height: 54px; }
#precios .wrap { text-align: center; }
#precios .sub { margin-inline: auto; }
#precios .plans, #precios .care { margin-inline: auto; text-align: left; }
@media (max-width: 640px) { .nav__logo img { height: 40px; } }
.about__txt .kicker { color: var(--y); font-size: .9rem; }

/* Bocadillo del hero a la izquierda, con el pico hacia Pablo */
.bubble--hero { left: -22%; right: auto; top: 9%; max-width: 210px; }
.bubble--hero::after { top: 26px; }
.bubble--hero::after {
  left: auto; right: -22px; bottom: auto; top: 18px;
  border: 12px solid transparent; border-left: 12px solid var(--ink); border-top: 12px solid var(--ink);
}
@media (max-width: 960px) {
  .hero__media { justify-content: flex-end; }
  .hero__photo { width: 64%; margin-right: 4%; }
  .hero__blob { left: auto; right: 0; transform: none; width: 72%; }
  .bubble--hero { left: 0; top: 22%; max-width: 170px; }
  .sticker { right: auto; left: 4%; bottom: 8%; }
}

/* Portada con foto en blanco y negro */
.bubble--hero { left: -14%; top: 12%; }
.sticker { right: -2%; top: 2%; bottom: auto; }
@media (max-width: 960px) {
  .hero__photo { width: 74%; margin-right: 0; }
  .bubble--hero { left: 0; top: 6%; max-width: 160px; }
  .sticker { left: 0; right: auto; top: auto; bottom: 4%; width: 84px; height: 84px; }
  .sticker b { font-size: 1.2rem; }
  .sticker span { font-size: .75rem; }
}
.bubble--hero { left: -26%; top: 14%; }
@media (max-width: 960px) {
  .hero__photo { width: 66%; }
  .bubble--hero { left: 0; top: 8%; max-width: 150px; }
}

/* Foto recortada por Pablo, tamaño como antes; frase en una línea */
.one-line { white-space: nowrap; }
@media (min-width: 961px) { .bubble--hero { left: -24%; } }
@media (max-width: 960px) {
  .hero__photo { width: 74%; }
}
@media (max-width: 640px) { .one-line { white-space: normal; } }

/* Pablo más al centro */
@media (min-width: 961px) {
  .hero__photo { transform: translateX(-42px); }
  .bubble--hero { left: -28%; }
}
@media (max-width: 960px) {
  .hero__photo { transform: translateX(-3.6%); }
}
