/* GesSync — web del producto. Tokens de marca de ehero-design-system (ehero-ds.css). */
:root {
	--ehero-subs-primary: #017cba;
	--ehero-subs-primary-dark: #01699e;
	--ehero-subs-primary-light: #e7f5ff;
	--ehero-subs-secondary: #00b2e2;
	--ehero-subs-border: #dcdcde;
	--ehero-subs-success: #28a745;
	--ehero-subs-warning: #f0ad4e;
	--ehero-subs-text: #2c3338;
	--ehero-subs-text-secondary: #646970;
	--ehero-subs-bg: #f0f2f5;
	--ehero-subs-radius: 6px;
	--ehero-subs-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	--ehero-subs-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
	--gs-ink: #0f2a3d;
	--gs-max: 1140px;
	--gs-radius-lg: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--ehero-subs-text);
	background: #fff;
	line-height: 1.6;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ehero-subs-primary); }
a:hover { color: var(--ehero-subs-primary-dark); }
h1, h2, h3 { color: var(--gs-ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--gs-max); margin: 0 auto; padding: 0 20px; }
.grad { background: linear-gradient(90deg, var(--ehero-subs-primary), var(--ehero-subs-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ehero-subs-text-secondary); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ehero-subs-text-secondary); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Aviso de vista previa */
.preview-bar { background: #fff8e5; color: #6b4e00; font-size: .85rem; text-align: center; padding: 6px 12px; border-bottom: 1px solid #f3dfa6; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ehero-subs-border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gs-ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ehero-subs-text); font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--ehero-subs-primary); }
.nav .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--ehero-subs-border); border-radius: var(--ehero-subs-radius); padding: 8px 10px; font-size: 1rem; cursor: pointer; }

/* Botones */
.btn {
	display: inline-block; text-decoration: none; font-weight: 600; border-radius: 8px; padding: 13px 24px;
	background: var(--ehero-subs-primary); color: #fff; border: 2px solid var(--ehero-subs-primary);
	transition: var(--ehero-subs-transition, all .2s ease); text-align: center;
}
.btn:hover { background: var(--ehero-subs-primary-dark); border-color: var(--ehero-subs-primary-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ehero-subs-primary); }
.btn-ghost:hover { background: var(--ehero-subs-primary-light); color: var(--ehero-subs-primary-dark); }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* Portada */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #d9f3fc 0%, rgba(217, 243, 252, 0) 60%), linear-gradient(180deg, #f5fbff 0%, #fff 100%); padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ehero-subs-primary); background: var(--ehero-subs-primary-light); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero p.lead { margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: var(--ehero-subs-text-secondary); }
.hero-points li::before { content: "✓"; color: var(--ehero-subs-success); font-weight: 800; margin-right: 6px; }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--gs-radius-lg); box-shadow: 0 24px 60px rgba(1, 60, 100, .18); }
.hero-art .badge { position: absolute; left: -18px; bottom: -18px; width: 96px; height: 96px; background: #fff; border-radius: 22px; padding: 10px; box-shadow: var(--ehero-subs-shadow-hover); }

/* Secciones */
section { padding: 76px 0; }
section.alt { background: var(--ehero-subs-bg); }
.section-head { margin-bottom: 40px; }

/* Cómo funciona */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 0; flex-wrap: wrap; margin: 10px 0 40px; }
.flow .node { background: #fff; border: 1px solid var(--ehero-subs-border); border-radius: var(--gs-radius-lg); padding: 18px 22px; min-width: 200px; text-align: center; box-shadow: var(--ehero-subs-shadow); }
.flow .node strong { display: block; color: var(--gs-ink); font-size: 1.05rem; }
.flow .node span { font-size: .88rem; color: var(--ehero-subs-text-secondary); }
.flow .node.main { border-color: var(--ehero-subs-primary); background: var(--ehero-subs-primary-light); }
.flow .arrow { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 14px; color: var(--ehero-subs-primary); font-size: .78rem; font-weight: 600; text-align: center; min-width: 120px; }
.flow .arrow b { font-size: 1.5rem; line-height: 1; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--ehero-subs-border); border-radius: var(--gs-radius-lg); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--ehero-subs-primary), var(--ehero-subs-secondary)); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step p { margin: 0; font-size: .96rem; color: var(--ehero-subs-text-secondary); }

/* Funciones con captura */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 34px 0; }
.feature + .feature { border-top: 1px solid #eef0f2; }
.feature.rev .feature-text { order: 2; }
.feature img { border-radius: var(--gs-radius-lg); box-shadow: 0 12px 36px rgba(1, 60, 100, .12); }
.feature ul, .check { list-style: none; padding: 0; margin: 0; }
.feature li, .check li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.feature li::before, .check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--ehero-subs-primary-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23017cba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.tag-pro { display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: var(--ehero-subs-primary); border-radius: 4px; padding: 2px 7px; vertical-align: middle; margin-left: 6px; letter-spacing: .03em; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--ehero-subs-border); border-radius: var(--gs-radius-lg); padding: 24px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ehero-subs-primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--ehero-subs-primary); }
.card .ico svg { width: 24px; height: 24px; }
.card p { margin: 0; font-size: .96rem; color: var(--ehero-subs-text-secondary); }

/* Plataformas y planes */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.platform { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--ehero-subs-border); border-radius: var(--gs-radius-lg); padding: 22px; }
.platform img { width: 88px; height: 88px; flex: none; }
.platform p { margin: 0; font-size: .95rem; color: var(--ehero-subs-text-secondary); }
.status { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-left: 6px; vertical-align: middle; }
.status.ok { background: #e6f6ea; color: #1e7b34; }
.status.soon { background: #fff4e0; color: #8a5a00; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--ehero-subs-border); border-radius: var(--gs-radius-lg); padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--ehero-subs-primary); box-shadow: 0 18px 44px rgba(1, 124, 186, .16); position: relative; }
.plan.featured::before { content: "El más completo"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--ehero-subs-primary); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan .for { color: var(--ehero-subs-text-secondary); margin-bottom: 18px; }
.price { font-size: 2.6rem; font-weight: 800; color: var(--gs-ink); line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--ehero-subs-text-secondary); }
.vat { font-size: .85rem; color: var(--ehero-subs-text-secondary); margin: 6px 0 22px; }
.plan .check { margin-bottom: 26px; flex: 1; }
.plan .btn { width: 100%; }
.plans-note { text-align: center; font-size: .92rem; color: var(--ehero-subs-text-secondary); margin-top: 26px; }
.plan-buy { display: flex; flex-direction: column; gap: 10px; }
.trial { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; max-width: 860px; margin: 32px auto 0; padding: 22px 26px; background: var(--ehero-subs-primary-light); border: 1px solid #bfe3f7; border-radius: var(--gs-radius-lg); }
.trial > div { flex: 1 1 380px; color: var(--gs-ink); }
.hero-note { margin: 18px 0 0; font-size: .95rem; color: var(--ehero-subs-text-secondary); }
.hero-note a { color: var(--ehero-subs-primary); font-weight: 600; }
.not-found { text-align: center; padding: 96px 0 110px; }
.not-found .btn-row { justify-content: center; }

/* Bloque WP2Ges */
.wp2ges-cta { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; background: linear-gradient(135deg, #0c4f78 0%, var(--ehero-subs-primary) 55%, var(--ehero-subs-secondary) 100%); color: #fff; border-radius: 20px; padding: 44px; }
.wp2ges-cta h2, .wp2ges-cta h3 { color: #fff; }
.wp2ges-cta p { color: rgba(255, 255, 255, .9); }
.wp2ges-cta .btn { background: #fff; color: var(--ehero-subs-primary); border-color: #fff; }
.wp2ges-cta .btn:hover { background: var(--ehero-subs-primary-light); }
.wp2ges-cta ul { margin: 0; padding-left: 20px; color: rgba(255, 255, 255, .92); }

/* Tabla */
.table-wrap { overflow-x: auto; border: 1px solid var(--ehero-subs-border); border-radius: var(--gs-radius-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 620px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #eef0f2; vertical-align: top; }
thead th { background: var(--ehero-subs-primary); color: #fff; font-weight: 600; }
thead th:last-child { background: var(--ehero-subs-primary-dark); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--gs-ink); }
td:last-child { background: #f5fbff; }

/* Requisitos */
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.req div { background: #fff; border: 1px solid var(--ehero-subs-border); border-radius: var(--ehero-subs-radius); padding: 16px 18px; }
.req dt { font-weight: 700; color: var(--gs-ink); font-size: .9rem; }
.req dd { margin: 4px 0 0; font-size: .95rem; color: var(--ehero-subs-text-secondary); }

/* Preguntas */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--ehero-subs-border); border-radius: var(--ehero-subs-radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--gs-ink); list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--ehero-subs-primary); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ehero-subs-text-secondary); }

/* Pasos de migración */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: t; max-width: 860px; }
.timeline li { position: relative; padding: 0 0 26px 62px; }
.timeline li::before { counter-increment: t; content: counter(t); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ehero-subs-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.timeline li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: #d6e9f5; }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: 4px; padding-top: 6px; }
.timeline p { margin: 0; color: var(--ehero-subs-text-secondary); }

.note { background: var(--ehero-subs-primary-light); border-left: 4px solid var(--ehero-subs-primary); border-radius: var(--ehero-subs-radius); padding: 16px 20px; font-size: .95rem; }
.note.warn { background: #fff8e5; border-left-color: var(--ehero-subs-warning); }

/* Cierre */
.final { text-align: center; background: linear-gradient(180deg, #fff 0%, #eef8fd 100%); }

/* Pie */
.site-footer { background: #0c2333; color: #b9c6cf; font-size: .92rem; padding: 48px 0 28px; }
.site-footer a { color: #e4eef4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand img { width: 36px; height: 36px; background: #fff; border-radius: 8px; padding: 3px; }
.legal { border-top: 1px solid #22394a; padding-top: 20px; font-size: .82rem; color: #8ea1ad; }
.legal p { margin: 0 0 6px; }

/* Página interior */
.page-hero { background: linear-gradient(180deg, #f5fbff 0%, #fff 100%); padding: 64px 0 36px; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: var(--ehero-subs-text-secondary); }
.crumbs a { text-decoration: none; }

@media (max-width: 960px) {
	.hero .wrap, .feature, .wp2ges-cta { grid-template-columns: 1fr; }
	.feature.rev .feature-text { order: 0; }
	.steps, .cards.four { grid-template-columns: 1fr 1fr; }
	.cards, .req { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.hero-art .badge { left: 10px; bottom: -14px; width: 76px; height: 76px; }
	.flow .arrow { min-width: 90px; }
}
/* Menú desplegable hasta 1000 px: con 7 enlaces no cabe en una línea */
@media (max-width: 1000px) {
	.nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--ehero-subs-border); gap: 4px; }
	.nav.open { display: flex; }
	.nav a { padding: 10px 0; }
	.menu-toggle { display: block; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	section { padding: 56px 0; }
	.steps, .cards, .cards.four, .req, .plans, .platforms, .footer-grid { grid-template-columns: 1fr; }
	.platform { flex-direction: column; align-items: flex-start; }
	.flow { flex-direction: column; align-items: stretch; }
	.flow .arrow { padding: 8px 0; flex-direction: row; gap: 8px; }
	.flow .arrow b { transform: rotate(90deg); }
	.wp2ges-cta { padding: 30px 22px; }
	.hero { padding: 48px 0 40px; }
}
