:root {
  --brand-navy: #092342;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--brand-navy);
}

/* Utility class for capitalized text */
.text-capitalize {
  text-transform: capitalize;
}

.construction-notice {
  margin-bottom: 3rem;
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("./assets/rcj.webp");
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  padding: 2rem 1.2rem;
  isolation: isolate;
  color: var(--text);
}

/* Overlay blanco al 20 % — logo principal y tipografía en azul */
.hero--white {
  --text: var(--brand-navy);
  --accent: var(--brand-navy);
  --email-border: rgba(9, 35, 66, 0.4);
  --divider: rgba(9, 35, 66, 0.35);
  --overlay-top: rgba(255, 255, 255, 0.2);
  --overlay-bottom: rgba(255, 255, 255, 0.582);
}

/* Variante blanca: mostrar logo azul */
.brand-logo--blue {
  display: none;
}

.hero--white .brand-logo--light {
  display: none;
}

.hero--white .brand-logo--blue {
  display: inline-block;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--overlay-top), var(--overlay-bottom));
  z-index: -1;
}


.content {
  width: min(980px, 100%);
  text-align: center;
}

.kicker {
  margin: 0 0 0.5rem;
  letter-spacing: 0.35rem;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.7rem);
}

.brand {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.4rem, 9vw, 8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.brand span {
  display: block;
}

.brand-logo {
  width: min(350px, 82vw);
  height: auto;
}

.tagline {
  margin: 2.4rem auto 0;
  max-width: 860px;
  font-size: clamp(0.9rem, 1.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--accent);
}

.partners {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  position: absolute;
  right: 1.4rem;
  bottom: 1.2rem;
  transform: scale(0.88);
  transform-origin: right bottom;
}

.partners-title {
  margin: 0;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.partners-logos {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.partners-divider {
  width: 1px;
  height: 80px;
  margin-right: 10px;
  background: var(--divider);
}

.partner-logo {
  width: 100px;
  height: auto;
}

.partner-logo--large {
  width: 100px;
}

.email {
  display: inline-block;
  margin-top: 2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--email-border);
  padding-bottom: 0.2rem;
}

.email:hover {
  opacity: 0.85;
}

.social-media {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link img {
  width: 22px;
  height: 22px;
  display: block;
}

.social-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Variante en color */
.social--color .social-link {
  background: #ffffff;
}

.social--color .social-link--facebook {
  background: #1877f2;
}

.social--color .social-link--instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.social--color .social-link--linkedin {
  background: #0a66c2;
}

.social--color .social-link img {
  filter: brightness(0) invert(1);
}

.social--color .social-link--linkedin img {
  filter: none;
}

/* Variante blanco y negro: cambiar clase del nav a social--bw */
.social--bw .social-link {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.social--bw .social-link img {
  filter: grayscale(1) contrast(1.3);
}

@media (max-width: 640px) {
  .hero {
    padding: 1.2rem 1rem 2.2rem;
  }

  .partners {
    position: static;
    transform: scale(0.78);
    transform-origin: center top;
    margin-top: 1.2rem;
    gap: 0.6rem;
    justify-content: center;
  }

  .partners-title {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
  }

  .partners-logos {
    gap: 0.45rem;
  }

  .partner-item {
    gap: 0.2rem;
  }

  .partners-divider {
    height: 26px;
  }

  .partner-logo {
    width: 120px;
  }

  .partner-logo--large {
    width: 120px;
  }

  .social-media {
    flex-direction: row;
    gap: 0.55rem;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }
}
