/* Portal de demos I CreativeCode. Tokens de la web corporativa (01-icreativecode-web): navy, azul y cian; Plus Jakarta Sans autoalojada. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy-950: #051225;
  --navy-900: #07182f;
  --navy-800: #0b2444;
  --blue-600: #1768e5;
  --blue-700: #1155c2;
  --cyan-500: #18bfe3;
  --green-400: #2fd3a0;
  --slate-900: #172033;
  --slate-600: #5c687d;
  --slate-400: #8f9aad;
  --slate-200: #e7ebf1;
  --surface: #f6f8fb;
  --white: #fff;
  --ok: #0f8a5f;
  --ok-bg: #e3f6ee;
  --warn: #a15c00;
  --warn-bg: #fff2dc;
  --muted-bg: #eef1f6;
  --shadow: 0 18px 50px rgba(7, 24, 47, .10);
  --shadow-hover: 0 24px 60px rgba(7, 24, 47, .16);
  --radius: 18px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--slate-900); background: var(--white); font-family: var(--font); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--white); }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 3px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(7, 24, 47, .08); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 112px; height: auto; }
.brand-tag { padding: 4px 10px; border-radius: 999px; background: var(--navy-900); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.header-link { color: var(--slate-600); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.header-link:hover { color: var(--blue-600); }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(1200px 500px at 85% -10%, rgba(24, 191, 227, .28), transparent 60%), radial-gradient(900px 420px at -10% 110%, rgba(47, 211, 160, .18), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-800)); }
.hero-inner { padding: 80px 0 88px; }
.hero-inner > * { max-width: 760px; }
.eyebrow { margin: 0 0 12px; color: var(--cyan-500); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.lead { margin: 20px 0 0; color: #c4d0e2; font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 620px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; color: #dbe4f1; font-size: .9rem; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan-500), var(--green-400)); }

/* Catalogo */
.catalog { padding: 72px 0 88px; background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head h2, .contact h2 { margin: 0; color: var(--navy-900); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--slate-600); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { --accent: var(--blue-600); position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); border: 1px solid rgba(7, 24, 47, .05); transition: transform .2s ease, box-shadow .2s ease; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent); }
.card:not(.card-soon):hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, white); }
.card-icon svg { width: 28px; height: 28px; }
.card-body { flex: 1; }
.card h3 { margin: 18px 0 2px; color: var(--navy-900); font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.tagline { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: .9rem; }
.desc { margin: 0; color: var(--slate-600); font-size: .93rem; }
.features { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; color: var(--slate-900); }
.features li { position: relative; padding-left: 20px; }
.features li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.card-foot { margin-top: 22px; }
.card-soon { box-shadow: none; background: rgba(255, 255, 255, .7); }
.card-soon .card-icon { filter: grayscale(.35); }
.card-soon h3, .card-soon .desc, .card-soon .features { opacity: .78; }

/* Estado */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; background: var(--muted-bg); color: var(--slate-600); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge[data-state="up"] { background: var(--ok-bg); color: var(--ok); }
.badge[data-state="down"] { background: var(--warn-bg); color: var(--warn); }
.badge[data-state="checking"]::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 0; background: var(--blue-600); color: var(--white); font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .2s; }
.card .btn { width: 100%; }
.btn:hover { background: var(--blue-700); }
.btn-disabled, .btn-disabled:hover { background: var(--muted-bg); color: var(--slate-400); cursor: default; }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: #e9f1ff; }
.btn-outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.load-error { margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; }

/* Contacto y pie */
.contact { padding: 56px 0; background: linear-gradient(120deg, var(--navy-900), var(--blue-700)); color: var(--white); }
.contact h2 { color: var(--white); }
.contact p { margin: 6px 0 0; color: #c9d6ea; }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { background: var(--navy-950); color: #9fb0c8; font-size: .82rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 22px 0; }
.footer-inner p { margin: 0; }

@media (max-width: 560px) {
  .header-inner { min-height: 64px; }
  .brand img { width: 92px; }
  .header-link { font-size: .82rem; }
  .hero-inner { padding: 52px 0 60px; }
  .catalog { padding: 48px 0 60px; }
  .contact-actions, .contact-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
.hero-actions { margin: 28px 0 0; }
