:root {
  --dc-blue-950: #031f3a;
  --dc-blue-900: #073b6f;
  --dc-blue-800: #07528f;
  --dc-blue-700: #0868ad;
  --dc-blue-100: #e8f2f9;
  --dc-blue-50: #f3f8fc;
  --dc-red: #d92832;
  --dc-red-dark: #b71d27;
  --dc-yellow: #f4c542;
  --dc-orange: #f58634;
  --dc-orange-dark: #c96a1f;
  --dc-orange-darker: #a85618;
  --dc-orange-light: #fbb88a;
  --dc-orange-bg: #fff5ed;
  --dc-orange-bg-deep: #ffe8d6;
  --dc-green: #16856b;
  --dc-ink: #172331;
  --dc-muted: #5d6b79;
  --dc-border: #dbe4eb;
  --dc-surface: #ffffff;
  --dc-bg: #f6f9fb;
  --dc-radius: 18px;
  --dc-shadow-sm: 0 8px 30px rgba(3, 31, 58, 0.08);
  --dc-shadow: 0 20px 50px rgba(3, 31, 58, 0.13);
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Montserrat", var(--font-body);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  color: var(--dc-ink);
  background: var(--dc-surface);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky;
  z-index: 1025;
  top: -38px;
}

img {
  max-width: 100%;
}

a {
  color: var(--dc-blue-700);
}

h1,
h2,
h3 {
  color: var(--dc-blue-950);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--dc-blue-950);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #f5b700 !important;
  outline-offset: 3px;
}

.service-bar {
  position: relative;
  z-index: 1030;
  min-height: 38px;
  display: flex;
  align-items: center;
  color: #dce9f4;
  background: var(--dc-blue-950);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.service-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.service-bar a {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.service-bar a:hover {
  text-decoration: underline;
}

.service-bar .dropdown-toggle::after {
  margin-left: 0.4em;
  vertical-align: 0.15em;
}

.service-bar .dropdown-menu {
  z-index: 1035;
  font-size: 0.85rem;
  min-width: 12rem;
  padding: 0.35rem 0;
  border: 1px solid var(--dc-border);
  background: var(--dc-surface);
  box-shadow: var(--dc-shadow-sm);
}

.service-bar .dropdown-item {
  color: var(--dc-ink);
  font-weight: 600;
}

.service-bar .dropdown-item:hover,
.service-bar .dropdown-item:focus {
  color: var(--dc-blue-800);
  background: var(--dc-blue-50);
  text-decoration: none;
}

.service-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-social a {
  width: 1.55rem;
  height: 1.55rem;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0.92;
}

.service-social a:hover,
.service-social a:focus-visible {
  text-decoration: none;
  opacity: 1;
}

.navbar {
  z-index: 1025;
  min-height: 84px;
  padding-block: 0.5rem;
  border-bottom: 1px solid rgba(3, 31, 58, 0.09);
  box-shadow: 0 5px 20px rgba(3, 31, 58, 0.04);
}

#mainNav {
  padding-top: calc(0.5rem + 7px);
}

#mainNav::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: #ff4d00;
  pointer-events: none;
}

.navbar-brand {
  padding: 0;
}

.navbar-brand img {
  display: block;
  width: 210px;
  height: auto;
}

.navbar-nav {
  gap: 0.15rem;
}

.navbar .nav-link {
  position: relative;
  padding: 0.7rem 0.64rem !important;
  color: #334454;
  font-size: 0.88rem;
  font-weight: 700;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  bottom: 0.4rem;
  left: 0.65rem;
  height: 2px;
  background: var(--dc-red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--dc-blue-800);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  padding: 0.5rem;
  border-color: var(--dc-border);
}

.emergency-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  color: #fff;
  background: var(--dc-red);
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(217, 40, 50, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.emergency-btn:hover {
  color: #fff;
  background: var(--dc-red-dark);
  transform: translateY(-1px);
}

.emergency-number {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.hero-section,
.hero-section .carousel-item {
  position: relative;
  min-height: clamp(540px, 68vh, 720px);
}

.hero-section .carousel-inner {
  background: #ff4d00;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(234, 68, 0, 0.96) 0%, rgba(255, 77, 0, 0.9) 40%, rgba(255, 106, 0, 0.45) 72%, rgba(255, 120, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(220, 50, 0, 0.35), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: clamp(540px, 68vh, 720px);
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.hero-copy {
  width: min(670px, 74%);
  color: #fff;
  text-shadow: 0 2px 12px rgba(120, 30, 0, 0.35);
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 650px;
  margin: 1rem 0 1.25rem;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 1.04;
}

.hero-copy p {
  max-width: 640px;
  margin-bottom: 2rem;
  color: #fff;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.btn {
  --bs-btn-font-weight: 700;
  --bs-btn-border-radius: 9px;
  --bs-btn-padding-x: 1.15rem;
  --bs-btn-padding-y: 0.68rem;
}

.btn-lg {
  --bs-btn-padding-x: 1.45rem;
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-font-size: 0.98rem;
}

.btn-primary {
  --bs-btn-bg: var(--dc-blue-700);
  --bs-btn-border-color: var(--dc-blue-700);
  --bs-btn-hover-bg: var(--dc-blue-800);
  --bs-btn-hover-border-color: var(--dc-blue-800);
  --bs-btn-active-bg: var(--dc-blue-900);
  --bs-btn-active-border-color: var(--dc-blue-900);
}

.hero-section .btn-primary {
  --bs-btn-color: #c2410c;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: #7c2d12;
  --bs-btn-hover-bg: #ffedd5;
  --bs-btn-hover-border-color: #ffedd5;
  --bs-btn-active-color: #7c2d12;
  --bs-btn-active-bg: #fed7aa;
  --bs-btn-active-border-color: #fed7aa;
}

.carousel-control-prev,
.carousel-control-next {
  width: 6%;
}

.carousel-indicators {
  bottom: 1.7rem;
  gap: 0.45rem;
  margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
  width: 34px;
  height: 4px;
  margin: 0;
  border: 0;
  border-radius: 10px;
}

.carousel-toggle {
  position: absolute;
  z-index: 5;
  right: max(1rem, calc((100% - 1320px) / 2));
  bottom: 1.25rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}

.carousel-toggle:hover {
  background: rgba(0, 0, 0, 0.65);
}

.status-section {
  position: relative;
  z-index: 10;
  background: linear-gradient(to bottom, var(--dc-bg) 65%, #fff 65%);
}

.status-section .container {
  position: relative;
  transform: translateY(-1.5rem);
}

.demo-note {
  position: absolute;
  z-index: 2;
  top: -2rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  color: #475767;
  background: #fff;
  border-radius: 8px 8px 0 0;
  font-size: 0.73rem;
  font-weight: 700;
}

.status-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) minmax(350px, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1.55rem 1.8rem;
  background: #fff;
  border-top: 5px solid var(--dc-yellow);
  border-radius: var(--dc-radius);
  box-shadow: var(--dc-shadow);
}

.status-main {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.alert-symbol {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  color: #6f5500;
  background: #fff6d7;
  border-radius: 14px;
  font-size: 1.55rem;
}

.status-kicker {
  color: var(--dc-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-main h2 {
  margin: 0.1rem 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
}

.status-main p {
  margin: 0;
  color: var(--dc-muted);
  font-size: 0.88rem;
}

.status-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-right: 1px solid var(--dc-border);
  border-left: 1px solid var(--dc-border);
}

.status-data div {
  padding: 0 1.2rem;
}

.status-data div + div {
  border-left: 1px solid var(--dc-border);
}

.status-data span,
.status-data strong {
  display: block;
}

.status-data span {
  margin-bottom: 0.18rem;
  color: var(--dc-muted);
  font-size: 0.72rem;
}

.status-data strong {
  color: var(--dc-ink);
  font-size: 0.84rem;
}

.status-data .level-yellow {
  color: #8a6800;
}

.status-data .level-yellow i {
  margin-right: 0.25rem;
  color: var(--dc-yellow);
  font-size: 0.62rem;
}

.section-padding {
  padding: 6.5rem 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-heading.text-center {
  margin-right: auto;
  margin-left: auto;
}

.section-heading h2,
.institutional-section h2,
.training-section h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
}

.section-heading p,
.training-section > .container > .row > div > p {
  color: var(--dc-muted);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  color: var(--dc-blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-label-light {
  color: #9ed5f7;
}

.quick-access {
  padding-top: 4rem;
}

.quick-card {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  color: var(--dc-blue-950);
  background: #fff;
  border: 1px solid var(--dc-border);
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(3, 31, 58, 0.035);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: 0.2s ease;
}

button.quick-card {
  font-family: inherit;
}

.quick-card i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--dc-blue-700);
  background: var(--dc-blue-100);
  border-radius: 50%;
  font-size: 1.45rem;
  transition: 0.2s ease;
}

.quick-card:hover {
  color: var(--dc-blue-900);
  border-color: #a9c7dc;
  box-shadow: var(--dc-shadow-sm);
  transform: translateY(-4px);
}

.quick-card:hover i {
  color: #fff;
  background: var(--dc-blue-700);
}

.institutional-section {
  position: relative;
  background: var(--dc-blue-50);
}

.institutional-visual {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.9) 0 6%, transparent 6.5%),
    linear-gradient(145deg, var(--dc-blue-800), var(--dc-blue-950));
  border-radius: 28px;
  box-shadow: var(--dc-shadow);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: rotate(-8deg) scale(1.2);
}

.institutional-visual::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -120px;
  width: 430px;
  height: 430px;
  border: 80px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.shield-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.95);
  font-size: 9rem;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,.18));
  transform: translate(-50%, -58%);
}

.experience-card {
  position: absolute;
  z-index: 2;
  right: 1.4rem;
  bottom: 1.4rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  color: var(--dc-blue-950);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--dc-shadow-sm);
}

.experience-card strong {
  color: var(--dc-red);
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.experience-card span {
  max-width: 105px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.institutional-section .lead {
  margin-top: 1.2rem;
  color: #37495a;
  font-weight: 500;
}

.institutional-section p:not(.lead) {
  color: var(--dc-muted);
}

.institutional-points {
  display: grid;
  gap: 0.85rem;
  margin: 1.6rem 0;
}

.institutional-points div {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.institutional-points i {
  color: var(--dc-green);
}

.text-link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0;
  color: var(--dc-blue-700);
  background: transparent;
  border: 0;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--dc-blue-950);
}

.text-link i {
  transition: transform 0.2s ease;
}

.text-link:hover i {
  transform: translateX(4px);
}

.recommendations-section {
  background: #fff;
}

.recommendation-card {
  width: 100%;
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  color: var(--dc-ink);
  background: #fff;
  border: 1px solid var(--dc-border);
  border-radius: 14px;
  text-align: left;
  transition: 0.2s ease;
}

.recommendation-card:hover {
  border-color: var(--dc-blue-700);
  box-shadow: var(--dc-shadow-sm);
  transform: translateY(-2px);
}

.recommendation-card .icon-wrap {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--dc-blue-700);
  background: var(--dc-blue-100);
  border-radius: 12px;
  font-size: 1.45rem;
}

.recommendation-card strong,
.recommendation-card small {
  display: block;
}

.recommendation-card strong {
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.recommendation-card small {
  color: var(--dc-muted);
}

.recommendation-card > i {
  color: var(--dc-blue-700);
}

.consultation-section {
  position: relative;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 140, 0, 0.45), transparent 45%),
    radial-gradient(ellipse at 90% 100%, rgba(220, 50, 0, 0.4), transparent 50%),
    linear-gradient(135deg, #ea4400 0%, #ff4d00 50%, #ff6a00 100%);
  border-top: 0;
  border-bottom: 0;
}

.consultation-section .section-label {
  color: #fff;
  opacity: 0.92;
}

.consultation-section .section-heading h2 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(120, 30, 0, 0.3);
}

.consultation-section .section-heading p {
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(120, 30, 0, 0.3);
}

.consultation-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem;
  color: var(--dc-ink);
  background: #fff;
  border: 0;
  border-top: 4px solid #ff4d00;
  border-radius: var(--dc-radius);
  box-shadow: 0 14px 34px rgba(140, 35, 0, 0.22);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.consultation-card:hover {
  color: var(--dc-ink);
  border-top-color: #c2410c;
  box-shadow: 0 20px 44px rgba(140, 35, 0, 0.34);
  transform: translateY(-4px);
}

.consultation-card-sin-enlace {
  cursor: default;
  opacity: 0.92;
}

.consultation-card-sin-enlace:hover {
  transform: none;
  border-top-color: #ff4d00;
  box-shadow: 0 14px 34px rgba(140, 35, 0, 0.22);
}

.consultation-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ff7a00, #ea4400);
  border-radius: 12px;
  font-size: 1.4rem;
  box-shadow: 0 8px 18px rgba(234, 68, 0, 0.35);
}

.consultation-card-icon-fire {
  background: linear-gradient(145deg, #ff6a00, #dc2626);
}

.consultation-card-icon-water {
  background: linear-gradient(145deg, #ff9500, #ea4400);
}

.consultation-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
}

.consultation-card h3 {
  margin: 0;
  color: #9a3412;
  font-size: 1.02rem;
  line-height: 1.25;
}

.consultation-card p {
  flex: 1;
  margin: 0;
  color: #5c4033;
  font-size: 0.88rem;
  line-height: 1.5;
}

.consultation-card-meta {
  color: #c2410c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.consultation-card-meta a {
  color: #c2410c;
  text-decoration: none;
}

.consultation-card-meta a:hover {
  color: #9a3412;
  text-decoration: underline;
}

.consultation-meta-sep {
  color: #b07a4a;
  font-weight: 400;
  text-transform: none;
}

.consultation-card-cta-link {
  text-decoration: none;
}

.consultation-card-cta-link:hover {
  text-decoration: none;
}

.consultation-card-icon i {
  line-height: 1;
}

.consultation-semaphore {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  background: #fff;
  border: 1px solid var(--dc-border);
  border-radius: 99px;
}

.sem-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  opacity: 0.35;
}

.sem-dot.sem-green {
  background: #48a676;
  opacity: 1;
}

.sem-dot.sem-yellow {
  background: #f4c542;
}

.sem-dot.sem-orange {
  background: #e8873a;
}

.sem-dot.sem-red {
  background: #df4a3e;
}

.consultation-card-cta {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.35rem;
  color: #c2410c;
  font-size: 0.82rem;
  font-weight: 800;
}

.consultation-card:hover .consultation-card-cta {
  color: #9a3412;
}

.consultation-card-cta i {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.consultation-card:hover .consultation-card-cta i {
  transform: translate(2px, -2px);
}

.brigade-section {
  background: var(--dc-bg);
}

.brigade-panel {
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #dcebf5;
  background:
    linear-gradient(135deg, rgba(22, 133, 107, 0.55), transparent 62%),
    linear-gradient(118deg, #0c5549 0%, #084636 52%, #063528 100%);
  border-radius: 28px;
  box-shadow: var(--dc-shadow);
}

.brigade-panel h2 {
  margin: 0.35rem 0 0.75rem;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
}

.brigade-panel .section-label-light {
  color: #9ee4cf;
}

.brigade-panel .col-lg-5 > p,
.brigade-body,
.brigade-body p {
  color: #c5ddd6;
  font-size: 1.05rem;
}

.brigade-body p + p {
  margin-bottom: 1.5rem;
}

.brigade-body p:last-child {
  margin-bottom: 0;
}

.brigade-activities-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.brigade-activities-heading h3 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brigade-panel .brigade-activities-heading .availability {
  padding: 0.3rem 0.65rem;
  color: #064a3a;
  background: #b8f0dc;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
}

.brigade-activities {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 40px rgba(2, 20, 16, 0.28);
}

.brigade-activities article {
  grid-template-columns: 74px 1fr;
}

.brigade-panel .activity-tag {
  display: block;
  margin-bottom: 0.2rem;
  padding: 0;
  color: var(--dc-green);
  background: transparent;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brigade-activity-link {
  color: inherit;
  text-decoration: none;
}

.brigade-activity-link:hover {
  color: var(--dc-blue-800);
  text-decoration: underline;
}

.text-link-light {
  color: #b8f0dc;
  font-weight: 700;
}

.text-link-light:hover {
  color: #fff;
}

.brigade-activities-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
}

.brigade-copy {
  padding: clamp(2.5rem, 6vw, 5rem);
  background:
    linear-gradient(120deg, rgba(7, 82, 143, .45), transparent 65%),
    var(--dc-blue-950);
}

.brigade-copy h2 {
  margin: 0.4rem 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.brigade-copy > p {
  max-width: 680px;
  margin-bottom: 2rem;
  color: #c8d9e7;
  font-size: 1.08rem;
}

.brigade-panel .brigade-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.brigade-panel .brigade-stats div {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.brigade-panel .brigade-stats i {
  flex-shrink: 0;
  color: #7fd4b8;
  font-size: 1.25rem;
  line-height: 1;
}

.brigade-panel .brigade-stats span,
.brigade-panel .brigade-stats strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.25;
}

.brigade-panel .brigade-stats strong {
  color: #fff;
}

.brigade-panel .brigade-stats span {
  color: #a8c9bf;
}

.fire-index {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  color: #fff;
  background: #0a4b69;
  text-align: center;
}

.fire-index > p {
  margin: 0.8rem 0 1.5rem;
  font-weight: 700;
}

.demo-badge {
  padding: 0.35rem 0.7rem;
  color: #d7edf7;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
}

.gauge {
  position: relative;
  width: 230px;
  height: 115px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.gauge::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 24px solid transparent;
  border-top-color: #df4a3e;
  border-right-color: #efa83a;
  border-bottom: 0;
  border-left-color: #48a676;
  border-radius: 230px 230px 0 0;
  transform: rotate(0deg);
}

.gauge::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 5px;
  height: 85px;
  background: #fff;
  border-radius: 10px;
  transform: translateX(-50%) rotate(12deg);
  transform-origin: bottom;
}

.gauge-value {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 50%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  transform: translateX(-50%);
}

.fire-index small {
  color: #bad5e2;
}

.news-section {
  background: var(--dc-bg);
}

.heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.news-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  transition: 0.25s ease;
}

.news-card:hover {
  box-shadow: var(--dc-shadow-sm);
  transform: translateY(-4px);
}

.news-visual {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.88);
  font-size: 4rem;
}

.news-visual-training {
  background: linear-gradient(145deg, #0d7394, #084968);
}

.news-visual-storm {
  background: linear-gradient(145deg, #4b6580, #1e344b);
}

.news-visual-field {
  background: linear-gradient(145deg, #23836c, #145142);
}

.news-body {
  padding: 1.5rem;
}

.news-category {
  display: inline-block;
  margin-right: 0.55rem;
  padding: 0.25rem 0.55rem;
  color: var(--dc-blue-800);
  background: var(--dc-blue-100);
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.news-body time {
  color: var(--dc-muted);
  font-size: 0.75rem;
}

.news-body h3 {
  margin: 1rem 0 0.65rem;
  font-size: 1.22rem;
  line-height: 1.35;
}

.news-body p {
  color: var(--dc-muted);
  font-size: 0.92rem;
}

.news-body button {
  padding: 0;
  color: var(--dc-blue-700);
  background: transparent;
  border: 0;
  font-size: 0.88rem;
  font-weight: 800;
}

.training-section {
  background: #fff;
}

.visit-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--dc-blue-50);
  border-left: 4px solid var(--dc-blue-700);
  border-radius: 8px;
}

.visit-cta > i {
  color: var(--dc-blue-700);
  font-size: 1.5rem;
}

.visit-cta strong,
.visit-cta span {
  display: block;
}

.visit-cta strong {
  font-size: 0.9rem;
}

.visit-cta span {
  color: var(--dc-muted);
  font-size: 0.78rem;
}

.training-list {
  overflow: hidden;
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius);
  box-shadow: var(--dc-shadow-sm);
}

.training-list article {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.25rem;
  background: #fff;
}

.training-list article + article {
  border-top: 1px solid var(--dc-border);
}

.training-list time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--dc-blue-800);
  background: var(--dc-blue-50);
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
}

.training-list time strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.training-list h3 {
  margin: 0.15rem 0 0.2rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.training-list p {
  margin: 0;
  color: var(--dc-muted);
  font-size: 0.8rem;
}

.availability {
  color: var(--dc-green);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.availability-warning {
  color: #a35a00;
}

.contact-section {
  padding: 0 0 5.5rem;
  background: linear-gradient(#fff 50%, var(--dc-blue-950) 50%);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #d8e6f1;
  background: var(--dc-blue-800);
  border-radius: 24px;
  box-shadow: var(--dc-shadow);
}

.contact-panel h2 {
  margin: 0.35rem 0 0.6rem;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.contact-panel p {
  margin: 0;
  color: #c9e0ee;
}

.contact-grid {
  display: grid;
  gap: 0.7rem;
}

.contact-grid a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.contact-grid a:hover {
  background: rgba(255,255,255,.1);
}

.contact-grid i {
  font-size: 1.25rem;
  text-align: center;
}

.contact-grid small,
.contact-grid span {
  display: block;
}

.contact-grid small {
  color: #b9d3e5;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer {
  padding: 1rem 0 2rem;
  color: #aebfce;
  background: var(--dc-blue-950);
}

.footer-dc-logo {
  width: 230px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.92;
}

.site-footer p {
  max-width: 380px;
  font-size: 0.86rem;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: 1.15rem;
  text-decoration: none;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--dc-blue-950);
  background: #fff;
  text-decoration: none;
}

.site-footer h2 {
  margin: 0.4rem 0 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer li a {
  color: #aebfce;
  font-size: 0.86rem;
  text-decoration: none;
}

.site-footer li a:hover {
  color: #fff;
}

.footer-government {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-government > img {
  width: 220px;
  height: auto;
  margin-bottom: 1rem;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.85;
}

.footer-emergency {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.footer-emergency strong {
  color: #ff5d66;
  font-family: var(--font-display);
  font-size: 2rem;
}

.footer-emergency span {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #fff;
  font-weight: 800;
}

.mobile-emergency {
  display: none;
}

.modal-content {
  overflow: hidden;
  border: 0;
  border-radius: var(--dc-radius);
  box-shadow: var(--dc-shadow);
}

.modal-header {
  padding: 1.5rem;
  background: var(--dc-blue-50);
  border-bottom-color: var(--dc-border);
}

.alerta-home-open .modal-backdrop {
  background: #031f3a;
  opacity: 0.78 !important;
}

#alertaHomeModal .modal-dialog {
  max-width: calc(100% - 1.25rem);
  margin: 0.65rem auto;
  max-height: calc(100% - 1.3rem);
}

@media (min-width: 768px) {
  #alertaHomeModal .modal-dialog {
    max-width: 42rem;
    margin: 1.75rem auto;
    max-height: calc(100% - 3.5rem);
  }
}

@media (min-width: 992px) {
  #alertaHomeModal .modal-dialog {
    max-width: 46rem;
  }
}

.alerta-home-modal {
  --alert-bg: #b91c1c;
  --alert-bg-dark: #7f1d1d;
  --alert-btn-text: #991b1b;
}

.alerta-home-modal.alerta-home--orange {
  --alert-bg: #f25500;
  --alert-bg-dark: #c2410c;
  --alert-btn-text: #9a3412;
}

.alerta-home-modal.alerta-home--green {
  --alert-bg: #15803d;
  --alert-bg-dark: #14532d;
  --alert-btn-text: #166534;
}

.alerta-home-modal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 1.3rem);
  color: #fff;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.16), transparent 45%),
    linear-gradient(160deg, var(--alert-bg) 0%, var(--alert-bg-dark) 100%);
}

@media (min-width: 768px) {
  .alerta-home-modal .modal-content {
    max-height: calc(100vh - 3.5rem);
  }
}

.alerta-home-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
}

.alerta-home-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2.25rem 2rem 1.5rem;
  padding-right: 3.25rem;
}

.alerta-home-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.9rem;
}

.alerta-home-modal.show .alerta-home-icon {
  animation: alerta-home-pulse 1.8s ease-out infinite;
}

@keyframes alerta-home-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.alerta-home-label {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alerta-home-title {
  margin: 0.85rem 0 0.6rem;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.15;
}

.alerta-home-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 600;
}

.alerta-home-meta i {
  margin-right: 0.3rem;
  color: #fff;
}

.alerta-home-copy {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

.alerta-home-copy p {
  margin: 0 0 0.75rem;
  color: #fff;
}

.alerta-home-copy p:last-child {
  margin-bottom: 0;
}

.alerta-home-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.2rem;
  color: #fff;
  font-size: 0.93rem;
}

.alerta-home-list:empty {
  display: none;
}

.alerta-home-list li::marker {
  color: #fff;
}

#alertaHomeModal .modal-footer.alerta-home-footer {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem 1.5rem;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#alertaHomeModal .modal-footer.alerta-home-footer p {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
}

#alertaHomeModal .modal-footer.alerta-home-footer strong {
  color: #fff;
}

#alertaHomeModal .alerta-home-footer .btn-light {
  color: var(--alert-btn-text);
  font-weight: 800;
}

@media (max-width: 575.98px) {
  #alertaHomeModal .modal-dialog {
    max-width: calc(100% - 1rem);
    margin: 0.5rem auto;
    max-height: calc(100% - 1rem);
  }

  .alerta-home-modal .modal-content {
    max-height: calc(100vh - 1rem);
  }

  .alerta-home-body {
    padding: 1.75rem 1.2rem 1.1rem;
    padding-right: 2.75rem;
  }

  .alerta-home-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0.85rem;
    font-size: 1.55rem;
  }

  .alerta-home-title {
    font-size: 1.28rem;
  }

  .alerta-home-copy,
  .alerta-home-list {
    font-size: 0.92rem;
  }

  #alertaHomeModal .modal-footer.alerta-home-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem 1.15rem;
  }

  #alertaHomeModal .modal-footer.alerta-home-footer p {
    font-size: 0.86rem;
  }

  #alertaHomeModal .alerta-home-footer .btn-light {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alerta-home-modal.show .alerta-home-icon {
    animation: none;
  }
}

.modal-label {
  color: var(--dc-blue-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body .intro {
  color: var(--dc-muted);
}

.modal-body ul,
.modal-body ol {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.3rem;
}

.modal-body li::marker {
  color: var(--dc-blue-700);
  font-weight: 800;
}

.modal-footer {
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #fbfcfd;
}

.modal-footer p {
  margin: 0;
  color: var(--dc-red-dark);
}

.toast {
  border: 0;
  box-shadow: var(--dc-shadow);
}

@media (max-width: 1199.98px) {
  .navbar-brand img {
    width: 185px;
  }

  .navbar .nav-link {
    padding-inline: 0.45rem !important;
    font-size: 0.82rem;
  }

  .status-card {
    grid-template-columns: 1fr auto;
  }

  .status-data {
    grid-column: 1 / -1;
    grid-row: 2;
    border: 0;
  }

  .status-data div:first-child {
    padding-left: 0;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    min-height: 76px;
  }

  .navbar-collapse {
    margin: 0.75rem -0.75rem -0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--dc-border);
  }

  .navbar .nav-link {
    padding: 0.65rem 0.5rem !important;
  }

  .navbar .nav-link::after {
    right: auto;
    bottom: 0.5rem;
    left: 0.5rem;
    width: 26px;
  }

  .hero-copy {
    width: 85%;
  }

  .status-card {
    gap: 1.25rem;
  }

  .institutional-visual {
    min-height: 370px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .fire-index {
    min-height: 380px;
  }
}

@media (max-width: 767.98px) {
  html {
    scroll-padding-top: 82px;
  }

  header {
    top: -34px;
  }

  body {
    padding-bottom: 66px;
  }

  .section-padding {
    padding: 4.5rem 0;
  }

  .service-bar {
    min-height: 34px;
  }

  .service-links {
    width: 100%;
    justify-content: center;
  }

  .navbar-brand img {
    width: 165px;
  }

  .hero-section,
  .hero-section .carousel-item,
  .hero-content {
    min-height: 590px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(234, 68, 0, 0.95), rgba(255, 77, 0, 0.85)), linear-gradient(0deg, rgba(220, 50, 0, 0.45), transparent);
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .carousel-toggle {
    right: 1rem;
  }

  .status-section .container {
    transform: translateY(-1rem);
  }

  .demo-note {
    top: -1.85rem;
  }

  .status-card {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .status-data {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .status-data div,
  .status-data div:first-child {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--dc-border);
  }

  .status-data div + div {
    border-left: 0;
  }

  .quick-access {
    padding-top: 3rem;
  }

  .quick-card {
    min-height: 130px;
    font-size: 0.84rem;
  }

  .heading-row {
    display: block;
  }

  .training-list article {
    grid-template-columns: 62px 1fr;
  }

  .training-list article .btn {
    grid-column: 2;
    justify-self: start;
  }

  .footer-government {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-emergency {
    position: fixed;
    z-index: 1040;
    right: 0;
    bottom: 0;
    left: 0;
    height: 64px;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--dc-red);
    box-shadow: 0 -8px 24px rgba(0,0,0,.18);
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-emergency i {
    font-size: 1.25rem;
  }

  .mobile-emergency strong {
    margin-right: 0.2rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
  }
}

@media (max-width: 575.98px) {
  .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  .hero-content {
    padding-top: 2rem;
  }

  .hero-copy .btn {
    width: 100%;
  }

  .demo-note {
    right: 0.75rem;
    font-size: 0.64rem;
  }

  .status-main {
    align-items: flex-start;
  }

  .alert-symbol {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .institutional-visual {
    min-height: 300px;
  }

  .shield-mark {
    font-size: 7rem;
  }

  .recommendation-card {
    min-height: 100px;
  }

  .brigade-copy {
    padding: 2rem 1.4rem;
  }

  .brigade-stats {
    display: grid;
    gap: 1rem;
  }

  .visit-cta {
    grid-template-columns: auto 1fr;
  }

  .visit-cta .btn {
    grid-column: 2;
    justify-self: start;
  }

  .contact-panel {
    padding: 2rem 1.25rem;
  }

  .contact-grid a {
    grid-template-columns: 34px minmax(0, 1fr);
    overflow-wrap: anywhere;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
