/**
 * Estado de servicios — Laooz Studios
 */

.page-status {
  background: #f9fafb;
}

.status-page {
  flex: 1;
}

/* Banner */
.status-banner-wrap {
  background: #151c27;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.status-banner-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 2rem 1.5rem;
}

.status-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.status-breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.status-breadcrumb a:hover {
  color: var(--brand);
}

.status-page-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid transparent;
}

.status-banner--ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
}

.status-banner--warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.status-banner--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.status-banner--maint {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
}

.status-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.status-banner--ok .status-banner-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.status-banner--warn .status-banner-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.status-banner--error .status-banner-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.status-banner-body strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
  color: #fff;
}

.status-banner-body span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Body */
.status-body {
  max-width: 72rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 4rem;
}

.status-summary {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .status-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}

.status-summary-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--laooz-border);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.status-summary-card strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #151c27;
  font-family: var(--font-heading);
}

.status-summary-card span {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Pills */
.status-pill {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-pill--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.status-pill--warn {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.status-pill--error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.status-pill--maint {
  background: rgba(96, 165, 250, 0.12);
  color: #1d4ed8;
}

/* Service groups */
.status-group {
  margin-bottom: 2.5rem;
}

.status-group-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.status-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: #eef2f6;
  color: #64748b;
}

.status-group-icon--is-ok {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.status-group-icon--is-warn {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.status-group-icon--is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.status-group-icon--is-maint {
  background: rgba(96, 165, 250, 0.14);
  color: #1d4ed8;
}

.status-group-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #151c27;
}

.status-pill--soft {
  margin-left: auto;
}

/* Card grid */
.status-card-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .status-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .status-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.status-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid var(--laooz-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #22c55e;
}

.status-card--is-warn::before {
  background: #f59e0b;
}

.status-card--is-error::before {
  background: #ef4444;
}

.status-card--is-maint::before {
  background: #60a5fa;
}

.status-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
  box-shadow: 0 10px 28px rgba(21, 28, 39, 0.08);
}

.status-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.status-card-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.status-card-dot--is-ok {
  animation: status-pulse 2.4s ease-in-out infinite;
}

.status-card-dot--is-warn {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.status-card-dot--is-error {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.status-card-dot--is-maint {
  background: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.05); }
}

.status-card-name {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #151c27;
}

.status-card-name a {
  color: inherit;
  text-decoration: none;
}

.status-card-name a:hover {
  color: var(--link, #15803d);
}

.status-card-desc {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #9ca3af;
  flex: 1;
}

.status-card-foot {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid #f3f4f6;
}

.status-card-note {
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 600;
  color: #374151;
}

.status-card--is-ok .status-card-note {
  color: #15803d;
}

.status-card--is-warn .status-card-note {
  color: #b45309;
}

.status-card--is-error .status-card-note {
  color: #b91c1c;
}

.status-card--is-maint .status-card-note {
  color: #1d4ed8;
}

.status-card-uptime {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #151c27;
  font-family: var(--font-heading);
}

.status-card-uptime-label {
  font-size: 0.72rem;
  color: #9ca3af;
}

/* Incidents */
.status-section-head {
  margin-bottom: 1.25rem;
}

.status-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #151c27;
}

.status-section-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #6b7280;
}

.status-incident {
  margin-bottom: 1rem;
  border: 1px solid var(--laooz-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.status-incident-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}

.status-incident-service {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
}

.status-incident-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #151c27;
}

.status-incident-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

.status-incident-updates {
  margin: 0;
  padding: 0.85rem 1.25rem 1rem;
  list-style: none;
}

.status-incident-update {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.75rem;
  border-left: 2px solid #e5e7eb;
}

.status-incident-update:last-child {
  margin-bottom: 0;
}

.status-incident-time {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  font-family: ui-monospace, monospace;
}

.status-incident-update p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #374151;
}

.status-empty {
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--laooz-border);
  border-radius: 14px;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Subscribe */
.status-subscribe {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(var(--brand-rgb), 0.3);
  border-radius: 16px;
  background: var(--brand-soft);
  text-align: center;
}

.status-subscribe h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #151c27;
}

.status-subscribe p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.status-subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 24rem;
  margin-inline: auto;
}

.status-subscribe-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--laooz-border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
}

.status-subscribe-input:focus {
  outline: none;
  border-color: rgba(var(--brand-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
}

.status-foot-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--laooz-border);
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

.status-foot-note a {
  color: var(--link);
  font-weight: 600;
}
