/* InforClever · Estado de servicios — estética alineada con clientes.inforclever.es */
:root {
  --ic-navy: #002278;
  --ic-sky: #4faeee;
  --ic-blue: #0864c7;
  --ic-blue-dark: #054c98;
  --ic-cyan: #089ec7;
  --ic-ice: #e0f7fa;
  --ic-ink: #1d1e20;
  --ic-muted: #56585e;
  --ic-line: #e4e7ec;
  --ic-bg: #f5f8fc;
  --ic-white: #ffffff;
  --ic-ok: #12805c;
  --ic-warn: #b25e09;
  --ic-danger: #c0362c;
  --ic-gradient: linear-gradient(135deg, var(--ic-navy), var(--ic-sky));
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 34, 120, .08);
  --font-head: 'Roboto', sans-serif;
  --font-body: 'DM Sans', 'Roboto', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ic-ink);
  background: var(--ic-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; margin: 0 0 .5em; line-height: 1.15; }
p { line-height: 1.55; margin: 0 0 1em; }
a { color: var(--ic-blue); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ic-sky); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -40px; z-index: 100;
  background: var(--ic-navy); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 500 15px var(--font-head);
  padding: 12px 28px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ic-blue); color: #fff; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .1s, box-shadow .2s;
}
.btn:hover { background: var(--ic-blue-dark); box-shadow: 0 6px 18px rgba(8, 100, 199, .25); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 16px; font-size: 14px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: #fff; border-bottom: 1px solid var(--ic-line);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ic-ink); }
.logo img { height: 56px; width: auto; display: block; }
.logo > span { font: 500 13px var(--font-head); color: var(--ic-muted); border-left: 1px solid var(--ic-line); padding-left: 12px; }
.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.nav a {
  font: 400 15px var(--font-head); white-space: nowrap; color: var(--ic-ink); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--ic-ink); }
.nav .nav-cta {
  border-bottom: 0 !important;
  color: #fff;
  padding: 7px 16px;
}
.nav .nav-cta:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; color: var(--ic-ink); }

.hero { background: var(--ic-gradient); color: #fff; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 96px; }
.hero-kicker {
  font: 500 13px var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  opacity: .85; margin: 0 0 10px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }
.hero p { font-size: 18px; opacity: .9; max-width: 640px; }
.hero-updated { font-size: 14px !important; opacity: .8 !important; margin: 16px 0 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.main { margin-top: -56px; padding-bottom: 64px; flex: 1; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 20px; flex-wrap: wrap; }
.section-title h2 { font-size: 28px; margin: 0; }
.section-note { margin: 0; color: var(--ic-muted); font-size: 14px; }
.block:first-of-type .section-title { margin-top: 32px; }

.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(0, 34, 120, .05); padding: 28px;
}
.main > .card:first-child { position: relative; }
.service-group + .service-group { margin-top: 16px; }
.group-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ic-muted); margin: 0 0 8px; font-weight: 600;
}

.banner-card { display: flex; align-items: center; gap: 20px; padding: 28px 32px; }
.status-banner h2 { margin: 0 0 4px; font-size: 24px; }
.status-banner p { margin: 0; color: var(--ic-muted); }
.status-banner-icon {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
}
.status-banner-icon::after {
  content: ''; width: 22px; height: 22px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 18%, transparent);
}
.status-banner--operational { border-left: 6px solid var(--ic-ok); }
.status-banner--operational .status-banner-icon { color: var(--ic-ok); background: #e3f6ee; }
.status-banner--degraded { border-left: 6px solid var(--ic-warn); }
.status-banner--degraded .status-banner-icon { color: var(--ic-warn); background: #fff3e0; }
.status-banner--outage { border-left: 6px solid var(--ic-danger); }
.status-banner--outage .status-banner-icon { color: var(--ic-danger); background: #fdecea; }

.service-list { list-style: none; margin: 0; padding: 0; }
.service-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--ic-line);
  flex-wrap: wrap;
}
.service-row:last-child { border-bottom: 0; padding-bottom: 0; }
.service-row:first-child { padding-top: 4px; }
.service-info { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.service-info strong { font: 600 16px var(--font-head); }
.sub { color: var(--ic-muted); font-size: 13px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--font-head);
  text-transform: uppercase; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px;
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: #e3f6ee; color: var(--ic-ok); }
.badge-warn { background: #fff3e0; color: var(--ic-warn); }
.badge-danger { background: #fdecea; color: var(--ic-danger); }
.badge-info { background: var(--ic-ice); color: var(--ic-blue-dark); }
.badge-muted { background: #f0f1f3; color: var(--ic-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--ic-ice); color: var(--ic-blue-dark); white-space: nowrap;
}
.chip-danger { background: #fdecea; color: var(--ic-danger); }
.chip-warn { background: #fff3e0; color: var(--ic-warn); }

.incident + .incident { margin-top: 16px; }
.incident-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.incident-titles h3 { margin: 8px 0 4px; font-size: 20px; }
.incident-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.incident--compact { padding: 20px; }
.incident--compact h3 { font-size: 18px; }
.compact-msg { margin-top: 10px; color: var(--ic-muted); font-size: 15px; }

.timeline { list-style: none; margin: 20px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--ic-line); }
.timeline-item { position: relative; padding: 0 0 20px 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -6px; top: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ic-blue); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ic-line);
}
.timeline-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 6px; }
.timeline-meta time { color: var(--ic-muted); font-size: 13px; }
.timeline-msg { font-size: 15px; line-height: 1.55; }
.timeline-msg a { overflow-wrap: anywhere; }

.empty { text-align: center; padding: 24px 8px; color: var(--ic-muted); margin: 0; }
.empty-card { margin-top: 24px; }

.uptime-compact { display: flex; align-items: center; gap: 8px; flex: 1 1 180px; min-width: 140px; }
.uptime-pct { font: 500 12px var(--font-head); color: var(--ic-muted); white-space: nowrap; }
.uptime-bar {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 1px; height: 22px; flex: 1; min-width: 0;
}
.uptime-seg {
  flex: 1; min-width: 1px; border-radius: 1px; background: #ccead9;
}
.uptime-seg--ok { background: #3bb37a; }
.uptime-seg--maintenance { background: var(--ic-cyan); }
.uptime-seg--degraded { background: #e2a23a; }
.uptime-seg--outage { background: var(--ic-danger); }

.uptime-full { list-style: none; margin: 16px 0 0; padding: 0; }
.uptime-full-row { padding: 12px 0; border-bottom: 1px solid var(--ic-line); }
.uptime-full-row:last-child { border-bottom: 0; }
.uptime-full-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; }
.uptime-bar--full { height: 28px; gap: 2px; }
.uptime-bar--full .uptime-seg { border-radius: 2px; }
.uptime-legend-wrap { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0; }
.leg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ic-muted); }
.leg::before { content: ''; width: 10px; height: 10px; border-radius: 2px; background: #3bb37a; }
.leg-maintenance::before { background: var(--ic-cyan); }
.leg-degraded::before { background: #e2a23a; }
.leg-outage::before { background: var(--ic-danger); }

.history-day { margin-top: 24px; }
.history-date { font-size: 16px; color: var(--ic-muted); margin: 0 0 12px; font-weight: 600; }

.footer { background: #0d141a; color: rgba(255, 255, 255, .75); font-size: 14px; margin-top: auto; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 32px 24px;
  display: grid; gap: 20px 32px;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-logo { height: 28px; width: auto; display: block; margin-bottom: 10px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { margin: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-meta p { margin: 8px 0 0; opacity: .8; }

@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; padding: 10px 16px; gap: 12px; }
  .logo img { height: 44px; }
  .logo > span { display: none; }
  .menu-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 4px; margin: 0; order: 3; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 0; }
  .nav .nav-cta { align-self: flex-start; margin-top: 8px; margin-bottom: 8px; }
  .hero-inner { padding: 36px 16px 84px; }
  .container { padding: 0 16px; }
  .card { padding: 20px; }
  .banner-card { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; padding: 28px 16px; }
  .service-row { align-items: flex-start; }
  .uptime-compact { flex: 1 1 100%; order: 3; }
  .section-title h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .status-banner-icon { width: 44px; height: 44px; }
  .hero h1 { font-size: 28px; }
}
