@font-face {
  font-family: 'Boston';
  src: url("../fonts/Boston-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Boston';
  src: url("../fonts/Boston-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --accent: #00c2e0;
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.8);
  --border: rgba(255, 255, 255, 0.28);
  --box-bg: rgba(6, 20, 30, 0.35);
  --bg-start: #0a1622;
  --bg-end: #06121c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Boston', 'Century Gothic', 'Jost', 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background-color: var(--bg-end);
  background-image: url("../img/backgrounds/BACKGROUND_2K_OPTIMIZADO.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.card {
  width: 100%;
  max-width: 1160px;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 56px 64px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}

/* Brand */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.brand__group {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.brand__name {
  margin: 0;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.brand__logo {
  height: 46px;
  width: auto;
  margin-top: 4px;
}

/* Intro */
.intro {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.intro__lead {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.intro__text {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* Companies */
.companies {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: -20px;
}

.companies__title {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 22px;
  font-weight: 700;
}

.companies__line {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 220px;
}

.companies__box {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--box-bg);
  padding: 28px 32px;
}

.companies__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.company {
  flex: 1;
  min-width: 0;
  position: relative;
}

.company__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.company__card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-color: rgba(0, 194, 224, 0.3);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 194, 224, 0.08), 0 0 24px rgba(0, 194, 224, 0.18);
}

.company__card:hover .company__logo {
  transform: scale(1.06);
}

.company__logo {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.company__logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.company__logo {
  height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.company__logo--ems {
  height: 72px;
}

.company__desc {
  margin: 0;
  font-size: clamp(11px, 1.15vw, 14px);
  color: var(--ink-muted);
  white-space: nowrap;
}

.company__link {
  margin-top: -14px;
  font-size: clamp(14px, 1.45vw, 17px);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.company__link:hover {
  text-decoration: underline;
}

/* Contact */
.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  width: 100%;
}

.contact__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.contact__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

/* Site line */
.site {
  margin: -16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  background: transparent;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 4px 18px;
  border-radius: 12px;
}

.site__icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.site__bold {
  font-weight: 800;
}

/* Mobile */
@media (max-width: 720px) {
  .card {
    padding: 40px 20px 32px;
    border-radius: 22px;
    gap: 30px;
  }

  .brand__logo {
    height: 30px;
  }

  .brand__group {
    font-size: 13px;
    letter-spacing: 0.4em;
  }

  .intro__lead {
    font-size: 15px;
  }

  .intro__text {
    font-size: 14px;
  }

  .companies__title {
    font-size: 19px;
  }

  .companies__line {
    max-width: 60px;
  }

  .companies__box {
    border: none;
    background: transparent;
    padding: 0;
  }

  .companies__list {
    flex-direction: column;
    gap: 32px;
  }

  .company {
    padding: 0;
  }

  .company__logo {
    height: 44px;
  }

  .company__logo--ems {
    height: 54px;
  }

  .company__logo-slot {
    height: 54px;
  }

  .company__desc {
    font-size: 14px;
  }

  .company__link {
    font-size: 17px;
  }

  .contact {
    flex-direction: column;
    gap: 14px;
  }

  .contact__item {
    text-align: center;
    font-size: 12px;
  }

  .contact__icon {
    width: 15px;
    height: 15px;
  }
}

/* Construction modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 12, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 40px 32px 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-end);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.modal__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.modal h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.modal p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  color: var(--ink-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.modal__close:hover {
  color: var(--ink);
}
