/* Paleta alineada con https://pki.digitelts.es/css/custom.css (--themecolor, --theme1, etc.) */
:root {
  --bg: #f6f6f6;
  --surface: #ffffff;
  --text: #232d41;
  --muted: #777777;
  --border: #f0f2f6;
  --brand: #00a19b;
  --brand-2: #232d41;
  --focus-ring: rgba(0, 161, 155, 0.45);
  --container: 1100px;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.header-inner {
  padding: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}

.logo-slot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 160px;
  min-height: 48px;
}

.logo-slot img {
  max-height: 48px;
  width: auto;
  max-width: 200px;
  vertical-align: middle;
}

.page-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 700;
  color: var(--brand-2);
  line-height: 1.25;
  text-align: center;
}

.top-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.4rem 0.6rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: 16px;
  padding-right: 16px;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  display: inline-block;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.top-nav a:hover {
  color: var(--brand);
  border-color: rgba(0, 161, 155, 0.35);
  text-decoration: none;
}

.top-nav a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.site-main {
  padding: 1.75rem 0 3rem;
}

.service-block {
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.service-block h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: var(--brand-2);
  line-height: 1.3;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.tab-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.tab-heading button {
  display: block;
  margin: 0;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
}

.tab-heading button:hover {
  color: var(--brand);
  border-color: rgba(0, 161, 155, 0.35);
}

.tab-heading button[aria-selected="true"] {
  color: var(--surface);
  background: var(--brand);
  border-color: var(--brand);
}

.tab-heading button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.tabpanels {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.tabpanel[hidden] {
  display: none !important;
}

.tabpanel h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.tabpanel h4:first-child {
  margin-top: 0;
}

.tabpanel h5 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.tabpanel ul {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.25rem;
}

.tabpanel > ul:first-child {
  margin-top: 0;
}

.status-desactivado {
  color: #c62828;
  font-weight: 700;
}

@media (max-width: 640px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .tablist {
    flex-direction: column;
  }

  .tab-heading button {
    width: 100%;
  }
}
