/* Ekkapp — landing page */

.ek-landing {
	--ek-paper: #f6f2ea;
	--ek-paper-2: #efe9dd;
	--ek-white: #ffffff;
	--ek-ink: #18202b;
	--ek-ink-2: #4a5362;
	--ek-muted: #6b7280;
	--ek-line: #e2dccf;
	--ek-navy: #1f3a5f;
	--ek-navy-2: #172d4b;
	--ek-gold: #c8902e;
	--ek-wa: #1f9d55;
	--ek-radius: 18px;
	--ek-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ek-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	font-family: var(--ek-sans);
	color: var(--ek-ink);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
body.ek-page { margin: 0; background: var(--ek-paper); }
.ek-landing *, .ek-landing *::before, .ek-landing *::after { box-sizing: border-box; }
.ek-landing h1, .ek-landing h2, .ek-landing h3 { margin: 0; line-height: 1.12; color: var(--ek-ink); }
.ek-landing p { margin: 0 0 1em; }
.ek-landing a { color: var(--ek-navy); }
.ek-landing img, .ek-landing svg { display: block; }
.ek-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Botones ---------- */
.ek-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none !important; border: 1.5px solid transparent; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.ek-btn:hover { transform: translateY(-1px); }
.ek-btn-primary { background: var(--ek-navy); color: #fff !important; box-shadow: 0 8px 22px rgba(31, 58, 95, .25); }
.ek-btn-primary:hover { background: var(--ek-navy-2); }
.ek-btn-ghost { background: transparent; color: var(--ek-ink) !important; border-color: #cfc7b6; }
.ek-btn-ghost:hover { border-color: var(--ek-ink); }
.ek-btn-dark { background: var(--ek-ink); color: #fff !important; }
.ek-btn-gold { background: var(--ek-gold); color: #1d1405 !important; }
.ek-btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.ek-link { font-weight: 700; text-decoration: none; color: var(--ek-navy) !important; }
.ek-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.ek-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; color: var(--ek-gold); margin-bottom: 12px !important; }
.ek-h2 { font-family: var(--ek-serif); font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); letter-spacing: -.01em; max-width: 22ch; margin-bottom: 14px !important; }
.ek-sub { color: var(--ek-ink-2); font-size: 1.08rem; max-width: 56ch; }

/* ---------- Cabecera ---------- */
.ek-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 234, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.ek-header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.ek-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ek-serif); font-weight: 700; font-size: 1.35rem; text-decoration: none; color: var(--ek-ink) !important; letter-spacing: -.01em; }
.ek-logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ek-navy); color: #fff; display: grid; place-items: center; font-size: 1.15rem; box-shadow: inset 0 -4px 0 var(--ek-gold); }
.ek-nav { display: flex; gap: 22px; margin-left: 12px; }
.ek-nav a { text-decoration: none; color: var(--ek-ink-2); font-weight: 600; font-size: .95rem; }
.ek-nav a:hover { color: var(--ek-ink); }
.ek-header-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.ek-header-cta .ek-link { color: var(--ek-ink) !important; font-weight: 600; }
@media (max-width: 860px) { .ek-nav { display: none; } }

/* ---------- Hero ---------- */
.ek-hero { padding: 48px 0 72px; overflow: hidden; }
.ek-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) { .ek-hero-grid { grid-template-columns: 1.1fr .9fr; } .ek-hero { padding-top: 72px; } }
.ek-hero h1 { font-family: var(--ek-serif); font-size: clamp(2.3rem, 1.4rem + 4vw, 4rem); letter-spacing: -.02em; line-height: 1.04; margin-bottom: 20px; }
.ek-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--ek-ink-2); max-width: 36em; }
.ek-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.ek-hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ek-ink-2); font-size: .92rem; font-weight: 600; }
.ek-hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.ek-hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ek-gold); }

.ek-hero-visual { position: relative; display: grid; place-items: center; padding: 10px 0 20px; }
.ek-hero-visual::before { content: ""; position: absolute; width: 440px; height: 440px; max-width: 100%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff7e6 0, #f1dfb8 45%, rgba(241, 223, 184, 0) 70%); z-index: 0; }

/* ---------- Teléfono con iframe ---------- */
.ek-phone { --w: 250px; --s: .5897; position: relative; z-index: 1; width: var(--w); padding: 10px; border-radius: 40px; background: #121418; box-shadow: 0 30px 60px rgba(24, 32, 43, .28), inset 0 0 0 2px #2a2e35; }
.ek-phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; border-radius: 999px; background: #121418; z-index: 2; }
.ek-phone-lg { --w: 300px; --s: .7179; }
.ek-phone-screen { position: relative; width: 100%; aspect-ratio: 9 / 19.2; border-radius: 30px; overflow: hidden; background: #fff; }
.ek-phone-screen iframe { position: absolute; top: 0; left: 0; width: 390px; height: calc(100% / var(--s)); border: 0; transform: scale(var(--s)); transform-origin: 0 0; }
@media (max-width: 420px) { .ek-phone-lg { --w: 260px; --s: .6154; } }

/* Mockup estático cuando aún no hay ejemplos */
.ek-mock { background: #f4f2ee; padding: 0 0 12px; display: grid; gap: 10px; align-content: start; }
.ek-mock-hero { background: var(--ek-navy); height: 150px; display: grid; justify-items: center; align-content: center; gap: 8px; }
.ek-mock-hero i { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.ek-mock-hero b { width: 60%; height: 12px; border-radius: 4px; background: rgba(255,255,255,.85); }
.ek-mock-hero span { width: 40%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.5); }
.ek-mock-card { margin: 0 12px; background: #fff; border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.ek-mock-card b { width: 45%; height: 10px; border-radius: 3px; background: var(--ek-gold); }
.ek-mock-card span { height: 8px; border-radius: 3px; background: #e7e3da; }
.ek-mock-btns { margin: 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ek-mock-btns i { height: 34px; border-radius: 10px; background: #fff; }

/* Etiquetas flotantes */
.ek-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: 0 12px 30px rgba(24, 32, 43, .14); font-size: .82rem; line-height: 1.2; }
.ek-float .bk-icon { width: 36px; height: 36px; padding: 7px; border-radius: 10px; flex: none; }
.ek-float span { display: grid; }
.ek-float small { color: var(--ek-muted); }
.ek-float-pdf { top: 14%; left: 0; }
.ek-float-pdf .bk-icon { background: #fdecea; color: #c2410c; }
.ek-float-wa { top: 46%; right: 0; }
.ek-float-wa .bk-icon { background: #e7f6ee; color: var(--ek-wa); }
.ek-float-qr { bottom: 12%; left: 4%; }
.ek-float-qr .bk-icon { background: #e8eef6; color: var(--ek-navy); }
@media (max-width: 560px) { .ek-float { display: none; } }

/* ---------- Secciones ---------- */
.ek-section { padding: 80px 0; }
.ek-outputs { background: var(--ek-white); border-top: 1px solid var(--ek-line); border-bottom: 1px solid var(--ek-line); }
.ek-outputs .ek-h2 { max-width: none; text-align: center; margin: 0 auto 40px !important; }
.ek-grid-3 { display: grid; gap: 20px; }
@media (min-width: 800px) { .ek-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.ek-card { background: var(--ek-paper); border-radius: var(--ek-radius); padding: 28px; border: 1px solid var(--ek-line); }
.ek-card h3 { font-size: 1.2rem; margin: 16px 0 8px; }
.ek-card p { color: var(--ek-ink-2); margin: 0; }
.ek-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.ek-icon-wa { background: #e2f4ea; color: var(--ek-wa); }
.ek-icon-pdf { background: #fbe7df; color: #c2410c; }
.ek-icon-qr { background: #e3eaf4; color: var(--ek-navy); }

/* Pasos */
.ek-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 800px) { .ek-steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.ek-steps li { position: relative; padding-top: 20px; border-top: 2px solid var(--ek-ink); }
.ek-step-n { font-family: var(--ek-serif); font-size: 3.2rem; line-height: 1; color: var(--ek-gold); display: block; margin-bottom: 12px; }
.ek-steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.ek-steps p { color: var(--ek-ink-2); margin: 0; }

/* Plantillas */
.ek-templates { margin-top: 36px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ek-tpl { background: var(--ek-white); border: 1px solid var(--ek-line); border-radius: var(--ek-radius); padding: 14px 14px 18px; }
.ek-tpl h3 { font-size: 1.05rem; margin: 14px 4px 4px; }
.ek-tpl p { color: var(--ek-ink-2); font-size: .9rem; margin: 0 4px 10px; }
.ek-tpl .ek-link { margin-left: 4px; font-size: .9rem; }
.ek-tpl-art { --p: #1f3a5f; --s: #c8902e; height: 200px; border-radius: 12px; overflow: hidden; background: #f3f1ec; display: grid; grid-template-rows: 88px 1fr; }
.ek-tpl-head { background: var(--p); display: grid; justify-items: center; align-content: center; gap: 6px; }
.ek-tpl-head i { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.ek-tpl-head b { width: 64%; height: 9px; border-radius: 3px; background: rgba(255,255,255,.9); }
.ek-tpl-head span { width: 38%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); }
.ek-tpl-body { margin: 10px; padding: 10px; border-radius: 8px; background: #fff; display: grid; gap: 7px; align-content: start; }
.ek-tpl-body b { width: 46%; height: 7px; border-radius: 3px; background: var(--s); }
.ek-tpl-body span { height: 6px; border-radius: 3px; background: #e6e2d9; }
.ek-tpl-body em { height: 20px; border-radius: 6px; background: var(--p); margin-top: 4px; }

.ek-tpl-clasica .ek-tpl-head { border-bottom: 4px solid var(--s); }
.ek-tpl-moderna { background: #eceff4; }
.ek-tpl-moderna .ek-tpl-head { background: linear-gradient(135deg, var(--p) 30%, var(--s) 140%); justify-items: start; padding-left: 16px; border-radius: 0 0 18px 18px; }
.ek-tpl-moderna .ek-tpl-head i { border-radius: 7px; }
.ek-tpl-moderna .ek-tpl-body { margin-top: -10px; border-radius: 12px; box-shadow: 0 6px 14px rgba(0,0,0,.07); }
.ek-tpl-minimal { background: #fff; border: 1px solid #ececec; }
.ek-tpl-minimal .ek-tpl-head { background: #fff; border-top: 6px solid var(--p); }
.ek-tpl-minimal .ek-tpl-head i { border: 1px solid #e3e3e3; }
.ek-tpl-minimal .ek-tpl-head b { background: #2a2a2a; height: 7px; }
.ek-tpl-minimal .ek-tpl-head span { background: #c9c9c9; }
.ek-tpl-minimal .ek-tpl-body { border-top: 1px solid #eee; border-radius: 0; }
.ek-tpl-minimal .ek-tpl-body em { background: #fff; border: 1px solid #e3e3e3; }
.ek-tpl-tradicional { background: #f3ecdd; }
.ek-tpl-tradicional .ek-tpl-head { background: #fffaf0; border-top: 3px double var(--p); border-bottom: 3px double var(--p); }
.ek-tpl-tradicional .ek-tpl-head i { border: 1px solid #e3d6bd; }
.ek-tpl-tradicional .ek-tpl-head b { background: #3a2f22; height: 7px; }
.ek-tpl-tradicional .ek-tpl-head span { background: #c9b99a; }
.ek-tpl-tradicional .ek-tpl-body { background: #fffaf0; border: 1px solid #e3d6bd; justify-items: center; }
.ek-tpl-tradicional .ek-tpl-body span { width: 90%; background: #ebe1cc; }
.ek-tpl-tradicional .ek-tpl-body em { width: 100%; }
.ek-tpl-vibrante { --p: #3b2a73; --s: #ff6b4a; background: #121217; }
.ek-tpl-vibrante .ek-tpl-head { background: linear-gradient(105deg, var(--p) 0 68%, var(--s) 68%); justify-items: start; padding-left: 14px; }
.ek-tpl-vibrante .ek-tpl-head b { width: 58%; height: 13px; }
.ek-tpl-vibrante .ek-tpl-head i { border-radius: 6px; }
.ek-tpl-vibrante .ek-tpl-body { background: #1d1d25; }
.ek-tpl-vibrante .ek-tpl-body span { background: #30303b; }
.ek-tpl-vibrante .ek-tpl-body em { background: var(--s); }

/* Ejemplos */
.ek-examples-section { background: var(--ek-navy); color: #fff; }
.ek-examples-section .ek-h2, .ek-examples-section h2 { color: #fff; }
.ek-examples-section .ek-sub { color: rgba(255,255,255,.75); }
.ek-examples { margin-top: 44px; display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); justify-items: center; }
.ek-example { margin: 0; display: grid; justify-items: center; gap: 18px; text-align: center; }
.ek-example .ek-phone { --w: 260px; --s: .6154; box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 2px #2a2e35; }
.ek-example figcaption { display: grid; gap: 2px; }
.ek-example figcaption strong { font-size: 1.05rem; }
.ek-example figcaption span { color: rgba(255,255,255,.7); font-size: .9rem; }
.ek-example .ek-link { color: #f2c46d !important; margin-top: 6px; font-size: .92rem; }

/* Preguntas */
.ek-faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .ek-faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.ek-faq details { border-bottom: 1px solid var(--ek-line); padding: 18px 0; }
.ek-faq details:first-child { border-top: 1px solid var(--ek-line); }
.ek-faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ek-faq summary::-webkit-details-marker { display: none; }
.ek-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ek-gold); transition: transform .2s; }
.ek-faq details[open] summary::after { transform: rotate(45deg); }
.ek-faq p { color: var(--ek-ink-2); margin: 10px 0 0; max-width: 60ch; }

/* Cierre */
.ek-final { padding: 0 0 80px; }
.ek-final-inner { background: var(--ek-ink); border-radius: 28px; padding: 56px 32px; display: grid; justify-items: center; gap: 24px; text-align: center; position: relative; overflow: hidden; }
.ek-final-inner::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(200, 144, 46, .12); right: -160px; top: -180px; }
.ek-final h2 { color: #fff; font-family: var(--ek-serif); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); max-width: 22ch; position: relative; }

/* Pie */
.ek-footer { border-top: 1px solid var(--ek-line); padding: 36px 0 44px; }
.ek-footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.ek-footer p { margin: 0; color: var(--ek-ink-2); }
.ek-footer-small { margin-left: auto !important; font-size: .85rem; color: var(--ek-muted) !important; }

/* Dentro de una página del tema (shortcode) */
.ek-embed { background: var(--ek-paper); border-radius: 24px; overflow: hidden; }
.ek-embed .ek-hero { padding-top: 40px; }

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

/* ---------- Panel ---------- */
.ek-panel-section { background: var(--ek-white); border-top: 1px solid var(--ek-line); border-bottom: 1px solid var(--ek-line); }
.ek-panel-grid { margin-top: 40px; display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .ek-panel-grid { grid-template-columns: 340px 1fr; gap: 48px; } }
.ek-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.ek-features li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.ek-features strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.ek-features p { margin: 0; color: var(--ek-ink-2); font-size: .94rem; }
.ek-feat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ek-paper); color: var(--ek-navy); display: grid; place-items: center; border: 1px solid var(--ek-line); }

.ek-shots { min-width: 0; }
.ek-shot-input { position: absolute; opacity: 0; pointer-events: none; }
.ek-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ek-tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ek-line); background: var(--ek-paper); font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--ek-ink-2); user-select: none; }
.ek-tab:hover { color: var(--ek-ink); }
#ek-shot-editor:checked ~ .ek-tabs .ek-tab-editor,
#ek-shot-boletines:checked ~ .ek-tabs .ek-tab-boletines,
#ek-shot-iglesia:checked ~ .ek-tabs .ek-tab-iglesia,
#ek-shot-imprimir:checked ~ .ek-tabs .ek-tab-imprimir { background: var(--ek-ink); color: #fff; border-color: var(--ek-ink); }
#ek-shot-editor:focus-visible ~ .ek-tabs .ek-tab-editor,
#ek-shot-boletines:focus-visible ~ .ek-tabs .ek-tab-boletines,
#ek-shot-iglesia:focus-visible ~ .ek-tabs .ek-tab-iglesia,
#ek-shot-imprimir:focus-visible ~ .ek-tabs .ek-tab-imprimir { outline: 2px solid var(--ek-gold); outline-offset: 2px; }

.ek-browser { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #d9d3c4; box-shadow: 0 30px 60px rgba(24, 32, 43, .16); }
.ek-browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #ece7dc; border-bottom: 1px solid #d9d3c4; }
.ek-browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d1c9b8; flex: none; }
.ek-browser-bar i:nth-child(1) { background: #ee6a5f; } .ek-browser-bar i:nth-child(2) { background: #f5be4f; } .ek-browser-bar i:nth-child(3) { background: #62c655; }
.ek-url { display: none; margin-left: 10px; flex: 1; min-width: 0; background: #fff; border-radius: 7px; padding: 4px 12px; font-size: .78rem; color: var(--ek-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ek-browser .ek-shot { display: none; width: 100%; height: auto; }
#ek-shot-editor:checked ~ .ek-browser .ek-shot-editor, #ek-shot-editor:checked ~ .ek-browser .ek-url-editor,
#ek-shot-boletines:checked ~ .ek-browser .ek-shot-boletines, #ek-shot-boletines:checked ~ .ek-browser .ek-url-boletines,
#ek-shot-iglesia:checked ~ .ek-browser .ek-shot-iglesia, #ek-shot-iglesia:checked ~ .ek-browser .ek-url-iglesia,
#ek-shot-imprimir:checked ~ .ek-browser .ek-shot-imprimir, #ek-shot-imprimir:checked ~ .ek-browser .ek-url-imprimir { display: block; }

.ek-demo { margin-top: 44px; display: grid; gap: 20px 32px; align-items: center; padding: 26px 28px; border-radius: 20px; background: var(--ek-ink); color: #fff; }
@media (min-width: 900px) { .ek-demo { grid-template-columns: 1fr auto auto; } }
.ek-demo h3 { color: #fff; font-family: var(--ek-serif); font-size: 1.45rem; margin-bottom: 6px; }
.ek-demo p { margin: 0; color: rgba(255,255,255,.75); max-width: 52ch; }
.ek-demo-creds { margin: 0; display: flex; gap: 12px; }
.ek-demo-creds div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 14px; }
.ek-demo-creds dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); }
.ek-demo-creds dd { margin: 2px 0 0; }
.ek-demo-creds code { font-size: 1.05rem; color: #f2c46d; font-family: ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 860px) { .ek-hide-sm { display: none; } }
