/* Miércoles de IA · estilos comunes de la web */
:root {
  --ink: #1B132A;
  --ink-2: #33293F;
  --muted: #5F5470;
  --bg: #F5F1FE;
  --card: #FFFFFF;
  --line: #E3DAF2;
  --line-2: #DCD3EA;
  --violet: #7A41BB;
  --violet-dark: #5C2A94;
  --lilac-soft: #EEE4FA;
  --rose: #D0708F;
  --rose-soft: #FBE4EC;
  --rose-ink: #8A2E52;
  --peach: #F2A15F;
  --peach-soft: #FDEBDD;
  --peach-ink: #8A4A12;
  --on-dark: #F5F1FE;
  --on-dark-muted: #CFC6DE;
  --radius: 14px;
  --radius-lg: 18px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Cabecera */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.brand-mark svg { position: absolute; top: 4px; right: 4px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--violet); }
.nav .btn { padding: 0 18px; color: #fff; }
.nav .btn:hover { color: #fff; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-dark); color: #fff; }
.btn-peach { background: var(--peach); color: var(--ink); font-weight: 800; }
.btn-peach:hover { background: #EA8F45; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2C2140; color: #fff; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border: 1.5px solid var(--on-dark); color: var(--on-dark); background: transparent; }
.btn-outline-light:hover { background: var(--on-dark); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Etiquetas */
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.badge-cat { background: var(--lilac-soft); color: var(--violet-dark); }
.badge-test { background: var(--peach-soft); color: var(--peach-ink); }
.badge-new { background: var(--rose-soft); color: var(--rose-ink); }
.badge-dark { background: var(--ink); color: #fff; }
.mark { text-decoration: underline; text-decoration-color: var(--peach); text-decoration-thickness: 0.12em; text-underline-offset: 0.14em; }

/* Hero */
.hero { background: var(--ink); color: var(--on-dark); }
.hero .container { padding-top: clamp(44px, 7vw, 88px); padding-bottom: clamp(44px, 7vw, 88px); display: flex; flex-direction: column; gap: 20px; }
.hero .eyebrow { color: var(--on-dark-muted); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; }
.hero h1 { max-width: 900px; font-weight: 800; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.06; }
.hero .lead { max-width: 660px; font-size: clamp(17px, 2vw, 19px); color: var(--on-dark-muted); }

/* Secciones */
.section { padding: clamp(40px, 6vw, 64px) 0 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; max-width: 760px; }
.section-head h2 { font-weight: 800; font-size: clamp(26px, 3.2vw, 36px); }
.section-head p { font-size: 17px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* Esta semana */
.feature { padding: clamp(18px, 3vw, 28px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.feature-media { flex: 1 1 380px; position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--lilac-soft); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--violet-dark); font-weight: 700; text-align: center; padding: 16px; }
.feature-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { width: 68px; height: 68px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.feature-body { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.feature-body .eyebrow { color: var(--rose-ink); }
.feature-body h2 { font-weight: 800; font-size: clamp(26px, 3vw, 34px); }
.feature-body p { font-size: 16px; color: var(--muted); }

/* Directorio */
.soon { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--peach-soft); color: var(--peach-ink); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tool-top { display: flex; flex-wrap: wrap; gap: 6px; }
.tool h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.tool p { font-size: 15px; color: var(--muted); }
.tool[hidden] { display: none; }
.tool-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 6px; }
.tool-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--violet); }
.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; }
.hero-compact .container { padding-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(36px, 5vw, 60px); gap: 14px; }
.hero-compact h1 { font-size: clamp(32px, 4.4vw, 52px); }
.dir-controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.dir-search { max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.chip span { font-size: 12px; font-weight: 600; opacity: 0.75; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"]:hover { color: #fff; }
.dir-count { font-size: 16px; font-weight: 800; }
.dir-empty { padding: 28px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.dir-empty h2 { font-size: 20px; font-weight: 800; }
.dir-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.method-item { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.method-item h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.method-item p { font-size: 15px; color: var(--muted); }
.num { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.num-1, .num-2, .num-3 { background: var(--violet); color: #fff; }
.dir-cta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.dir-cta p { font-size: 15px; color: var(--muted); }

/* Quién */
.who { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.avatar { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--rose-soft); color: var(--rose-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; }
.who h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.who p { font-size: 15px; color: var(--muted); }

/* Banda de servicios */
.band { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band-peach { background: var(--peach-soft); }
.band-promo { background: var(--violet); color: #fff; }
.band-promo .eyebrow { color: #F7C79D; }
.band-promo .band-body p:not(.eyebrow) { color: #F1E8FB; }
.band-peach .eyebrow { color: var(--peach-ink); }
.band-body { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.band-body h2 { font-weight: 800; font-size: clamp(24px, 2.8vw, 32px); }
.band-body p { font-size: 16px; color: #4A3F5C; }

/* Newsletter */
.newsletter { background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; }
.newsletter h2 { flex: 1 1 380px; font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.newsletter-form { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.newsletter-form .note { font-size: 13px; color: var(--on-dark-muted); }
.newsletter-form .note a { color: var(--on-dark); font-weight: 700; }

/* Footer */
.site-footer { background: var(--card); border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 64px); }
.site-footer .container { padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 14px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; font-weight: 600; }
.footer-nav a { color: var(--muted); padding: 10px 0; }
.footer-small { font-size: 13px; color: var(--muted); }

/* Servicios */
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 760px) { .packs { grid-template-columns: 1fr; } }
.pack { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pack h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pack > p { font-size: 15px; color: var(--muted); }
.pack ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-2); }
.pack li { display: flex; gap: 10px; align-items: flex-start; }
.pack li svg { flex-shrink: 0; margin-top: 3px; }
.pack .btn { margin-top: auto; }
.pack-featured { background: var(--violet); border-color: var(--violet); color: #fff; }
.pack-featured > p, .pack-featured ul { color: #F1E8FB; }
.pack-featured .badge { background: var(--peach); color: var(--ink); align-self: flex-start; }
.packs-note { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.steps p { font-size: 15px; color: var(--muted); }
.why { background: var(--lilac-soft); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 18px; }
.why-grid h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.why-grid p { font-size: 15px; color: #4A3F5C; }

/* Formulario */
.contact { display: flex; flex-wrap: wrap; gap: 32px; }
.contact-intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.contact-intro h2 { font-weight: 800; font-size: clamp(26px, 3vw, 36px); }
.contact-intro p { font-size: 16px; color: var(--muted); }
.form { flex: 1 1 460px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font: inherit; font-size: 16px; color: var(--ink); width: 100%; }
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--violet); }
.form-note { font-size: 13px; color: var(--muted); }
.form .btn { align-self: flex-start; }

/* Páginas legales */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--gutter) 0; }
.legal h1 { font-weight: 800; font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.legal h2 { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 16px; color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal dl { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 8px 16px; margin: 12px 0 0; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
.fill { background: #FFF0DA; color: #7A3E00; padding: 1px 6px; border-radius: 6px; font-weight: 700; }

/* Precios en el directorio y en servicios */
.tool-price { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #F7F3FD; font-size: 14px; }
.tool-price strong { font-size: 15px; }
.tool-price span { color: var(--muted); font-size: 13px; }
.tool-price .tool-free { color: var(--ink-2); font-weight: 700; }
.tool-price-pending { background: transparent; border: 1px dashed var(--line-2); }
.pack-price { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: #F7F3FD; }
.pack-price strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.pack-price span { font-size: 13px; color: var(--muted); }
.pack-custom { border-style: dashed; border-width: 1.5px; border-color: var(--line-2); }

.video-note { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-top: 16px; }
.video-note p { font-size: 15px; color: var(--ink-2); }
.play-mini { width: 34px; height: 34px; border-radius: 10px; background: var(--violet); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Botones flotantes: WhatsApp y asistente */
.mdia-float { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 0; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(27, 19, 42, 0.18); }
.float-wa { background: #1F8A4C; color: #fff; }
.float-wa:hover { background: #17703D; color: #fff; }
.float-chat { background: var(--violet); color: #fff; }
.float-chat:hover { background: var(--violet-dark); }
.chat-panel { position: fixed; right: 16px; bottom: 140px; z-index: 60; width: min(360px, calc(100vw - 32px)); max-height: min(520px, calc(100vh - 170px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(27, 19, 42, 0.22); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--ink); color: var(--on-dark); }
.chat-head p { font-weight: 800; font-size: 15px; }
.chat-close { min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--on-dark); font: inherit; font-size: 22px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.chat-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.chat-user { align-self: flex-end; background: var(--violet); color: #fff; }
.chat-msg a { font-weight: 700; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-size: 14px; }
.chat-quick { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); scrollbar-width: thin; }
.chat-quick button { flex: 0 0 auto; white-space: nowrap; }
.chat-quick button { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.chat-quick button:hover { border-color: var(--violet); color: var(--violet); }
.chat-foot { padding: 0 14px 12px; font-size: 12px; color: var(--muted); }
.chat-head, .chat-quick, .chat-form, .chat-foot { flex-shrink: 0; }
.chat-panel.no-wa { bottom: 80px; max-height: min(560px, calc(100vh - 110px)); }
.chat-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.chat-form input:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.chat-form button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--violet); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.chat-form button:hover { background: var(--violet-dark); }
.chat-msg p + p { margin-top: 6px; }
.chat-tool-price { font-weight: 700; color: var(--ink-2); }
.chat-list { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.chat-list a { font-weight: 700; color: var(--violet-dark); }
body { padding-bottom: 80px; }

@media (max-width: 640px) {
  .chat-panel, .chat-panel.no-wa { top: 12px; right: 12px; bottom: 12px; left: 12px; width: auto; max-height: none; }
  .float-btn .float-label { display: none; }
  .float-btn { min-width: 52px; justify-content: center; padding: 0 14px; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .nav { gap: 2px 16px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 8px; }
}
