/* Páginas públicas (/build, /status, /aplicaciones) con el diseño de la web pública (cronocontrol.com/testweb):
   barra superior, cabecera con «Volver al inicio», cabecera de página y pie. Cada página añade lo suyo. */
:root {
  --orange: #ea580c; --orange-hover: #d24f0b; --yellow: #fbbf24;
  --g50: #f9fafb; --g100: #f3f4f6; --g200: #e5e7eb; --g400: #9ca3af; --g500: #6b7280; --g600: #4b5563;
  --g700: #374151; --g800: #1f2937; --g900: #111827;
  --o100: #ffedd5; --y100: #fef9c3; --y800: #854d0e; --green: #16a34a; --green100: #dcfce7;
  --win: #0078d4; --android: #2fb36d;
  --gutter: clamp(1rem, 4.2vw + .25rem, 2.5rem); --max: 72rem;
  --r: .75rem; --r-lg: 1rem; --r-xl: 1.25rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: #fff; color: var(--g900); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Barra superior y cabecera */
.topbar { background: var(--g900); color: #d1d5db; font-size: .8125rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.25rem; }
.topbar__contacts { display: flex; gap: .75rem 1.25rem; min-width: 0; overflow: hidden; white-space: nowrap; }
.topbar a:hover { color: var(--yellow); }
.topbar__app { font-weight: 600; color: #fff; text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; white-space: nowrap; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--g100); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.logo img { height: 2.5rem; width: auto; display: block; }
.logo:hover { opacity: .85; }
.header__actions { display: flex; align-items: center; gap: 1rem; }
.back { display: inline-flex; align-items: center; gap: .375rem; color: var(--g600); font-size: .875rem; font-weight: 500; }
.back:hover { color: var(--orange); }
.back svg { width: 18px; height: 18px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 600; font-size: .875rem;
  border: 1px solid transparent; border-radius: var(--r-lg); cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(234,88,12,.35); }
.btn--outline { background: #fff; color: var(--g900); border-color: var(--g200); }
.btn--outline:hover { border-color: var(--orange); color: var(--orange); }
.btn--sm { height: 2.25rem; padding: 0 1rem; }
.btn--lg { min-height: 3rem; padding: .75rem 1.5rem; font-size: 1rem; border-radius: var(--r-xl); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled="true"] { background: var(--g100); color: var(--g500); pointer-events: none; }

/* Cabecera de la página */
.hero { background: linear-gradient(180deg, #fff7ed 0%, #fff 100%); padding-block: 3rem 2.5rem; }
.eyebrow { color: var(--orange); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw + .5rem, 3.25rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; max-width: 46rem; }
.grad { background: linear-gradient(to right, var(--orange), var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--g600); font-size: 1.0625rem; max-width: 42rem; margin-top: 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pill { display: inline-flex; align-items: center; gap: .375rem; background: var(--y100); color: var(--y800); border-radius: 9999px; padding: .25rem .75rem; font-size: .875rem; font-weight: 500; }
.pill svg { width: 16px; height: 16px; }
.pill--green { background: var(--green100); color: #166534; }

/* Secciones y tarjetas */
section { padding-block: 2.5rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.section-head p { color: var(--g500); font-size: .9375rem; }
.card { background: #fff; border: 1px solid var(--g200); border-radius: var(--r-xl); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.04); }
.empty { padding: 2rem; color: var(--g500); text-align: center; }
.help { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; border-top: 3px solid var(--orange); }
.help p { color: var(--g700); }

/* Pie */
.footer { background: var(--g900); color: var(--g400); padding-block: 3rem 1.5rem; margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--g800); }
.footer__logo { height: 2.5rem; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer__brand p { max-width: 28rem; margin-bottom: 1.5rem; }
.footer__contacts { display: flex; flex-direction: column; gap: .35rem; font-size: .875rem; }
.footer__contacts a:hover { color: var(--yellow); }
.footer h4 { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.footer li { margin-bottom: .75rem; }
.footer__col a { font-size: .9375rem; }
.footer__col a:hover, .footer__col a[aria-current] { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; font-size: .875rem; }
.footer__app { color: var(--yellow); font-weight: 600; }
.footer__app:hover { text-decoration: underline; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); background: var(--g900); color: #fff; padding: .5rem 1rem; border-radius: 9999px; font-size: .875rem; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .topbar__mail, .topbar__sched { display: none; }
  .logo img { height: 1.875rem; }
  .back span { display: none; }
  .hero { padding-block: 2rem 1.75rem; }
  section { padding-block: 1.75rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
