/* EASY SYSTEMS - estilos compartidos de las paginas de producto (easysales, easyrest, easymarket, easyhotel, easydoc /main.aspx).
   Cada pagina define su tema (--es-brand, --es-brand-dark, --es-brand-soft, --es-logo-w, --es-logo-w-sm) en un <style> propio. */
:root {
    --es-brand: #3264FA;
    --es-brand-dark: #1E46C8;
    --es-brand-soft: #EEF2FF;
    --es-ink: #0F172A;
    --es-text: #334155;
    --es-muted: #64748B;
    --es-line: #E2E8F0;
    --es-bg: #F7F9FD;
    --es-white: #FFFFFF;
    --es-gold: #FFC72C;
    --es-gold-dark: #E8AE00;
    --es-green: #1FA855;
    --es-green-dark: #178A45;
    --es-radius: 16px;
    --es-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
    --es-max: 1180px;
    --es-logo-w: 280px;
    --es-logo-w-sm: 200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    margin: 0;
    background: var(--es-bg);
    color: var(--es-text);
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.es-container { width: 100%; max-width: var(--es-max); margin: 0 auto; padding: 0 20px; }

/* ---------- Botones ---------- */
.es-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 24px;
    border: 2px solid transparent; border-radius: 12px;
    font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: .2px;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.es-btn:hover { transform: translateY(-1px); }
.es-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--es-brand) 45%, transparent); outline-offset: 2px; }
.es-btn--gold { background: var(--es-gold); color: var(--es-ink); box-shadow: 0 6px 16px rgba(232, 174, 0, .3); }
.es-btn--gold:hover { background: var(--es-gold-dark); }
.es-btn--primary { background: var(--es-brand); color: #fff; }
.es-btn--primary:hover { background: var(--es-brand-dark); }
.es-btn--ghost { background: transparent; color: var(--es-ink); border-color: var(--es-ink); }
.es-btn--ghost:hover { background: var(--es-ink); color: #fff; }
.es-btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.es-btn--light:hover { background: #fff; color: var(--es-ink); }
.es-btn--green { background: var(--es-green); color: #fff; }
.es-btn--green:hover { background: var(--es-green-dark); }
.es-btn--block { width: 100%; }
.es-link {
    background: none; border: 0; padding: 0; cursor: pointer;
    font-family: inherit; font-size: 15px; font-weight: 700; color: var(--es-brand);
    text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- Navegacion ---------- */
.es-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--es-line);
}
.es-nav__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.es-brand { display: flex; align-items: center; flex-shrink: 0; }
.es-brand img { width: var(--es-logo-w); max-width: calc(100vw - 150px); height: auto; display: block; }
.es-nav__links { display: flex; gap: 4px; margin-left: auto; }
.es-nav__links a {
    padding: 8px 12px; border-radius: 8px;
    color: var(--es-text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.es-nav__links a:hover { background: var(--es-brand-soft); color: var(--es-brand); }

.es-lang { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--es-line); border-radius: 999px; background: #fff; }
.es-lang__opt { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 999px; }
.es-lang input[type=image] { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; }
.es-lang__btn {
    background: none; border: 0; padding: 4px 0; cursor: pointer;
    font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .4px;
    color: var(--es-muted) !important;
}
/* El code-behind marca el idioma activo con ForeColor = (228,204,44) */
.es-lang__btn[style*="E4CC2C"] { color: var(--es-ink) !important; }
.es-lang__opt:has(.es-lang__btn[style*="E4CC2C"]) { background: var(--es-brand-soft); }

/* ---------- Hero ---------- */
.es-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--es-brand) 16%, transparent), transparent 70%),
        radial-gradient(600px 300px at -10% 110%, rgba(255, 199, 44, .18), transparent 70%),
        var(--es-white);
    border-bottom: 1px solid var(--es-line);
}
.es-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 72px 20px 80px; }
.es-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--es-brand-soft); color: var(--es-brand);
    font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
}
.es-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--es-brand); }
.es-hero h1 {
    margin: 18px 0 16px;
    color: var(--es-ink); font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -1px;
}
.es-hero h1 em { font-style: normal; color: var(--es-brand); }
.es-hero__lead { margin: 0 0 32px; max-width: 580px; font-size: 18px; color: var(--es-text); }
.es-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.es-hero__more { margin-top: 20px; }

.es-checks {
    background: var(--es-white); border: 1px solid var(--es-line); border-radius: 20px;
    box-shadow: var(--es-shadow); padding: 28px;
}
.es-checks h3 { margin: 0 0 16px; color: var(--es-ink); font-size: 15px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.es-checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.es-checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--es-ink); }
.es-checks li::before {
    content: "\2713"; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: #E7F7EE; color: var(--es-green); font-size: 13px; font-weight: 800;
}

/* ---------- Franja de beneficios ---------- */
.es-trust { background: var(--es-ink); color: #fff; }
.es-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 20px; }
.es-trust__item { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.es-trust__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--es-gold);
}

/* ---------- Secciones ---------- */
.es-section { padding: 88px 0; }
.es-section--white { background: var(--es-white); border-top: 1px solid var(--es-line); border-bottom: 1px solid var(--es-line); }
.es-section__head { max-width: 760px; margin-bottom: 40px; }
.es-kicker { display: block; margin-bottom: 8px; color: var(--es-brand); font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.es-h2 { display: block; margin: 0; color: var(--es-ink); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: -.5px; }
.es-h3 { display: block; margin: 0 0 8px; color: var(--es-ink); font-size: 20px; line-height: 1.3; font-weight: 800; }
.es-prose { display: block; white-space: pre-line; overflow-wrap: anywhere; font-size: 17px; color: var(--es-text); }
.es-fe > div, .es-policy > div, .es-how > *, .es-pricing > * { min-width: 0; }
.es-prose--sm { font-size: 15px; }

.es-card { background: var(--es-white); border: 1px solid var(--es-line); border-radius: var(--es-radius); box-shadow: var(--es-shadow); padding: 28px; }

/* Como funciona */
.es-how { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.es-how__media { margin: -8px -8px 20px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--es-line); text-align: center; }
.es-how__media img { display: block; margin: 0 auto; max-height: 340px; width: auto; }
.es-tag { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.es-tag--blue { background: var(--es-brand-soft); color: var(--es-brand); }
.es-tag--gold { background: #FFF6DA; color: #8A6400; }

/* Funcionalidades */
.es-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.es-feature { padding: 24px; }
.es-feature h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--es-ink); font-size: 17px; font-weight: 800; }
.es-feature h3 span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px;
    background: var(--es-brand-soft); color: var(--es-brand); font-size: 13px;
}
.es-feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.es-feature li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; }
.es-feature li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--es-brand); }
.es-feature--wide { grid-column: 1 / -1; }
.es-feature--wide ul { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
.es-features-src.is-enhanced { display: none; }

/* Facturacion electronica */
.es-fe {
    display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
    margin-top: 32px; padding: 32px; border-radius: 20px;
    background: linear-gradient(135deg, var(--es-brand) 0%, var(--es-brand-dark) 100%); color: #fff;
}
.es-fe__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, .15); }
.es-fe .es-h3 { color: #fff; font-size: 22px; }
.es-fe .es-prose { color: rgba(255, 255, 255, .92); }

/* Precios */
.es-pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.es-field { margin-bottom: 22px; }
.es-label { display: block; margin-bottom: 8px; color: var(--es-ink); font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.es-select, .es-input {
    width: 100%; height: 48px; padding: 0 14px;
    border: 1px solid #CBD5E1; border-radius: 10px; background: #fff;
    color: var(--es-ink); font-family: inherit; font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}
.es-select:focus, .es-input:focus { outline: none; border-color: var(--es-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--es-brand) 15%, transparent); }
.es-select:disabled { background: #F1F5F9; color: var(--es-muted); }
textarea.es-input { height: 96px; padding: 12px 14px; resize: vertical; }
.es-check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 700; color: var(--es-ink); font-size: 14px; }
.es-check input { width: 20px; height: 20px; accent-color: var(--es-brand); margin: 0; }
.es-check label { cursor: pointer; }

.es-summary { background: var(--es-ink); color: #fff; border-color: var(--es-ink); }
.es-summary .es-h3 { color: #fff; margin: 0; }
.es-summary__tax { display: block; margin-bottom: 20px; color: #94A3B8; font-size: 13px; }
.es-sum__row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-top: 12px; }
.es-sum__k { font-weight: 600; color: #E2E8F0; }
.es-sum__v { font-weight: 800; white-space: nowrap; }
.es-sum__note { display: block; padding-bottom: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .15); color: #94A3B8; font-size: 13px; }
.es-sum__total { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-top: 16px; }
.es-sum__total .es-sum__k { color: #fff; font-weight: 800; }
.es-sum__total .es-sum__v { color: var(--es-gold); font-size: 26px; }
.es-summary__cta { margin-top: 24px; }

/* Politica de datos */
.es-policy { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.es-policy__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--es-brand-soft); color: var(--es-brand); }

/* CTA final */
.es-cta { padding: 72px 0; background: radial-gradient(700px 300px at 50% 0%, color-mix(in srgb, var(--es-brand) 35%, transparent), transparent 70%), var(--es-ink); color: #fff; text-align: center; }
.es-cta h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.5px; }
.es-cta p { margin: 0 auto 28px; max-width: 560px; color: #CBD5E1; font-size: 17px; }
.es-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Footer */
.es-footer { background: #000; color: #CBD5E1; padding: 36px 0; font-size: 14px; }
.es-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.es-footer strong { display: block; color: #fff; font-size: 18px; letter-spacing: .5px; }
.es-footer p { margin: 4px 0 0; }
.es-footer img { display: block; max-height: 64px; width: auto; }

/* WhatsApp flotante */
.es-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--es-green); color: #fff; box-shadow: 0 10px 24px rgba(23, 138, 69, .4);
    transition: transform .15s;
}
.es-fab:hover { transform: scale(1.06); }

/* ---------- Modal de contacto / suscripcion ---------- */
.es-modal-bg { background: rgba(15, 23, 42, .6); }
.es-modal {
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100vh - 24px); overflow-y: auto;
    background: #fff; border-radius: 18px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .35);
}
.es-modal__bar { display: flex; justify-content: flex-end; padding: 10px 10px 0; cursor: move; }
.es-modal__close {
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: #F1F5F9; color: var(--es-ink); font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.es-modal__close:hover { background: #E2E8F0; }
.es-form { width: 100%; border-collapse: collapse; }
.es-form > tbody > tr > td { padding: 0 28px; text-align: left; }
.es-form__title { display: block; padding: 0 0 12px; color: var(--es-ink); font-size: 24px; font-weight: 800; }
.es-form .es-label { margin: 14px 0 6px; }
.es-phone { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.es-phone__lbls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.es-phone__num { display: flex; align-items: center; gap: 6px; }
.es-phone__num .es-pref { flex-shrink: 0; color: var(--es-muted); font-weight: 700; font-size: 14px; }
.es-authorize { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 14px; font-size: 13px; line-height: 1.4; color: var(--es-text); }
.es-authorize input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--es-brand); }
.es-submit { width: 100%; height: 52px; border: 0; border-radius: 12px; font-family: inherit; font-size: 17px; font-weight: 800; letter-spacing: .3px; cursor: pointer; }
.es-msg { width: 100%; min-height: 44px; margin: 8px 0 20px; padding: 0; border: 0; background: transparent; resize: none; overflow: hidden; color: #B91C1C; font-family: inherit; font-size: 14px; font-weight: 700; }
.es-plan { margin: 0 0 8px; padding: 20px; border-radius: 14px; background: var(--es-brand-soft); }
.es-plan table { width: 100%; border-collapse: collapse; }
.es-plan td { padding: 2px 0; }
.es-ro { width: 100%; padding: 0; border: 0; background: transparent; resize: none; overflow: hidden; color: var(--es-ink); font-family: inherit; font-size: 15px; }
.es-ro--title { font-size: 20px; font-weight: 800; height: 52px; }
.es-ro--muted { font-size: 12px; color: var(--es-muted); }
.es-ro--right { text-align: right; font-weight: 700; }
.es-ro--total { font-weight: 800; color: var(--es-green-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .es-nav__links { display: none; }
    .es-lang { margin-left: auto; }
}
@media (max-width: 1024px) {
    .es-features { grid-template-columns: 1fr 1fr; }
    .es-feature--wide ul { grid-template-columns: 1fr 1fr; }
    .es-trust__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .es-hero__grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 20px 56px; }
    .es-how, .es-pricing { grid-template-columns: 1fr; }
    .es-section { padding: 64px 0; }
}
@media (max-width: 600px) {
    .es-container { padding: 0 16px; }
    .es-nav__inner { min-height: 68px; }
    .es-brand img { width: var(--es-logo-w-sm); }
    .es-lang__btn { display: none; }
    .es-lang__opt { padding: 4px; }
    .es-hero__grid { padding: 36px 16px 48px; }
    .es-hero__lead { font-size: 16px; }
    .es-hero__cta .es-btn { width: 100%; }
    .es-trust__grid { grid-template-columns: 1fr; padding: 20px 16px; }
    .es-features, .es-feature--wide ul { grid-template-columns: 1fr; }
    .es-card, .es-checks { padding: 20px; }
    .es-fe, .es-policy { grid-template-columns: 1fr; padding: 24px; }
    .es-policy { padding: 20px; }
    .es-form > tbody > tr > td { padding: 0 18px; }
    .es-phone, .es-phone__lbls { grid-template-columns: 1fr; }
    .es-cta__btns .es-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .es-btn, .es-fab { transition: none; }
}
