/* Green Group Canarias - Portal cliente */
:root {
  --ggc-primary: #00A86B;
  --ggc-primary-dark: #008955;
  --ggc-secondary: #1E3A5F;
  --ggc-accent: #FFA726;
  --ggc-surface: #ffffff;
  --ggc-surface-alt: #f6f8f7;
  --ggc-border: #e4e9ec;
  --ggc-text: #17263a;
  --ggc-text-muted: #6c7a89;
  --ggc-radius: 12px;
  --ggc-shadow: 0 2px 8px rgba(23, 38, 58, 0.06);
}

.ggc-portal-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--ggc-surface-alt);
  color: var(--ggc-text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.ggc-sidebar {
  background: var(--ggc-surface);
  border-right: 1px solid var(--ggc-border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.ggc-brand {
  margin-bottom: 28px;
}

.ggc-brand img {
  height: 64px;
  width: auto;
  display: block;
}

.ggc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ggc-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ggc-text);
  text-decoration: none;
  font-weight: 500;
  transition: background 120ms ease;
}

.ggc-nav a:hover,
.ggc-nav a.active {
  background: rgba(0, 168, 107, 0.08);
  color: var(--ggc-primary);
}

.ggc-sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--ggc-border);
  font-size: 13px;
  color: var(--ggc-text-muted);
}

.ggc-sidebar-footer .ggc-user {
  margin: 0 0 8px;
  font-weight: 500;
  color: var(--ggc-text);
}

.ggc-main {
  padding: 40px;
  max-width: 1200px;
  width: 100%;
}

.ggc-portal-home .ggc-hero h1 {
  font-size: 32px;
  margin: 0 0 8px;
  color: var(--ggc-secondary);
}

.ggc-lead {
  color: var(--ggc-text-muted);
  margin: 0 0 32px;
  font-size: 16px;
}

.ggc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.ggc-card {
  display: block;
  background: var(--ggc-surface);
  border: 1px solid var(--ggc-border);
  border-radius: var(--ggc-radius);
  padding: 24px;
  text-decoration: none;
  color: var(--ggc-text);
  box-shadow: var(--ggc-shadow);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.ggc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 38, 58, 0.10);
  border-color: var(--ggc-primary);
}

.ggc-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.ggc-card h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--ggc-secondary);
}

.ggc-card p {
  margin: 0;
  color: var(--ggc-text-muted);
  font-size: 14px;
}

.ggc-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.ggc-page-header h1 {
  font-size: 28px;
  margin: 0;
  color: var(--ggc-secondary);
  flex: 1;
}

.ggc-back {
  color: var(--ggc-text-muted);
  text-decoration: none;
  font-size: 14px;
}

.ggc-back:hover { color: var(--ggc-primary); }

.ggc-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.ggc-btn-primary {
  background: var(--ggc-primary);
  color: #fff;
}

.ggc-btn-primary:hover {
  background: var(--ggc-primary-dark);
  color: #fff;
}

.ggc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ggc-surface);
  border-radius: var(--ggc-radius);
  overflow: hidden;
  box-shadow: var(--ggc-shadow);
}

.ggc-table th,
.ggc-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ggc-border);
  font-size: 14px;
}

.ggc-table th {
  background: var(--ggc-surface-alt);
  font-weight: 600;
  color: var(--ggc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.ggc-table tr:last-child td { border-bottom: none; }

.ggc-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--ggc-surface-alt);
  color: var(--ggc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ggc-badge-active,
.ggc-badge-entregado,
.ggc-badge-garantia_activa,
.ggc-badge-en_om,
.ggc-badge-aceptado,
.ggc-badge-resuelta,
.ggc-badge-cerrada,
.ggc-badge-paid,
.ggc-badge-success { background: rgba(0, 168, 107, 0.14); color: var(--ggc-primary); }

.ggc-badge-abierta,
.ggc-badge-en_instalacion,
.ggc-badge-en_reparacion,
.ggc-badge-puesta_en_marcha,
.ggc-badge-calculando,
.ggc-badge-en_diagnostico { background: rgba(255, 167, 38, 0.16); color: var(--ggc-accent); }

.ggc-badge-cancelado,
.ggc-badge-rechazado,
.ggc-badge-cancelada,
.ggc-badge-overdue { background: rgba(220, 53, 69, 0.12); color: #dc3545; }

.ggc-kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.ggc-kv dt {
  color: var(--ggc-text-muted);
  font-weight: 500;
}

.ggc-kv dd { margin: 0; }

.ggc-install-card {
  background: var(--ggc-surface);
  border: 1px solid var(--ggc-border);
  border-radius: var(--ggc-radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--ggc-shadow);
}

.ggc-install-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ggc-install-head h2 {
  margin: 0;
  color: var(--ggc-secondary);
  font-size: 20px;
}

.ggc-empty,
.ggc-coming-soon {
  background: var(--ggc-surface);
  padding: 48px;
  border-radius: var(--ggc-radius);
  text-align: center;
  color: var(--ggc-text-muted);
  border: 1px dashed var(--ggc-border);
}

.ggc-coming-soon h2 {
  color: var(--ggc-secondary);
  margin-bottom: 12px;
}

.ggc-docs {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.ggc-docs li {
  background: var(--ggc-surface);
  padding: 14px 18px;
  border: 1px solid var(--ggc-border);
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.text-muted { color: var(--ggc-text-muted); }
.text-end { text-align: right; }

@media (max-width: 820px) {
  .ggc-portal-shell { grid-template-columns: 1fr; }
  .ggc-sidebar { flex-direction: row; align-items: center; overflow-x: auto; gap: 16px; padding: 12px; }
  .ggc-brand { margin-bottom: 0; }
  .ggc-brand img { height: 40px; }
  .ggc-nav { flex-direction: row; }
  .ggc-sidebar-footer { display: none; }
  .ggc-main { padding: 20px; }
}
