/* WillyPost · web de documentación — estética Willy SEO Academy
   (azul acero #4A73AA, marino #203046, tarjetas blancas radio 24, pill azul rotada en la palabra clave) */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&display=swap');

:root {
  --azul: #5881B9; --azul-btn: #4A73AA; --azul-btn-h: #3D6396; --azul-100: #DCE6F3; --azul-50: #EEF3F9;
  --tinta: #1B2638; --marino: #203046; --marino-2: #2C4263; --tx: #4B5567; --tx-2: #6B7588;
  --linea: #E4E8EF; --fondo: #F4F6FA; --blanco: #fff; --tx-sobre-marino: #C9D3E1;
  --dorado: #F5A623; --ok: #16A34A; --warn: #C9851A; --warn-bg: #FFF4DF; --warn-line: #F6DDAF; --error: #EF4444;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-btn: 12px; --r-card: 24px; --r-lg: 18px; --r-xl: 28px;
  --sh-card: 0 30px 60px -30px rgba(27,38,56,.35);
  --sh-pop: 0 20px 40px -18px rgba(27,38,56,.45);
  --sh-btn: 0 12px 24px -12px rgba(74,115,170,.8);
  --focus: 0 0 0 4px #EEF3F9;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--tx); background: var(--blanco); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--azul-btn); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--azul-btn-h); }
h1, h2, h3, h4 { color: var(--tinta); font-weight: 800; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.05; letter-spacing: -.04em; }
h2 { font-size: clamp(27px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.035em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
strong { color: var(--tinta); font-weight: 600; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--azul-btn); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
section { padding: 84px 0; }
@media (max-width: 760px) { section { padding: 60px 0; } body { font-size: 16.5px; } }
.alt { background: var(--fondo); }
.center { text-align: center; }
.lead { font-size: 19px; max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--tx-2); }
.small { font-size: 14.5px; }

/* "pill" azul rotada en la palabra clave */
.pill { display: inline-block; background: var(--azul); color: #fff; padding: .02em .22em .1em; border-radius: .16em; transform: rotate(-1.5deg); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--azul-btn); margin-bottom: 14px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16.5px/1.2 var(--font); padding: 16px 26px; border-radius: var(--r-btn); background: var(--azul-btn); color: #fff; box-shadow: var(--sh-btn); border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--azul-btn-h); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--azul-btn); border-color: var(--azul-100); box-shadow: none; }
.btn-secondary:hover { background: var(--azul-50); border-color: var(--azul); color: var(--azul-btn); }
.btn-white { background: #fff; color: var(--marino); box-shadow: none; }
.btn-white:hover { background: var(--azul-50); color: var(--marino); }
.btn-sm { padding: 11px 18px; font-size: 15px; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.center .btn-row { justify-content: center; }

/* Cabecera */
.topbar { background: linear-gradient(100deg, #203046 0%, #2C4263 55%, #203046 100%); color: var(--tx-sobre-marino); font-size: 14px; text-align: center; padding: 9px 16px; }
.topbar a { color: #fff; font-weight: 600; }
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.hbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { display: block; color: var(--tinta); font-size: 19px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.brand small { display: block; color: var(--tx-2); font-size: 11.5px; letter-spacing: .02em; line-height: 1.2; }
nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a { color: var(--tx); text-decoration: none; font-weight: 500; font-size: 15px; padding: 9px 13px; border-radius: 10px; }
nav.main a:hover, nav.main a[aria-current] { background: var(--azul-50); color: var(--azul-btn); }
nav.main a.btn { color: #fff; margin-left: 8px; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--linea); border-radius: 10px; padding: 8px 12px; font: 600 14px var(--font); color: var(--tinta); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linea); flex-direction: column; align-items: stretch; padding: 12px 20px 18px; box-shadow: var(--sh-card); }
  nav.main.open { display: flex; }
  nav.main a.btn { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero { padding: 70px 0 90px; background: radial-gradient(circle at 85% 0%, rgba(88,129,185,.16), rgba(88,129,185,0) 55%), #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 44px 0 64px; } }
.hero p.lead { margin-top: 22px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks li { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: var(--tinta); }
.checks li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--azul-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A73AA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; flex: none; }

/* Maqueta de la app (solo CSS) */
.mock { position: relative; }
.mock-card { background: #fff; border: 1px solid var(--linea); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 22px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 700; color: var(--tinta); }
.mock-head span { font-size: 12px; font-weight: 600; background: var(--azul-btn); color: #fff; padding: 7px 12px; border-radius: 9px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--tx-2); text-align: center; padding-bottom: 2px; }
.cal div { min-height: 62px; background: var(--fondo); border-radius: 10px; padding: 5px; display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; color: var(--tx-2); }
.cal div.off { background: transparent; }
.cal em { font-style: normal; display: block; height: 14px; border-radius: 5px; font-size: 9px; line-height: 14px; padding: 0 5px; color: #fff; overflow: hidden; white-space: nowrap; font-weight: 600; }
.c-ig { background: #E1306C; } .c-fb { background: #1877F2; } .c-tt { background: #111; } .c-yt { background: #E11D1D; } .c-li { background: #0A66C2; } .c-bs { background: #1185FE; } .c-th { background: #444; } .c-gb { background: #34A853; }
.float { position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--sh-pop); border: 1px solid var(--linea); display: flex; align-items: center; gap: 11px; font-size: 13.5px; font-weight: 600; color: var(--tinta); animation: flota 6s ease-in-out infinite; }
.float small { display: block; font-weight: 400; color: var(--tx-2); font-size: 12px; }
.float .ico { width: 38px; height: 38px; border-radius: 11px; background: var(--azul-50); color: var(--azul-btn); display: grid; place-items: center; flex: none; }
.float.f1 { left: -26px; bottom: -22px; } .float.f2 { right: -14px; top: -46px; animation-delay: -3s; }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 600px) { .float.f1 { left: 0; } .float.f2 { right: 0; } .cal div { min-height: 50px; } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

/* Tarjetas y rejillas */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--linea); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 30px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; display: block; transition: .2s; color: var(--tx); }
a.card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -28px rgba(27,38,56,.5); border-color: var(--azul-100); }
.icon { width: 46px; height: 46px; border-radius: 14px; background: var(--azul-50); color: var(--azul-btn); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-head { margin-bottom: 44px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; background: var(--azul-50); color: var(--azul-btn); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.ok { background: #E6F6EC; color: #11803A; }

/* Tabla redes */
.table-wrap { overflow-x: auto; border: 1px solid var(--linea); border-radius: var(--r-card); box-shadow: var(--sh-card); background: #fff; }
table.nets { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px; }
table.nets th, table.nets td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--linea); }
table.nets th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-2); background: var(--fondo); }
table.nets tr:last-child td { border-bottom: 0; }
table.nets td.c { text-align: center; } table.nets th.c { text-align: center; }
table.nets .y { color: var(--ok); font-weight: 800; } table.nets .n { color: #B8C0CE; } table.nets .m { color: var(--warn); font-weight: 700; }

/* Instalación: pestañas */
.tabs { display: inline-flex; background: var(--azul-50); border-radius: 14px; padding: 5px; gap: 4px; margin-bottom: 30px; }
.tabs button { border: 0; background: transparent; font: 600 15.5px var(--font); color: var(--tx); padding: 11px 24px; border-radius: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--azul-btn); box-shadow: 0 6px 14px -8px rgba(27,38,56,.4); }
.tabpanel[hidden] { display: none; }
.install-steps { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
@media (max-width: 900px) { .install-steps { grid-template-columns: 1fr; } }
.istep { background: #fff; border: 1px solid var(--linea); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 24px; counter-increment: s; }
.istep::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 800; margin-bottom: 14px; }
.istep h3 { font-size: 19px; }
.shot { border: 2px dashed var(--azul-100); background: var(--azul-50); border-radius: 16px; min-height: 150px; display: grid; place-items: center; text-align: center; color: var(--tx-2); font-size: 13.5px; padding: 16px; margin: 14px 0 4px; }
.shot b { color: var(--azul-btn); display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.shot img { border-radius: 12px; }

/* Banda marino */
.band { background: var(--marino); color: var(--tx-sobre-marino); border-radius: var(--r-xl); padding: 56px; position: relative; overflow: hidden; }
.band::after { content: ''; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(88,129,185,.5), rgba(88,129,185,0) 70%); pointer-events: none; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #A9C2E4; }
.band strong { color: #fff; }
.band .grid { position: relative; z-index: 1; }
.band .step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px; }
.band .step b.n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--azul); color: #fff; margin-bottom: 12px; }
.prompts { display: grid; gap: 10px; margin-top: 26px; position: relative; z-index: 1; }
.prompts q { display: block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 13px 18px; color: #fff; quotes: none; font-size: 16px; }
.prompts q::before { content: '“'; } .prompts q::after { content: '”'; }
@media (max-width: 700px) { .band { padding: 34px 22px; } }

/* FAQ */
details.faq { background: #fff; border: 1px solid var(--linea); border-radius: var(--r-lg); padding: 0 26px; margin-bottom: 12px; }
details.faq[open] { border-color: var(--azul-100); box-shadow: 0 24px 40px -30px rgba(27,38,56,.5); }
details.faq summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--tinta); font-size: 17.5px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--azul-50); color: var(--azul-btn); display: grid; place-items: center; font-size: 20px; font-weight: 600; }
details.faq[open] summary::after { content: '–'; }
details.faq .body { padding: 0 0 22px; }
details.faq .body > :last-child { margin-bottom: 0; }

/* Footer */
footer.site { background: var(--marino); color: var(--tx-sobre-marino); padding: 64px 0 34px; font-size: 15px; position: relative; overflow: hidden; }
footer.site a { color: var(--tx-sobre-marino); text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .fgrid { grid-template-columns: 1fr 1fr; } }
footer.site h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
footer.site .brand b { color: #fff; } footer.site .brand small { color: #9FB0C8; }
.fbottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: 14px; }

/* Guías */
.crumbs { font-size: 14px; color: var(--tx-2); margin-bottom: 22px; }
.crumbs a { color: var(--tx-2); } .crumbs a:hover { color: var(--azul-btn); }
.guide-hero { padding: 54px 0 34px; background: radial-gradient(circle at 90% 0%, rgba(88,129,185,.14), rgba(88,129,185,0) 55%), #fff; }
.guide-hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.meta li { background: var(--azul-50); border-radius: 99px; padding: 8px 16px; font-size: 14.5px; font-weight: 600; color: var(--tinta); }
.meta li span { color: var(--tx-2); font-weight: 500; }
.guide-body { padding: 20px 0 80px; }
.guide-body h2 { font-size: 27px; margin: 54px 0 18px; letter-spacing: -.03em; padding-top: 8px; }
.guide-body h2:first-child { margin-top: 10px; }
.guide-body h3 { margin: 28px 0 10px; }
ol.steps { list-style: none; counter-reset: st; padding: 0; margin: 0 0 20px; }
ol.steps > li { counter-increment: st; position: relative; background: #fff; border: 1px solid var(--linea); border-radius: var(--r-lg); padding: 20px 22px 20px 74px; margin-bottom: 14px; }
ol.steps > li::before { content: counter(st); position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 800; display: grid; place-items: center; }
ol.steps > li > :last-child { margin-bottom: 0; }
ol.steps ul { margin: 8px 0 0; padding-left: 20px; }
ol.steps li li { margin-bottom: 4px; }
.guide-body ul.plain { padding-left: 22px; }
.guide-body ul.plain li { margin-bottom: 6px; }
.btnlabel { display: inline-block; background: var(--azul-50); color: var(--azul-btn-h); border: 1px solid var(--azul-100); border-radius: 8px; padding: 0 8px; font-weight: 600; font-size: .92em; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.callout { border-radius: var(--r-lg); padding: 18px 22px; margin: 22px 0; border: 1px solid var(--azul-100); background: var(--azul-50); }
.callout > :last-child { margin-bottom: 0; }
.callout > b:first-child, .callout .t { display: block; color: var(--tinta); font-weight: 700; margin-bottom: 4px; }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.callout.warn .t { color: #8A5A0E; }
.callout.ok { background: #E9F7EE; border-color: #BFE5CC; }

/* Caja de copiar */
.copybox { margin: 14px 0 6px; }
.copybox .lbl { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-btn); margin-bottom: 7px; }
.copybox .row { display: flex; gap: 10px; align-items: stretch; background: var(--fondo); border: 1.5px solid var(--azul-100); border-radius: 14px; padding: 8px 8px 8px 16px; }
.copybox code { flex: 1; min-width: 0; align-self: center; font-size: 15.5px; color: var(--tinta); word-break: break-all; user-select: all; }
.copybox button { flex: none; border: 0; background: var(--azul-btn); color: #fff; font: 600 14.5px var(--font); padding: 11px 18px; border-radius: 10px; cursor: pointer; }
.copybox button:hover { background: var(--azul-btn-h); }
.copybox button.done { background: var(--ok); }
@media (max-width: 520px) { .copybox .row { flex-direction: column; padding: 14px; } }

.todo { background: #FFE9A8; color: #6B4A00; border-radius: 6px; padding: 1px 7px; font-size: .85em; font-weight: 700; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-top: 56px; }
table.simple { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 16px 0; background: #fff; border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
table.simple th, table.simple td { padding: 12px 16px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
table.simple th { background: var(--fondo); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); }
.checklist { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--azul-100); background: #fff; }

/* Legal / texto largo */
.prose h2 { font-size: 26px; margin: 44px 0 14px; letter-spacing: -.03em; }
.prose h3 { margin: 26px 0 8px; font-size: 18.5px; }
.prose ul, .prose ol { padding-left: 22px; } .prose li { margin-bottom: 7px; }
.prose .updated { color: var(--tx-2); font-size: 14.5px; }

/* Cuadrícula de guías */
.gcard { display: flex; flex-direction: column; gap: 4px; }
.gcard .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gcard .time { font-size: 13.5px; color: var(--tx-2); font-weight: 500; }
.gcard .go { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--azul-btn); }

noscript .nojs { background: var(--warn-bg); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
@media print { header.site, footer.site, .topbar, .menu-btn { display: none; } section { padding: 24px 0; } }

@media (max-width: 520px) {
  ol.steps > li { padding: 18px 16px 18px 62px; }
  ol.steps > li::before { left: 14px; top: 16px; width: 34px; height: 34px; }
  .card { padding: 24px; }
}

/* Móvil: nada se sale de la pantalla (textos largos, direcciones y tablas) */
.guide-body code, .prose code, .guide-body a, .prose a { overflow-wrap: anywhere; }
@media (max-width: 640px) { table.simple { display: block; overflow-x: auto; } }

/* Guías: camino principal («Conectar») y opción avanzada (tu propia app), claramente secundaria */
.advanced-intro { margin-top: 64px; padding-top: 30px; border-top: 2px dashed var(--azul-100); }
.advanced-intro h2 { margin-top: 6px !important; }
.advanced { border-left: 4px solid var(--azul-100); padding-left: 22px; }
.advanced h2 { font-size: 22px; margin-top: 40px; }
@media (max-width: 640px) { .advanced { padding-left: 14px; } }
