:root {
  --ink: #102434;
  --muted: #60717d;
  --line: #d7e3e8;
  --surface: #ffffff;
  --soft: #eff7f8;
  --blue: #174b8c;
  --blue-dark: #0b2f63;
  --teal: #087b75;
  --teal-dark: #075f5a;
  --red: #c83e38;
  --gold: #c89545;
  --green: #22764b;
  --shadow: 0 18px 50px rgba(16, 36, 52, 0.14);
  --radius: 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fbfb;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue-dark);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.top-strip {
  min-height: 38px;
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 9px 18px;
  color: #e8f6f7;
  background: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.top-strip a {
  color: #fff;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(215, 227, 232, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 168px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(14, 47, 99, 0.14);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

nav a,
.header-cta,
.button,
.utility-links a,
.contact-card,
.whatsapp-float,
.agenda-links a,
.specialty-card a {
  text-decoration: none;
}

nav a:hover,
.utility-links a:hover,
.specialty-card a:hover {
  color: var(--teal);
}

.header-cta,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: #fff;
  background: linear-gradient(180deg, #0a8a83, var(--teal-dark));
  box-shadow: 0 10px 24px rgba(8, 123, 117, 0.22);
}

.button.ghost {
  color: var(--blue-dark);
  border-color: var(--line);
  background: #fff;
}

.button.danger {
  color: #fff;
  background: var(--red);
}

.page-title {
  position: relative;
  min-height: 330px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--blue-dark);
}

.page-title img,
.page-title-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-title img {
  object-fit: cover;
}

.page-title-overlay {
  background:
    linear-gradient(90deg, rgba(8, 32, 54, 0.88), rgba(8, 32, 54, 0.6), rgba(8, 32, 54, 0.16)),
    linear-gradient(0deg, rgba(8, 32, 54, 0.42), transparent 55%);
}

.page-title-content {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 74px 0;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-title .eyebrow {
  color: #aee7df;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(44px, 6.6vw, 78px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

h4 {
  margin-bottom: 10px;
  font-size: 19px;
}

p {
  color: var(--muted);
  line-height: 1.66;
}

.utility-links {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px auto 0;
}

.utility-links a {
  min-height: 82px;
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 36, 52, 0.07);
  color: var(--muted);
  font-weight: 780;
}

.utility-links span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.directory-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 6vw, 76px);
  align-items: center;
}

.directory-intro > div > p:last-child {
  font-size: 18px;
}

.intro-media,
.about-panel,
.legal-card,
.contact-card,
.privacy,
.brigade-form,
.brigade-card,
.agenda-panel,
.specialty-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(16, 36, 52, 0.07);
}

.intro-media {
  overflow: hidden;
}

.intro-media img {
  width: 100%;
  height: 270px;
  display: block;
  object-fit: cover;
}

.intro-media div {
  padding: 24px;
}

.directory-section {
  padding-top: 16px;
}

.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: end;
  margin-bottom: 34px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c7d7dd;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 123, 117, 0.14);
}

.directory-groups {
  display: grid;
  gap: 42px;
}

.directory-group {
  display: grid;
  gap: 18px;
}

.directory-group > h3 {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border-left: 4px solid var(--red);
  color: var(--blue-dark);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 36, 52, 0.06);
  text-transform: uppercase;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.specialty-card {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.specialty-card:hover,
.brigade-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(16, 36, 52, 0.12);
}

.specialty-card span {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.specialty-card p {
  margin-bottom: 0;
}

.specialty-card a {
  align-self: end;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.directory-empty {
  display: none;
  margin-top: 24px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.brigade-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.brigade-list-wrap {
  display: grid;
  gap: 14px;
}

.list-header {
  min-height: 58px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.list-header h3 {
  margin-bottom: 0;
}

.list-header > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-dark);
  font-size: 13px;
  font-weight: 850;
}

.brigade-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.brigade-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brigade-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.brigade-card h3 {
  margin-bottom: 5px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status.por-confirmar {
  background: var(--gold);
}

.status.reprogramada {
  background: var(--red);
}

.status.cerrada {
  background: #53606a;
}

.brigade-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.brigade-meta div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
}

.brigade-meta dt,
dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.brigade-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 780;
}

.brigade-note {
  margin-bottom: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-dark);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.mini-action.primary {
  color: #fff;
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.mini-action.danger {
  color: var(--red);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #b8ccd3;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.band {
  background:
    linear-gradient(135deg, rgba(239, 247, 248, 0.96), rgba(221, 242, 239, 0.96)),
    var(--soft);
}

.agenda-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
  position: relative;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(16, 36, 52, 0.12);
}

.timeline article span {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 4px solid #c7ebe6;
  border-radius: 50%;
  background: var(--teal);
}

.timeline h3,
.timeline p {
  grid-column: 2;
}

.timeline p {
  margin-bottom: 0;
}

.agenda-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.agenda-links {
  display: grid;
  gap: 10px;
}

.agenda-links a {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfb;
}

.agenda-links span,
.helper {
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}

.helper {
  margin-bottom: 0;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.about-panel {
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 248, 0.96)),
    #fff;
}

.about-panel ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.about-panel li {
  padding-left: 24px;
  position: relative;
  color: var(--ink);
  font-weight: 760;
}

.about-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.legal-card {
  padding: 26px;
  border-left: 4px solid var(--red);
}

dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

dd {
  margin: 5px 0 0;
  font-weight: 790;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(26px, 6vw, 76px);
  align-items: start;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: var(--ink);
}

.contact-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: 20px;
}

.privacy {
  padding: clamp(26px, 5vw, 42px);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: #128c7e;
  box-shadow: 0 18px 36px rgba(18, 140, 126, 0.34);
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 58px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 1080px) {
  .specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-intro,
  .workspace-grid,
  .agenda-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .legal-card {
    border-left: 1px solid var(--line);
    border-top: 4px solid var(--red);
  }
}

@media (max-width: 860px) {
  .top-strip,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
  }

  nav {
    justify-content: flex-start;
  }

  .header-cta {
    width: 100%;
  }

  .utility-links,
  .directory-toolbar,
  .brigade-list,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 148px;
  }

  .page-title {
    min-height: 270px;
  }

  h1 {
    font-size: 41px;
  }

  h2 {
    font-size: 31px;
  }

  .specialty-grid,
  .brigade-form {
    grid-template-columns: 1fr;
  }

  .form-actions .button,
  .card-actions .mini-action {
    width: 100%;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}
