:root {
  color-scheme: dark;
  --navy: #061532;
  --blue: #163d88;
  --gold: #f5b800;
  --red: #d92830;
  --white: #f7f8fb;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy);
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--white);
}

a {
  color: inherit;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy);
}

.hero__photo,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__photo {
  z-index: -3;
  background: url("assets/estacion-bomberos.jpg") center 42% / cover no-repeat;
  transform: scale(1.025);
  animation: reveal 1.2s ease-out both;
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 14, 37, 0.97) 0%, rgba(4, 18, 47, 0.88) 42%, rgba(4, 18, 47, 0.26) 75%, rgba(3, 11, 28, 0.5) 100%),
    linear-gradient(0deg, rgba(3, 12, 30, 0.9) 0%, transparent 40%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(var(--gold) 0 48%, var(--red) 48% 100%);
}

.topbar,
.content,
footer {
  width: min(100% - 80px, 1360px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.brand span {
  display: grid;
}

.brand strong {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 27px;
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.emergency {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(5, 18, 45, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.emergency:hover,
.emergency:focus-visible {
  border-color: var(--red);
  background: rgba(177, 20, 29, 0.8);
  transform: translateY(-2px);
}

.emergency__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4a52;
  box-shadow: 0 0 0 5px rgba(255, 74, 82, 0.13);
}

.emergency strong {
  font-size: 17px;
  letter-spacing: 0.03em;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 54px;
  animation: rise 800ms 180ms ease-out both;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 184, 0, 0.35);
  border-radius: 4px;
  color: #ffe48b;
  background: rgba(245, 184, 0, 0.08);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.eyebrow {
  margin: 0 0 11px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

h1 {
  max-width: 790px;
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(64px, 7.2vw, 108px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 em {
  color: var(--gold);
  font-style: normal;
}

.intro {
  max-width: 585px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
}

.rule {
  width: 76px;
  height: 3px;
  margin: 34px 0 20px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--gold) 50%);
}

.message {
  display: grid;
  gap: 5px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
}

.message span {
  color: rgba(255, 255, 255, 0.53);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.message strong {
  font-size: 17px;
  letter-spacing: 0.12em;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__domain {
  color: rgba(255, 255, 255, 0.75);
}

@keyframes reveal {
  from { opacity: 0; transform: scale(1.07); }
  to { opacity: 1; transform: scale(1.025); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .hero__photo {
    background-position: 64% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(3, 14, 37, 0.96), rgba(3, 14, 37, 0.6)),
      linear-gradient(0deg, rgba(3, 12, 30, 0.96), rgba(3, 12, 30, 0.18));
  }

  .topbar,
  .content,
  footer {
    width: min(100% - 40px, 1360px);
  }

  .topbar {
    padding-block: 20px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand strong {
    font-size: 23px;
  }

  .brand small {
    display: none;
  }

  .emergency {
    padding: 9px 12px;
    font-size: 0;
  }

  .emergency strong {
    font-size: 15px;
  }

  .content {
    justify-content: flex-end;
    padding-block: 40px;
  }

  .status {
    margin-bottom: 22px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 78px);
    line-height: 0.86;
  }

  .intro {
    margin-top: 23px;
    line-height: 1.6;
  }

  .rule {
    margin-block: 25px 16px;
  }

  footer {
    padding-block: 19px;
  }

  footer > :first-child {
    display: none;
  }

  .footer__domain {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
