/* Tu Web con IA — estilos compartidos por todas las páginas de /tuweb/
   Paleta y tipografía: Guía de Estilo Luis R. Silva (Estudionila).
   Principal azul, secundario verde, acento amarillo, neutrales tinta y papel. */

:root {
  /* Luis R. Silva */
  --blue: #0055FF;
  --green: #6FEBB8;
  --yellow: #F4E04D;
  --ink: #212932;
  --paper: #F5F7FA;
  --white: #FFFFFF;

  /* Tintes de la paleta (guía de estilo) */
  --blue-light: #EAF1FF;
  --blue-soft: #DCE6FF;
  --green-light: #E2FBF1;

  /* Apoyo */
  --muted: #5A6472;
  --line: #DDE2EA;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --bar-h: 48px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

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

.narrow > * { max-width: 760px; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 16px; text-wrap: balance; }

h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 900; letter-spacing: -0.02em; }

h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 16px; }

section { padding: 64px 0; }

@media (min-width: 900px) { section { padding: 80px 0; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { box-shadow: 0 0 0 3px var(--ink) inset; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn--block { display: block; width: 100%; }

/* ---------- Barra con contador ---------- */
.countdown { position: sticky; top: 0; z-index: 10; background: var(--ink); color: var(--white); }

.countdown__inner {
  max-width: var(--wrap);
  min-height: var(--bar-h);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.countdown__text { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.3; }

.countdown__clock {
  margin: 0;
  font-weight: 900;
  font-size: 1rem;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .countdown__inner { justify-content: center; gap: 20px; }
}

/* ---------- Encabezado y pie ---------- */
.site-header { padding: 16px 0; }
.brand { display: inline-block; }
.brand img { height: 40px; width: auto; }

.site-footer { padding: 32px 0 48px; font-size: 0.85rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Placeholders ---------- */
.placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.placeholder--video { aspect-ratio: 16 / 9; min-height: 0; }
.placeholder--photo { aspect-ratio: 1; min-height: 0; }
.placeholder--tall { min-height: 360px; }
.todo { color: var(--muted); font-style: italic; }

/* ---------- Hero ---------- */
.hero { padding: 24px 0 64px; }
.hero__grid { display: grid; gap: 32px; align-items: start; }

@media (min-width: 900px) {
  .hero { padding: 48px 0 88px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
}

.hero__lead-in { font-weight: 700; color: var(--blue); margin-bottom: 10px; }

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 20px;
}

.hero__sub { font-size: 1.1rem; color: var(--muted); max-width: 34em; margin: 0; }

@media (min-width: 900px) { .hero__sub { font-size: 1.15rem; } }

/* Celular: el botón del formulario debe verse en la primera pantalla o muy cerca.
   Se compacta el encabezado y el subtítulo pasa debajo del formulario (mismo texto). */
@media (max-width: 899px) {
  .site-header { padding: 10px 0; }
  .brand img { height: 32px; }
  .hero { padding-top: 8px; }
  .hero__grid { display: flex; flex-direction: column; gap: 20px; }
  .hero__copy { display: contents; }
  .hero__lead-in { order: 1; font-size: 0.95rem; margin: 0 0 -12px; }
  .hero h1 { order: 2; font-size: clamp(1.75rem, 8vw, 2.4rem); margin: 0; }
  .form-card { order: 3; padding: 20px; }
  .hero__sub { order: 4; font-size: 1rem; }
  .form-card__title { font-size: 1.25rem; margin-bottom: 12px; }
  .lead-form { gap: 4px; }
  .lead-form input[type="text"],
  .lead-form input[type="email"],
  .lead-form input[type="tel"] { padding: 10px 12px; margin-bottom: 6px; }
  .consent { margin: 2px 0 10px; font-size: 0.9rem; }
  .lead-form .btn { font-size: 1rem; padding: 15px 16px; }
}

/* ---------- Formulario ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 24px 60px -30px rgba(33, 41, 50, 0.45);
  scroll-margin-top: calc(var(--bar-h) + 16px);
}

@media (min-width: 900px) { .form-card { padding: 28px; } }

.form-card__title { font-size: 1.4rem; margin-bottom: 16px; }

.lead-form { display: grid; gap: 6px; }
.lead-form label { font-weight: 500; font-size: 0.95rem; }

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"] {
  width: 100%;
  font: inherit;
  font-size: 16px; /* evita el zoom automático en iPhone */
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  margin-bottom: 8px;
}

.lead-form input:focus { border-color: var(--blue); outline: none; background: var(--white); }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-weight: 400 !important; }
.consent input { margin-top: 4px; width: 20px; height: 20px; flex: none; accent-color: var(--blue); }

.form-note { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Formulario de ActiveCampaign (embed 158) ----------
   ActiveCampaign inyecta sus propios estilos después de esta hoja: por eso los !important
   y el selector con el id del botón. Se ocultan el título, la descripción y la imagen
   propios del formulario, porque el título lo pone la página. */
.form-card ._form_158 ._form { all: unset; display: block; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; font-family: var(--font) !important; }
.form-card ._form_158 ._form-content > ._form_element._clear { display: none !important; }
.form-card ._form_158 ._form_element { margin: 0 0 12px !important; font-family: var(--font) !important; }
.form-card ._form_158 ._form-label { display: block !important; font-weight: 500 !important; font-size: 0.95rem !important; color: var(--ink) !important; margin-bottom: 6px !important; }
.form-card ._form_158 input[type="text"],
.form-card ._form_158 input[type="email"] { width: 100% !important; box-sizing: border-box !important; font: inherit !important; font-size: 16px !important; padding: 12px 14px !important; border: 1.5px solid var(--line) !important; border-radius: var(--radius-sm) !important; background: var(--paper) !important; color: var(--ink) !important; height: auto !important; }
.form-card ._form_158 input[type="text"]:focus,
.form-card ._form_158 input[type="email"]:focus { border-color: var(--blue) !important; background: var(--white) !important; outline: none !important; }
.form-card ._form_158 ._checkbox-radio { display: flex !important; gap: 8px; align-items: flex-start; font-size: 0.9rem !important; color: var(--muted) !important; }
.form-card ._form_158 ._checkbox-radio input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.form-card ._form_158 ._checkbox-radio a { color: var(--blue) !important; }
.form-card ._form_158 ._button-wrapper { margin: 4px 0 0 !important; }
.form-card ._form_158 button#_form_158_submit._submit { width: 100% !important; font-family: var(--font) !important; font-weight: 900 !important; font-size: 1.05rem !important; color: var(--ink) !important; background: var(--yellow) !important; border: 0 !important; border-radius: var(--radius-sm) !important; padding: 16px 20px !important; cursor: pointer; }
.form-card ._form_158 button#_form_158_submit._submit:hover { box-shadow: 0 0 0 3px var(--ink) inset !important; }
.form-card ._form_158 ._form-thank-you { font-family: var(--font) !important; color: var(--ink) !important; }

/* ---------- Temporada de ventas de fin de año ---------- */
.season { background: var(--blue); color: var(--white); }
.season h2 { max-width: 18em; }
.season__intro { font-size: 1.15rem; max-width: 36em; color: var(--blue-soft); margin-bottom: 40px; }

.season__timeline { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 0; }

.season__timeline li {
  position: relative;
  padding: 0 0 32px 36px;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
  margin-left: 8px;
}

.season__timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }

.season__timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--white);
}

.season__timeline li.is-now::before { background: var(--yellow); border-color: var(--yellow); }

.season__month { font-weight: 900; font-size: 1.6rem; line-height: 1; margin: 0 0 8px; }
.season__timeline h3 { margin-bottom: 6px; }
.season__timeline p:last-child { color: var(--blue-soft); margin: 0; }

.season__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.2;
}

@media (min-width: 900px) {
  .season__timeline { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .season__timeline li {
    border-left: 0;
    margin-left: 0;
    padding: 36px 0 0;
    border-top: 2px solid rgba(255, 255, 255, 0.35);
  }
  .season__timeline li:last-child { border-top-color: rgba(255, 255, 255, 0.35); }
  .season__timeline li::before { left: 0; top: -9px; }
}

.season__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.season__cta p { font-size: 1.2rem; font-weight: 700; margin: 0; }

/* ---------- ¿Por qué una web? ---------- */
.why { background: var(--white); }
.why__question { font-size: 1.2rem; color: var(--muted); margin-bottom: 32px; }

.scene { display: grid; gap: 24px; margin-bottom: 48px; }
@media (min-width: 760px) { .scene { grid-template-columns: 1fr 1fr; } }

.chat { margin: 0; }
.chat figcaption { font-weight: 700; margin-bottom: 10px; color: var(--muted); }
.chat--win figcaption { color: var(--blue); }

.chat__screen {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid transparent;
}

.chat--win .chat__screen { border-color: var(--green); }

.bubble { margin: 0; padding: 10px 14px; border-radius: 14px; max-width: 88%; font-size: 0.98rem; }
.bubble--in { background: var(--white); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble--out { background: var(--ink); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble--link { display: grid; gap: 8px; }

.link-card {
  display: grid;
  gap: 2px;
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--green);
}

.link-card strong { color: var(--blue); }
.link-card span { font-size: 0.88rem; color: var(--muted); }

.chat__status { margin: auto 0 0; font-size: 0.88rem; color: var(--muted); }
.chat__status--ok { color: var(--ink); font-weight: 700; }

.pillars { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 24px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars li { border-top: 4px solid var(--green); padding-top: 16px; }
.pillars p { color: var(--muted); margin: 0; }

.why__close { font-size: 1.2rem; font-weight: 700; margin: 0; }

/* ---------- Listas con check ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { padding-left: 34px; position: relative; }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23212932' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ---------- Qué recibes ---------- */
.get__grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .get__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.plan-sample {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-top: 6px solid var(--blue);
}

.plan-sample figcaption { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.plan-sample__name { font-weight: 900; font-size: 1.3rem; margin-bottom: 16px; }
.plan-sample dl { margin: 0; display: grid; gap: 4px; }
.plan-sample dt { font-weight: 700; font-size: 0.9rem; color: var(--blue); margin-top: 10px; }
.plan-sample dd { margin: 0; }

.plan-sample__prompt {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.95rem;
}

/* ---------- Pasos numerados ---------- */
.steps { background: var(--white); }
.step-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 760px) { .step-list { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.step-list li { counter-increment: step; }

.step-list li::before {
  content: counter(step);
  display: block;
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 10px;
}

/* ---------- Creador con IA ---------- */
.builder { background: var(--blue); color: var(--white); }
.builder p { font-size: 1.15rem; margin: 0; }

/* ---------- Quién te acompaña ---------- */
.about__grid { display: grid; gap: 28px; align-items: center; margin-bottom: 28px; }
@media (min-width: 760px) { .about__grid { grid-template-columns: 260px 1fr; } }
.about .placeholder--photo { max-width: 260px; }
.about__photo { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; object-position: 66% 45%; border-radius: var(--radius-lg); background: var(--line); }
.about__fact { font-weight: 700; color: var(--blue); margin: 0; }

.trio { display: grid; gap: 16px; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--white); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Cierre con llamado a la acción ---------- */
.closing { background: var(--ink); color: var(--white); text-align: center; }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 24px; }
.closing p { color: #C9CFD8; max-width: 34em; margin: 0 auto 28px; }

/* ---------- Un paso más ---------- */
.next-step { padding: 24px 0 80px; }
.next-step h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -0.03em; max-width: 16em; }
.next-step__intro { font-size: 1.1rem; color: var(--muted); max-width: 36em; margin-bottom: 32px; }

.next-step__grid { display: grid; gap: 32px; align-items: start; }

@media (min-width: 900px) {
  .next-step__grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .next-step__video { position: sticky; top: 24px; }
}

.next-step__video .todo { margin: 12px 0 0; font-size: 0.9rem; }

/* Proceso vertical: número, línea que conecta los pasos y texto */
.process { list-style: none; counter-reset: paso; margin: 0; padding: 0; }

.process li {
  counter-increment: paso;
  position: relative;
  padding: 0 0 28px 60px;
}

.process li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--white);
  background: var(--blue);
}

.process li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.process li:last-child { padding-bottom: 0; }
.process li:last-child::before { background: var(--green); color: var(--ink); }
.process li:last-child::after { display: none; }

.process h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; margin: 8px 0 6px; }
.process p { color: var(--muted); margin: 0 0 8px; }

.folders { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }

.folders span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

.folders .folders__check { border-color: var(--yellow); background: #FDF8D6; }

/* ---------- Herramienta (plan) ---------- */
.tool-hero { padding: 24px 0 48px; }
.tool-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.03em; }
.tool-hero p { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

.access-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 520px;
  border-top: 6px solid var(--blue);
}

.access-box input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  margin: 6px 0 12px;
}

.wizard-steps { --cols: 4; }

.tool-slot { background: var(--blue-light); }
.tool-slot .placeholder { border-color: var(--blue); color: var(--blue); }

/* ---------- Página de venta ---------- */
.sale-hero { background: var(--blue); color: var(--white); padding: 40px 0 56px; }
.sale-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.03em; }
.sale-hero p { color: var(--blue-soft); font-size: 1.15rem; }
.sale-hero .placeholder { color: var(--blue-soft); border-color: rgba(220, 230, 255, 0.5); background: rgba(255, 255, 255, 0.06); margin: 24px 0; }

.cta-stack { display: grid; gap: 10px; justify-items: start; }
.cta-stack .btn { width: 100%; }
@media (min-width: 600px) { .cta-stack .btn { width: auto; } }

.affiliate-note { font-size: 0.85rem; margin: 0; opacity: 0.85; }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .benefits { grid-template-columns: repeat(3, 1fr); } }

.benefits li { background: var(--white); border-radius: var(--radius-lg); padding: 22px; border-top: 4px solid var(--green); }
.benefits li:first-child { border-top-color: var(--yellow); }
.benefits p { color: var(--muted); margin: 0; }

.conditions { background: var(--white); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
