/* pymes.valladares.org — sitios web y tiendas para pymes. Fondo blanco, estilo corporativo. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0f1b2d;
  --ink-2: #44526a;
  --muted: #6b778c;
  --line: #e4e9f2;
  --soft: #f5f7fb;
  --soft-2: #eef3ff;
  --brand: #1f4fd8;
  --brand-2: #163cad;
  --accent: #0ea5a4;
  --gold: #f59e0b;
  --wa: #1fa855;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 12px 32px -12px rgba(15, 27, 45, .18);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16.5px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid rgba(31, 79, 216, .45); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, transform .15s, box-shadow .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 79, 216, .7); }
.btn-primary:hover { background: var(--brand-2); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 168, 85, .7); }
.btn-wa:hover { background: #178a45; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 10px 16px; font-size: .92rem; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Encabezado */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand small { font-weight: 600; color: var(--muted); font-size: .88rem; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
@media (max-width: 920px) { .nav { display: none; } .header .btn { margin-left: auto; } }

/* Portada */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); background: radial-gradient(1000px 420px at 85% 0%, #eaf0ff 0%, rgba(234, 240, 255, 0) 70%), #fff; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; grid-template-columns: 1.05fr 1fr; align-items: center; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 span { color: var(--brand); }
.hero .lead { margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--soft-2) 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='%231f4fd8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero-visual { position: relative; min-height: 420px; }
.browser { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(15, 27, 45, .04), 0 30px 60px -20px rgba(15, 27, 45, .35); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f3f5f9; border-bottom: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d9e3; }
.browser-bar span { margin-left: 8px; background: #fff; border-radius: 6px; padding: 2px 10px; flex: 1; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-visual .b1 { position: relative; width: 92%; margin-left: auto; z-index: 1; }
.hero-visual .b2 { position: absolute; width: 58%; left: 0; bottom: -18px; z-index: 2; }
.hero-badge { position: absolute; z-index: 3; right: -6px; bottom: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .88rem; display: flex; gap: 10px; align-items: center; }
.hero-badge b { display: block; font-size: 1.05rem; }
.hero-badge .dot { width: 36px; height: 36px; border-radius: 10px; background: #e7f8ef; display: grid; place-items: center; font-size: 1.1rem; }
@media (max-width: 980px) { .hero-visual { min-height: 0; padding-bottom: 40px; } .hero-badge { right: 0; } }

/* Franja de confianza */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; padding: 22px 0; }
.trust span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.trust svg { width: 22px; height: 22px; color: var(--brand); }

/* Rubros */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--soft-2); color: var(--brand); margin-bottom: 16px; font-size: 1.35rem; }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.section-head { margin-bottom: 44px; }

/* Planes */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--brand); box-shadow: 0 24px 50px -24px rgba(31, 79, 216, .55); }
.plan-tag { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: .92rem; min-height: 2.9em; }
.price { margin: 18px 0 4px; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.price small { display: block; margin-top: 2px; font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.monthly { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 10px; background: var(--soft-2); color: var(--brand-2); font-weight: 700; font-size: .95rem; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
.plan .btn { margin-top: auto; }
.plan .demo-link { display: block; text-align: center; margin-top: 12px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.fineprint { margin-top: 26px; color: var(--muted); font-size: .9rem; text-align: center; }

/* Demos */
.demos { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.demo { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.demo .browser { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.demo-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.demo-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.demo-body p { color: var(--ink-2); font-size: .95rem; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.cred { margin: 30px auto 0; max-width: 760px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; padding: 16px 22px; background: var(--soft); border: 1px dashed #c9d3e6; border-radius: 14px; font-size: .95rem; color: var(--ink-2); }
.cred code { font: 700 .95rem ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; color: var(--ink); }

/* Bloques divididos */
.split { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center; }
.split--rev .split-media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev .split-media { order: 0; } }
.feature-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.feature-list .icon { width: 40px; height: 40px; margin: 0; font-size: 1.1rem; }
.feature-list b { display: block; }
.feature-list span { color: var(--ink-2); font-size: .95rem; }

/* Pasos */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Webpay */
.notice { display: grid; gap: 28px; grid-template-columns: auto 1fr; align-items: center; padding: 34px; border-radius: 22px; background: linear-gradient(135deg, #f7f9ff, #eef3ff); border: 1px solid #dbe4fb; }
.notice .icon { width: 64px; height: 64px; font-size: 1.8rem; margin: 0; background: #fff; }
@media (max-width: 700px) { .notice { grid-template-columns: 1fr; padding: 26px; } }
.notice ol { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); }
.notice ol li { margin-bottom: 6px; }

/* Preguntas frecuentes */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .15s, box-shadow .15s; }
.faq details[open] { border-color: #c6d3f5; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 20px; color: var(--ink-2); }
.faq .a p:last-child { margin: 0; }
.faq-group { max-width: 860px; margin: 40px auto 14px; font-size: 1.15rem; }

/* Llamado final */
.cta { padding: clamp(56px, 8vw, 88px) 0; background: linear-gradient(135deg, #1f4fd8, #163cad 60%, #102c86); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 1.08rem; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }

/* Página interna */
.pagehead { padding: clamp(48px, 7vw, 84px) 0 36px; background: var(--soft); border-bottom: 1px solid var(--line); }

/* Pie */
.footer { padding: 48px 0 32px; color: var(--ink-2); font-size: .93rem; border-top: 1px solid var(--line); }
.footer .wrap { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr; } }
.footer h4 { color: var(--ink); margin: 0 0 10px; font-size: .95rem; }
.footer a { color: var(--ink-2); text-decoration: none; display: block; margin-bottom: 6px; }
.footer a:hover { color: var(--brand); }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer .legal a { display: inline; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: underline; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 99px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 14px 34px -10px rgba(31, 168, 85, .75); transition: transform .15s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* Aviso de cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 18px 20px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 60px -10px rgba(15, 27, 45, .3); font-size: .9rem; }
.cookie-banner[hidden] { display: none; }
.cookie-text p { margin: 0; color: var(--ink-2); }
.cookie-title { font-weight: 700; color: var(--ink) !important; margin-bottom: 2px !important; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-btn { font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.cookie-btn[data-consent="granted"] { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .wa-float { transition: none; } }
@media (max-width: 480px) { .brand small { display: none; } }
/* Plazos y credibilidad */
.disclaimer { max-width: 980px; margin: 28px auto 0; padding: 16px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); color: var(--ink-2); font-size: .93rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0 26px; }
.stats div { padding: 16px 18px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.stats b { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; line-height: 1.1; }
.stats span { color: var(--ink-2); font-size: .92rem; }
.apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.app img { width: 64px; height: 64px; border-radius: 15px; }
.app b { font-size: .95rem; }
.app span { font-size: .8rem; color: var(--muted); }
.app--stores { justify-content: center; background: var(--soft-2); border-color: #d6e0fa; }
.app--stores b { color: var(--brand-2); }
