:root {
  --primary: #e5192e;
  --primary-dark: #9f101f;
  --accent: #ffd334;
  --ink: #231f20;
  --muted: #6d6466;
  --surface: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

#site-header.header-hidden {
  transform: translateY(-120%);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
  opacity: 0.92;
  transition: opacity 0.25s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.whatsapp-button,
.primary-cta,
.secondary-cta,
.small-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.whatsapp-button,
.primary-cta {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 18px 40px rgba(90, 19, 24, 0.24);
}

.whatsapp-button {
  padding: 12px 18px;
}

.primary-cta {
  padding: 15px 24px;
}

.secondary-cta {
  border: 1px solid rgba(255, 255, 255, 0.44);
  padding: 14px 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.small-link {
  border: 1px solid rgba(229, 25, 46, 0.18);
  padding: 12px 18px;
  color: var(--primary-dark);
  background: #fff;
}

.whatsapp-button:hover,
.primary-cta:hover,
.secondary-cta:hover,
.small-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(90, 19, 24, 0.28);
}

.mobile-icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-icon-button span {
  display: block;
  width: 19px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

#mobile-menu a {
  display: block;
  padding: 12px 14px;
  font-weight: 800;
}

#mobile-menu.hidden {
  display: none;
}

.hero {
  background: var(--primary-dark);
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  padding: 28px;
  color: #fff;
  box-shadow: 0 28px 70px rgba(20, 2, 5, 0.35);
  backdrop-filter: blur(18px);
}

.glass-panel strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--accent);
}

.glass-panel span {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.84);
}

.hero-contact-card {
  display: inline-grid;
  gap: 4px;
  width: min(100%, 440px);
  border: 1px solid rgba(255, 211, 52, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  padding: 18px 20px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(20, 2, 5, 0.25);
  backdrop-filter: blur(16px);
}

.hero-contact-card span,
.hero-contact-card small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.hero-contact-card strong {
  color: var(--accent);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 950;
  line-height: 1;
}

.section {
  padding: clamp(72px, 8vw, 116px) 0;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker.light {
  color: var(--accent);
}

.section h2 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  font-weight: 950;
  line-height: 1;
}

.section.bg-primary h2,
.benefits-section h2 {
  color: #fff;
}

.section p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.section.bg-primary p,
.benefits-section p {
  color: rgba(255, 255, 255, 0.84);
}

.about-card,
.service-card,
.department-card,
.service-detail,
.contact-panel,
.map-panel {
  border: 1px solid rgba(229, 25, 46, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(94, 23, 31, 0.12);
  backdrop-filter: blur(18px);
}

.about-card {
  padding: clamp(26px, 4vw, 42px);
}

.about-card h3,
.service-card h3,
.department-card h3,
.contact-panel h3 {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
}

.about-card span,
.feature-grid span {
  display: flex;
  min-height: 58px;
  align-items: center;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 850;
}

.about-card span {
  background: rgba(229, 25, 46, 0.08);
  color: var(--primary-dark);
}

.service-card {
  min-height: 292px;
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgba(94, 23, 31, 0.18);
}

.service-card svg {
  color: var(--primary);
}

.professional-copy {
  max-width: 640px;
}

.image-feature {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 470px;
  box-shadow: 0 30px 90px rgba(94, 23, 31, 0.18);
}

.image-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-feature::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 30%, rgba(35, 31, 32, 0.78));
}

.image-feature div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 20px;
  color: #fff;
  backdrop-filter: blur(14px);
}

.image-feature strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 950;
}

.image-feature span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.department-grid,
.service-detail-grid,
.units-grid {
  display: grid;
  gap: 18px;
}

.department-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.department-card {
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.department-card p {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.65;
}

.service-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-detail {
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
}

.service-detail strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 950;
}

.service-detail p {
  margin-top: 12px;
  font-size: 0.98rem;
  line-height: 1.65;
}

.digital-section {
  background:
    linear-gradient(135deg, rgba(159, 16, 31, 0.94), rgba(35, 31, 32, 0.88)),
    url("img/2.jpeg") center/cover;
}

.digital-section h2 {
  color: #fff;
}

.digital-section p {
  color: rgba(255, 255, 255, 0.86);
}

.channel-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 24px;
  box-shadow: 0 30px 90px rgba(20, 2, 5, 0.22);
  backdrop-filter: blur(18px);
}

.channel-panel div {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 18px;
}

.channel-panel strong {
  display: block;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 950;
}

.channel-panel span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.benefits-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(159, 16, 31, 0.96), rgba(229, 25, 46, 0.88) 46%, rgba(35, 31, 32, 0.92)),
    url("img/3.jpeg") center/cover;
}

.benefits-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 211, 52, 0.28), transparent 30%),
    radial-gradient(circle at 86% 70%, rgba(255, 255, 255, 0.16), transparent 28%);
  pointer-events: none;
}

.benefits-section > div {
  position: relative;
  z-index: 1;
}

.benefits-section .section-kicker {
  color: var(--accent);
}

.benefits-section .feature-grid span {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 18px 45px rgba(20, 2, 5, 0.16);
}

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

.feature-grid span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(12px);
}

.units-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 211, 52, 0.24), transparent 34%),
    linear-gradient(180deg, #fff, #fff7f7);
}

.units-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unit-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(229, 25, 46, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 28px;
  box-shadow: 0 24px 70px rgba(94, 23, 31, 0.12);
  backdrop-filter: blur(18px);
}

.unit-card.highlight {
  border-color: rgba(255, 211, 52, 0.7);
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.unit-card span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.unit-card.highlight span {
  color: var(--accent);
}

.unit-card h3 {
  margin-top: 18px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1.12;
}

.unit-card.highlight h3 {
  color: #fff;
}

.unit-card p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.unit-card.highlight p {
  color: rgba(255, 255, 255, 0.82);
}

.unit-card a {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: var(--primary);
  padding: 12px 16px;
  color: #fff;
  font-weight: 950;
}

.unit-card.highlight a {
  background: var(--accent);
  color: var(--primary-dark);
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gallery-grid img {
  width: 100%;
  min-height: 260px;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(94, 23, 31, 0.14);
}

.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(4) {
  grid-column: span 3;
}

.gallery-grid img:nth-child(2),
.gallery-grid img:nth-child(3),
.gallery-grid img:nth-child(5) {
  grid-column: span 2;
}

.contact-panel {
  padding: clamp(24px, 4vw, 36px);
}

.contact-panel dl {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.contact-panel div {
  border-bottom: 1px solid rgba(35, 31, 32, 0.1);
  padding-bottom: 12px;
}

.contact-panel dt {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-panel dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.map-panel {
  min-height: 500px;
  overflow: hidden;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 32, 0.68);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  max-height: min(720px, calc(100svh - 36px));
  width: min(720px, 100%);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.36);
}

.modal-content h2 {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 950;
  line-height: 1;
}

.modal-content p {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 999px;
  background: #25d366;
  padding: 14px 18px;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.32);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-150 {
  transition-delay: 0.15s;
}

.delay-200 {
  transition-delay: 0.2s;
}

@media (max-width: 900px) {
  .department-grid,
  .service-detail-grid,
  .units-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid img:nth-child(n) {
    grid-column: span 1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .glass-panel {
    padding: 20px;
  }

  .glass-panel .grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    min-height: 320px;
  }

  .image-feature {
    min-height: 380px;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    width: 58px;
    height: 58px;
    justify-content: center;
    padding: 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
