/* =========================================================
   Creativa · página web (mismo tema que Creativa POS 3.0)
========================================================= */
:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e6e9f0;
    --text: #0f172a;
    --text-2: #475569;
    --muted: #94a3b8;

    --brand: #2563eb;
    --brand-600: #1d4ed8;
    --brand-50: #eff4ff;
    --side: #0f1e36;
    --side-2: #17294a;
    --side-text: #c7d2e5;

    --green: #16a34a;  --green-50: #e9f9ef;
    --amber: #d97706;  --amber-50: #fff6e5;
    --violet: #7c3aed; --violet-50: #f3edff;
    --cyan: #0891b2;   --cyan-50: #e6f7fb;
    --yellow: #fcd34d;

    --r: 14px;
    --r-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .05);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
    --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0; background: var(--surface); color: var(--text);
    font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.ti { vertical-align: -2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.t2 { color: var(--text-2); }
.center { text-align: center; }

/* ---------------- Botones ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 650; font-size: 15px; cursor: pointer; white-space: nowrap;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.btn-primary:hover { background: var(--brand-600); }
.btn-light { background: #fff; color: var(--brand); border-color: var(--border); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-wa { background: #22c55e; color: #fff; box-shadow: 0 8px 20px rgba(34, 197, 94, .3); }
.btn-wa:hover { background: #16a34a; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

/* ---------------- Encabezado ---------------- */
.topbar { background: var(--side); color: var(--side-text); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 38px; }
.topbar a { color: var(--side-text); }
.topbar a:hover { color: #fff; }
.topbar .sp { flex: 1; }
.topbar .redes { display: flex; gap: 12px; }
.topbar .redes a { font-size: 15px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; }
.logo img { height: 40px; width: auto; }
.logo-ic { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #3b82f6, #7c3aed); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.logo small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu > a, .menu .dd > button {
    display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 9px;
    color: var(--text-2); font-weight: 550; font-size: 15px; background: none; border: 0; cursor: pointer;
}
.menu > a:hover, .menu .dd > button:hover { background: var(--surface-2); color: var(--text); }
.menu > a.on, .menu .dd.on > button { color: var(--brand); background: var(--brand-50); }
.dd { position: relative; }
.dd-menu {
    position: absolute; top: calc(100% + 8px); left: -10px; width: 340px; padding: 8px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; gap: 12px; padding: 10px; border-radius: 10px; color: var(--text); }
.dd-menu a:hover { background: var(--surface-2); }
.dd-menu b { display: block; font-size: 14.5px; }
.dd-menu small { color: var(--text-2); font-size: 13px; line-height: 1.4; display: block; }
.header-cta { display: flex; gap: 8px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-size: 22px; cursor: pointer; }

/* ---------------- Íconos de producto ---------------- */
.p-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: 20px; }
.p-ic.pos { background: linear-gradient(135deg, #3b82f6, #7c3aed); }
.p-ic.vet { background: linear-gradient(135deg, #2563eb, #1e40af); }
.p-ic .ti { font-size: 22px; vertical-align: 0; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(59,130,246,.45), transparent 60%),
        radial-gradient(700px 500px at 0% 110%, rgba(124,58,237,.35), transparent 60%),
        var(--side);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25;
    background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 30px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 14px; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; margin: 22px 0 18px; letter-spacing: -.035em; }
.grad { background: linear-gradient(90deg, #93c5fd, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-y { color: var(--yellow); }
.hero p.lead { font-size: 19px; color: #c7d2e5; max-width: 560px; }
.hero .acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: #c7d2e5; font-size: 14px; }
.hero .checks span { display: inline-flex; align-items: center; gap: 6px; }
.hero .checks .ti { color: #4ade80; }

.mock { position: relative; }
.browser { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #eef1f6; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 10px; flex: 1; height: 18px; border-radius: 6px; background: #fff; }
.phone { position: absolute; right: -14px; bottom: -40px; width: 30%; border-radius: 26px; padding: 7px; background: #0b1220; box-shadow: 0 30px 60px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15); }
.phone img { border-radius: 20px; }
.float-chip { position: absolute; left: -22px; top: 26px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--text); font-weight: 700; box-shadow: var(--shadow-lg); font-size: 14px; }
.float-chip .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--green); color: #fff; display: grid; place-items: center; }

/* ---------------- Secciones ---------------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg); }
.section.dark { background: var(--side); color: #fff; }
.s-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.s-head.left { margin-left: 0; text-align: left; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.dark .kicker { color: #93c5fd; }
.s-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.s-head p { margin-top: 14px; font-size: 18px; color: var(--text-2); }
.dark .s-head p { color: var(--side-text); }

.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.1); border-color: #d5dbe7; }

/* Tarjetas de producto */
.producto { display: flex; flex-direction: column; overflow: hidden; }
.producto-img { position: relative; background: var(--side); padding: 26px 26px 0; overflow: hidden; }
.producto-img.vet { background: linear-gradient(160deg, #1e3a8a, #1d4ed8); }
.producto-img img { border-radius: 10px 10px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.35); }
.producto-b { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.producto-h { display: flex; align-items: center; gap: 12px; }
.producto-h b { font-size: 20px; }
.producto-h small { display: block; color: var(--text-2); font-size: 13px; }
.producto h3 { font-size: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; background: var(--brand-50); color: var(--brand); }
.tag.green { background: var(--green-50); color: var(--green); }
.tag.amber { background: var(--amber-50); color: var(--amber); }
.lista-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lista-check li { display: flex; gap: 10px; color: var(--text-2); }
.lista-check .ti { color: var(--green); font-size: 19px; flex: none; margin-top: 2px; }
.producto .acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

/* Funciones / módulos */
.feature { padding: 24px; }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; font-size: 24px; }
.feature .ic .ti { vertical-align: 0; }
.feature h4 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 15px; }
.feature .ic > i, .feature .ic svg { font-size: 22px; }
.bg-blue { background: var(--brand-50); color: var(--brand); }
.bg-green { background: var(--green-50); color: var(--green); }
.bg-violet { background: var(--violet-50); color: var(--violet); }
.bg-amber { background: var(--amber-50); color: var(--amber); }
.bg-cyan { background: var(--cyan-50); color: var(--cyan); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { padding: 22px; display: flex; gap: 14px; align-items: center; }
.kpi .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none; }
.kpi b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.kpi small { color: var(--text-2); }

/* Promociones (galería) */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 0; background: none; font-weight: 650; color: var(--text-2); cursor: pointer; }
.tab.on { background: var(--side); color: #fff; }
.promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.promo { position: relative; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--side); border: 1px solid var(--border); aspect-ratio: 1 / 1; }
.promo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s; }
.promo:hover img { transform: scale(1.04); }
.promo span { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 8px; background: rgba(15,30,54,.82); color: #fff; font-size: 13px; font-weight: 600; }
.panel[hidden] { display: none; }

/* Capturas */
.capturas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.captura { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #fff; cursor: zoom-in; box-shadow: var(--shadow); }
.captura img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.captura figcaption { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.moviles { display: flex; gap: 18px; justify-content: center; }
.moviles img { width: 180px; border-radius: 24px; border: 7px solid #0b1220; box-shadow: var(--shadow-lg); }

/* Detalle de producto */
.p-hero .wrap { padding-top: 70px; padding-bottom: 80px; }
.p-hero.vet { background: radial-gradient(900px 500px at 85% -10%, rgba(96,165,250,.45), transparent 60%), linear-gradient(160deg, #0f2a6b, #1d4ed8); }
.para { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.para span { padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 13.5px; }
.subnav { position: sticky; top: 70px; z-index: 40; background: #fff; border-bottom: 1px solid var(--border); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; height: 56px; align-items: center; scrollbar-width: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 8px; align-items: center; }
.subnav a:hover { background: var(--surface-2); color: var(--text); }

/* Servicios (contenido de la BD) */
.servicio { padding: 28px; }
.servicio .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 24px; margin-bottom: 18px; }
.servicio .ic i, .servicio .ic svg { font-size: 24px; }
.servicio h3 { font-size: 19px; margin-bottom: 8px; }
.servicio p { color: var(--text-2); }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.video { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--side); box-shadow: var(--shadow-lg); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video .play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-size: 30px; box-shadow: 0 0 0 12px rgba(255,255,255,.2); border: 0; cursor: pointer; }
.about-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.about-item:last-child { border-bottom: 0; }
.about-item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; font-size: 22px; }
.about-item .ic i, .about-item .ic svg { font-size: 22px; }
.about-item h4 { font-size: 17px; margin-bottom: 4px; }
.about-item p { color: var(--text-2); font-size: 15px; }

/* Precios */
.plan { padding: 28px; position: relative; display: flex; flex-direction: column; }
.plan.destacado { border: 2px solid var(--brand); box-shadow: 0 20px 50px rgba(37,99,235,.18); }
.plan .badge { position: absolute; top: -12px; right: 20px; padding: 4px 12px; border-radius: 20px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.plan h3 { font-size: 20px; }
.plan .sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.plan .precio { margin: 20px 0; font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.plan .precio small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .lista-check { margin-bottom: 24px; }
.plan .btn { margin-top: auto; }

/* Clientes */
.clientes { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.cliente { height: 110px; display: grid; place-items: center; padding: 18px; cursor: pointer; }
.cliente img { max-height: 70px; width: auto; filter: grayscale(1); opacity: .7; transition: .2s; }
.cliente:hover img { filter: none; opacity: 1; }

/* Portafolio */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.filtro { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; }
.filtro.on { background: var(--side); border-color: var(--side); color: #fff; }
.proyecto { overflow: hidden; cursor: pointer; }
.proyecto .img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.proyecto .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.proyecto:hover .img img { transform: scale(1.05); }
.proyecto .b { padding: 18px 20px; }
.proyecto h3 { font-size: 17px; margin-bottom: 4px; }
.proyecto p { color: var(--text-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Encabezado de páginas internas */
.page-head { background: radial-gradient(800px 380px at 90% -20%, rgba(59,130,246,.45), transparent 60%), var(--side); color: #fff; padding: 64px 0 60px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.page-head p { color: var(--side-text); font-size: 18px; margin-top: 12px; max-width: 720px; }
.migas { display: flex; gap: 8px; font-size: 14px; color: #8094b4; margin-bottom: 14px; }
.migas a { color: #c7d2e5; }

/* Contacto */
.contacto { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.dato { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.dato .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 21px; flex: none; }
.dato small { color: var(--muted); display: block; font-size: 13px; }
.dato a, .dato span { color: var(--text); font-weight: 600; }
.mapa { border: 0; width: 100%; height: 260px; border-radius: 12px; margin-top: 18px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.campo label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.input { width: 100%; height: 46px; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.aviso { padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.aviso.ok { background: var(--green-50); color: var(--green); }
.aviso.err { background: #fdecec; color: #dc2626; }

/* Banda de llamada a la acción */
.cta { border-radius: 22px; padding: 56px; color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
    background: radial-gradient(600px 300px at 100% 0%, rgba(124,58,237,.5), transparent 60%), linear-gradient(135deg, #1d4ed8, #0f1e36); }
.cta h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cta p { color: #c7d2e5; margin-top: 12px; font-size: 17px; }
.cta .acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Pie de página */
.footer { background: var(--side); color: var(--side-text); padding: 70px 0 0; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--side-text); }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .redes { display: flex; gap: 8px; margin-top: 18px; }
.footer .redes a { width: 38px; height: 38px; border-radius: 10px; background: var(--side-2); display: grid; place-items: center; }
.footer .legal { margin-top: 50px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: #8094b4; }

/* WhatsApp flotante y subir */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 12px 30px rgba(34,197,94,.45); }
.wa-float:hover { background: #16a34a; }

/* Modal y visor */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15,23,42,.6); backdrop-filter: blur(3px); }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 18px; width: 100%; max-width: 860px; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-h h3 { font-size: 18px; flex: 1; }
.modal-b { padding: 22px; }
.x { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 20px; display: grid; place-items: center; }
.visor { position: fixed; inset: 0; z-index: 110; background: rgba(5,10,20,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.visor.open { display: flex; }
.visor img { max-height: 88vh; max-width: 92vw; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.visor .x { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.visor .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; cursor: pointer; }
.visor .prev { left: 18px; } .visor .next { right: 18px; }
.visor p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #c7d2e5; font-weight: 600; }

/* Animación de entrada */
.js-rev .rev { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-rev .rev.in { opacity: 1; transform: none; }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.login-side { position: relative; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
    background: radial-gradient(700px 400px at 100% 0%, rgba(59,130,246,.5), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(124,58,237,.4), transparent 60%), var(--side); }
.login-side h2 { font-size: 40px; font-weight: 800; margin: 18px 0 12px; }
.login-side p { color: var(--side-text); font-size: 17px; max-width: 460px; }
.login-side .logo { color: #fff; }
.login-main { display: grid; place-items: center; padding: 40px 20px; }
.login-card { width: 100%; max-width: 420px; padding: 36px; }
.login-card h1 { font-size: 26px; font-weight: 800; }
.login-card .t2 { margin: 6px 0 26px; }
.login-card .campo { margin-bottom: 16px; }
.pass { position: relative; }
.pass button { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 19px; }

/* 404 */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.error-page b { font-size: 120px; font-weight: 800; line-height: 1; background: linear-gradient(90deg, #2563eb, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
    .menu { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
    .menu.open { display: flex; }
    .menu > a, .menu .dd > button { padding: 12px; }
    .dd-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; }
    .menu-btn { display: grid; place-items: center; }
    .header-cta .btn-light { display: none; }
    .g-4, .kpis { grid-template-columns: repeat(2, 1fr); }
    .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .hero .wrap, .about, .contacto, .cta, .login { grid-template-columns: 1fr; }
    .hero .wrap { padding-top: 56px; padding-bottom: 80px; }
    .g-3, .capturas { grid-template-columns: repeat(2, 1fr); }
    .g-2 { grid-template-columns: 1fr; }
    .cta { padding: 36px; }
    .cta .acciones { justify-content: flex-start; }
    .login-side { display: none; }
    .section { padding: 70px 0; }
}
@media (max-width: 600px) {
    .topbar .hide-sm { display: none; }
    .header-cta { display: none; }
    .g-3, .g-4, .kpis, .capturas, .form, .footer .cols { grid-template-columns: 1fr; }
    .hero .acciones .btn { flex: 1; }
    .phone { width: 34%; right: -6px; }
    .float-chip { left: 6px; top: -18px; }
    .moviles img { width: 30%; }
    .tabs { width: 100%; }
    .tab { flex: 1; justify-content: center; padding: 10px; }
    .footer .legal { flex-direction: column; }
}


/* Ajustes de cabecera en pantallas medianas */
.topbar .wrap { white-space: nowrap; overflow: hidden; }
@media (max-width: 1080px) {
    .header-cta { margin-left: auto; }
    .menu-btn { margin-left: 0; }
}
@media (max-width: 900px) {
    .topbar .hide-md { display: none; }
}

/* Logo Creatix: ícono + texto con el degradado de la marca */
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-txt b { font-size: 22px; font-weight: 800; letter-spacing: .02em; background: linear-gradient(90deg, #0e9fc4, #06daa7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-txt small { font-size: 9.5px; font-weight: 700; letter-spacing: .24em; color: var(--text-2); margin-top: 4px; }
.footer .logo-txt small, .login-side .logo-txt small { color: #c7d2e5; }

/* Versiones del sistema */
.version { gap: 0; }
.v-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--side); color: #fff; font-weight: 800; margin-bottom: 14px; }
.version.destacado .v-num { background: linear-gradient(135deg, #3b82f6, #7c3aed); }
.v-num.sm { width: 36px; height: 36px; border-radius: 10px; margin: 0; flex: none; font-size: 14px; }
.v-url { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; word-break: break-all; }
.dd-right .dd-menu { left: auto; right: 0; width: 330px; }
.solo-movil { display: none !important; }
@media (max-width: 1080px) { .solo-movil { display: inline-flex !important; } }
@media (max-width: 1080px) { .header-cta .dd { display: none; } }
.logo { flex: none; }
