/* ══════════════════════════════════════════════════════════════════════
   GstarCAD 365 — estilo propio del sitio (sobre la base común styles.css).

   Diseño de referencia: página oficial de GstarCAD 365 (gstarcad.eu):
   fondo claro con planos en línea, azul real, tarjetas blancas con sombra
   suave y maquetas de dispositivos. La base styles.css sigue dando el
   formulario de contacto, los clientes y las animaciones de aparición.
   ══════════════════════════════════════════════════════════════════════ */

:root {
    --brand:       #1557ff;   /* azul real 365 */
    --brand-2:     #3b82f6;
    --brand-deep:  #0b3fd1;
    --cyan:        #3b82f6;
    --gold:        #1557ff;   /* los eyebrows de la base usan --gold */
    --gold-2:      #1557ff;
    --ink:         #0b1533;
    --muted:       #55627a;
    --line:        #e3e9f3;
    --surface:     #f4f8ff;
    --surface-cool:#eaf2ff;
    --sky:         #eef4ff;
}

body {
    font-family: 'Inter', 'MiSans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: var(--ink);
}
.wrap { max-width: 76rem; }

/* ───────── Botones ───────── */
.b365 { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: .5rem; font-weight: 700; font-size: .9375rem; text-decoration: none; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.b365:hover { transform: translateY(-2px); }
.b365-solid { color: #fff; background: var(--brand); box-shadow: 0 10px 22px -10px rgba(21,87,255,.65); }
.b365-solid:hover { background: var(--brand-deep); }
.b365-line { color: var(--brand); background: #fff; border: 1.5px solid var(--brand); }
.b365-line:hover { background: var(--sky); }
.b365-sm { padding: .55rem 1rem; font-size: .85rem; }

/* ───────── Tipos de sección ───────── */
.s365 { padding: 4.5rem 1.25rem; position: relative; }
@media (min-width: 768px) { .s365 { padding: 5.5rem 2rem; } }
.s365-tint { background: linear-gradient(180deg, #f4f8ff 0%, #fbfdff 100%); }
.kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.h2-365 { margin-top: .4rem; font-size: clamp(1.6rem, 2.4vw, 2.15rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.sec-head { display: grid; gap: 1rem; align-items: end; margin-bottom: 2.25rem; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.sec-head p { color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* Fondo de planos en línea (edificios) */
.blueprint-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blueprint-bg svg { position: absolute; opacity: .55; }

/* ───────── NAV ───────── */
#site-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
#site-nav.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(11,21,51,.35); }
.nav365 { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.brand365 { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; white-space: nowrap; }
.brand365 .g { width: 40px; height: 40px; border-radius: .55rem; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1557ff, #3b82f6); color: #fff; font-weight: 900; font-size: 1.15rem; font-style: italic; box-shadow: 0 6px 14px -6px rgba(21,87,255,.7); }
.brand365 em { font-style: normal; color: var(--brand); }
.nav365-links { display: none; align-items: center; gap: 1.6rem; font-size: .9rem; font-weight: 500; }
.nav365-links a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
.nav365-links a:hover { color: var(--brand); }
.nav365-cta { display: none; gap: .6rem; }
@media (min-width: 1024px) { .nav365-links, .nav365-cta { display: flex; } }
@media (min-width: 1024px) and (max-width: 1180px) { .nav365-links { gap: 1.1rem; font-size: .85rem; } .nav365-cta .b365-line { display: none; } }

/* ───────── HERO ───────── */
.hero365 { position: relative; overflow: hidden; padding: 7.5rem 1.25rem 3rem; background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 60%, #ffffff 100%); }
.hero365-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero365-grid > * { min-width: 0; }
@media (min-width: 1024px) { .hero365-grid { grid-template-columns: .95fr 1.25fr; gap: 2rem; } .hero365 { padding-top: 8.5rem; } }
.hero365 h1 { margin-top: .9rem; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.hero365 h1 > span:not(.rot365) { color: var(--ink); }
.hero365 .lead365 { margin-top: 1.1rem; max-width: 33rem; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.hero-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.4rem; font-size: .8rem; color: var(--muted); }
.hero-checks span { display: inline-flex; align-items: center; gap: .4rem; }
.tick { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.tick svg { width: 9px; height: 9px; }

/* Escena de dispositivos del hero */
.devices { position: relative; aspect-ratio: 1.4; }
@media (max-width: 640px) { .cadui-com, .cadui-layers { font-size: .4rem; } }
.laptop { position: absolute; right: 0; top: 0; width: 86%; }
.laptop-screen { position: relative; border-radius: .9rem .9rem 0 0; padding: .55rem; background: #0d0f14; box-shadow: 0 40px 70px -40px rgba(11,21,51,.75); }
.laptop-base { height: 14px; margin: 0 -5%; border-radius: 0 0 1rem 1rem; background: linear-gradient(180deg, #d9dee8, #aeb6c5); box-shadow: 0 18px 30px -18px rgba(11,21,51,.6); }
.cadui { display: grid; grid-template-columns: 22% 1fr 24%; grid-template-rows: auto auto 1fr; border-radius: .35rem; overflow: hidden; background: #111827; color: #cbd5e1; font-size: .5rem; aspect-ratio: 16 / 9.4; }
.cadui-top { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; background: #0b1220; border-bottom: 1px solid #1f2937; }
.cadui-top b { color: #fff; font-size: .55rem; font-style: italic; }
.cadui-top .file { padding: .12rem .4rem; border-radius: .25rem; background: #1f2937; color: #e5e7eb; }
.cadui-top .avs { margin-left: auto; display: flex; }
.cadui-top .avs i { width: 13px; height: 13px; margin-left: -4px; border-radius: 50%; border: 1.5px solid #0b1220; display: block; }
.cadui-top .share { padding: .15rem .45rem; border-radius: .25rem; background: var(--brand); color: #fff; font-weight: 700; }
.cadui-tools { grid-column: 1 / -1; display: flex; gap: .3rem; padding: .3rem .5rem; background: #0f172a; border-bottom: 1px solid #1f2937; }
.cadui-tools i { width: 10px; height: 10px; border-radius: 2px; background: #334155; display: block; }
.cadui-layers { padding: .45rem; border-right: 1px solid #1f2937; display: grid; align-content: start; gap: .3rem; }
.cadui-layers p { color: #94a3b8; margin-bottom: .1rem; }
.cadui-layers span { display: flex; align-items: center; gap: .3rem; }
.cadui-layers span i { width: 7px; height: 7px; border-radius: 2px; display: block; }
.cadui-canvas { position: relative; background: #0a0f1a; background-image: linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px); background-size: 14px 14px; }
.cadui-canvas svg { position: absolute; inset: 8%; width: 84%; height: 84%; }
.cadui-com { padding: .45rem; background: #f8fafc; color: #0f172a; display: grid; align-content: start; gap: .35rem; }
.cadui-com p { font-weight: 700; }
.cadui-com .c { display: flex; gap: .3rem; padding: .3rem; border-radius: .3rem; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); line-height: 1.3; }
.cadui-com .c i { flex: none; width: 12px; height: 12px; border-radius: 50%; display: block; }
.cadui-com .c small { display: block; color: #64748b; }
.tagc { position: absolute; z-index: 2; padding: .25rem .45rem; border-radius: .3rem; color: #fff; font-size: .5rem; font-weight: 700; line-height: 1.25; box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); white-space: nowrap; }
.tagc small { display: block; font-weight: 500; opacity: .9; }
.tablet { position: absolute; left: 0; bottom: 6%; width: 44%; padding: .45rem; border-radius: .9rem; background: #111827; box-shadow: 0 30px 60px -30px rgba(11,21,51,.8); z-index: 3; }
.tablet .scr { display: grid; grid-template-columns: 42% 1fr; gap: .35rem; padding: .4rem; border-radius: .5rem; background: #fff; font-size: .45rem; color: #0f172a; aspect-ratio: 4 / 3; overflow: hidden; }
.tablet .files { display: grid; align-content: start; gap: .3rem; }
.tablet .files b { font-size: .5rem; font-style: italic; }
.tablet .files span { display: flex; align-items: center; gap: .3rem; padding: .2rem; border-radius: .25rem; background: #f1f5f9; }
.tablet .files span i { width: 9px; height: 11px; border-radius: 2px; background: var(--brand); display: block; }
.tablet .model { border-radius: .35rem; background: linear-gradient(180deg, #dbeafe, #f8fafc); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.phone { position: absolute; left: 38%; bottom: 0; width: 17%; padding: .3rem; border-radius: 1.1rem; background: #0b0f17; box-shadow: 0 30px 50px -24px rgba(11,21,51,.85); z-index: 4; }
.phone .scr { border-radius: .85rem; overflow: hidden; background: #fff; aspect-ratio: 9 / 18.5; display: flex; flex-direction: column; }
.phone .scr .bar { height: 9%; background: #f1f5f9; }
.phone .scr svg { flex: 1; width: 100%; }
.phone .scr .nav { height: 9%; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid #e2e8f0; }
.phone .scr .nav i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; display: block; }
.phone .scr .nav i:first-child { background: var(--brand); }
.handnote365 { position: absolute; right: -4px; bottom: 2%; z-index: 5; font-family: 'Caveat', cursive; font-size: 1.45rem; line-height: 1.05; color: var(--ink); transform: rotate(-8deg); text-align: right; }
.handnote365 svg { position: absolute; right: 110%; top: -55%; width: 70px; }
@media (max-width: 1023px) { .handnote365 { display: none; } }

/* ───────── Tarjetas de funciones ───────── */
.feat-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px)  { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; border-radius: .9rem; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -24px rgba(11,21,51,.4); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feat:hover { transform: translateY(-4px); border-color: #bcd2ff; box-shadow: 0 20px 40px -24px rgba(21,87,255,.45); }
.feat .ic { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e8f0ff; color: var(--brand); }
.feat h3 { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.feat p { margin-top: .35rem; font-size: .85rem; line-height: 1.55; color: var(--muted); }
.feat .go { flex: none; align-self: center; width: 28px; height: 28px; margin-left: auto; border-radius: 50%; border: 1px solid #cbd5e1; display: flex; align-items: center; justify-content: center; color: #475569; }

/* ───────── Plataformas ───────── */
.plat-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px)  { .plat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plat-grid { grid-template-columns: repeat(4, 1fr); } }
.plat { position: relative; display: flex; flex-direction: column; border-radius: .9rem; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -24px rgba(11,21,51,.4); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.plat:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(21,87,255,.5); }
.plat .shot { height: 150px; display: flex; align-items: flex-end; justify-content: center; padding: 1rem 1rem 0; background: linear-gradient(180deg, #f4f8ff, #ffffff); }
.plat .shot svg { height: 100%; width: auto; max-width: 100%; }
.plat .pic { position: absolute; left: 1rem; top: 128px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--brand); box-shadow: 0 6px 16px -6px rgba(11,21,51,.35); }
.plat .body { display: flex; flex-direction: column; flex: 1; padding: 1.75rem 1.1rem 1.2rem; }
.plat h3 { font-size: 1rem; font-weight: 800; color: var(--ink); }
.plat p { margin-top: .3rem; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.plat .req { margin-top: .5rem; font-size: .72rem; color: #8090aa; }
.plat a.more { margin-top: auto; padding-top: .9rem; font-size: .85rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.plat a.more:hover { text-decoration: underline; }

/* ───────── Flujo de trabajo ───────── */
.flow { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.flow-step { position: relative; text-align: center; padding: 0 .75rem; }
.flow-step .ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e8f0ff; color: var(--brand); box-shadow: inset 0 0 0 6px #f4f8ff; }
.flow-step h3 { margin-top: .9rem; font-size: 1rem; font-weight: 800; color: var(--ink); }
.flow-step p { margin-top: .3rem; font-size: .84rem; color: var(--muted); line-height: 1.5; }
@media (min-width: 900px) {
    .flow-step:not(:last-child)::after { content: ""; position: absolute; top: 31px; left: calc(50% + 46px); width: calc(100% - 92px); border-top: 2px dashed #8fb0ff; }
    .flow-step:not(:last-child)::before { content: ""; position: absolute; top: 26px; right: calc(-50% + 44px); border: 6px solid transparent; border-left-color: #8fb0ff; transform: translateX(100%); }
}

/* ───────── Seguridad / despliegue ───────── */
.sec-grid { display: grid; gap: 1.1rem; align-items: stretch; }
@media (min-width: 1024px) { .sec-grid { grid-template-columns: 1fr 1fr .8fr; } }
.deploy { display: flex; gap: 1rem; padding: 1.5rem; border-radius: .9rem; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -24px rgba(11,21,51,.4); }
.deploy .ic { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e8f0ff; color: var(--brand); }
.deploy h3 { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.deploy p { margin-top: .3rem; font-size: .84rem; color: var(--muted); line-height: 1.55; }
.deploy ul { margin-top: .8rem; display: grid; gap: .4rem; list-style: none; padding: 0; font-size: .84rem; color: var(--ink); }
.deploy li { display: flex; gap: .5rem; align-items: center; }
.shield-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.shield-art .badges { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: .45rem; }
.shield-art .badges span { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; border-radius: .4rem; background: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(11,21,51,.5); }

/* ───────── Clientes (base) recoloreado ───────── */
#clientes { background: #ffffff; }

/* ───────── CTA final ───────── */
.cta365 { position: relative; overflow: hidden; margin: 0 1.25rem; border-radius: 1.25rem; color: #fff; background: linear-gradient(105deg, #0a1f5c 0%, #0d2f86 45%, #1557ff 100%); }
@media (min-width: 768px) { .cta365 { margin: 0 2rem; } }
.cta365-inner { position: relative; display: grid; gap: 2rem; align-items: center; padding: 2.5rem 1.75rem; }
@media (min-width: 900px) { .cta365-inner { grid-template-columns: 1.2fr 1fr; padding: 3rem 3.25rem; } }
.cta365 .kicker { color: #9cc0ff; }
.cta365 h2 { margin-top: .4rem; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.cta365 p { margin-top: .5rem; color: #c7d7ff; }
.cta365 .b365-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.cta365 .b365-line:hover { background: rgba(255,255,255,.1); }
.cta365 .b365-solid { background: #fff; color: var(--brand); }
.cta365-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.1rem; font-size: .78rem; color: #dbe6ff; }
.cta365-checks span { display: inline-flex; align-items: center; gap: .35rem; }
.cta365-art { position: relative; min-height: 180px; }
.cta365-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta365 .handnote365 { position: absolute; right: 1.5rem; top: 1.2rem; bottom: auto; color: #fff; font-size: 1.5rem; }

/* ───────── Pie ───────── */
.foot365 { padding: 2.5rem 1.25rem 2rem; }
.foot365-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.foot365-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .85rem; }
.foot365-links a { color: var(--ink); text-decoration: none; }
.foot365-links a:hover { color: var(--brand); }
.foot365-legal { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .78rem; color: #8090aa; }

[x-cloak] { display: none !important; }
