/* GENERAL */
body {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  font-family: "DM Sans", sans-serif;
  background-color: #0b132b;
  color: white;
}

/* HEADER */
header {
  background-color: #0b132b;
  padding: 14px 32px;
}

header {
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background: linear-gradient(
    90deg,
    rgba(11, 19, 43, 0.9) 0%,
    rgba(70, 130, 255, 0.9) 50%,
    rgba(11, 19, 43, 0.9) 100%
  );
}

@media (max-width: 768px) {
  header {
    padding: 12px 20px;
  }

  .logo {
    height: 28px;
  }

  header::after {
    height: 1px;
  }
}


/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
    font-size: 0.9rem;
  }
}

  nav {
  flex-wrap: wrap;
  gap: 15px;
}



/* LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover {
  text-decoration: underline;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

#hero {
  width: 100vw;
  min-height: calc(100vh - 80px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.65),
      rgba(11, 19, 43, 0.95)
    ),
    url("images/ComunidadFoto_00000.jpg");

  background-size: cover;          /* 🔥 ZOOM INTELIGENTE */
  background-position: center;     /* 🔥 RECORTE CENTRADO */
  background-repeat: no-repeat;

  margin: 0;
  padding: 0 20px;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  #hero {
    min-height: calc(100vh - 70px);
    justify-content: flex-start;
    padding-top: 120px;
  }
}




/* LOGO HERO */
.hero-logo {
  max-width: 250px;
  margin-bottom: 25px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link:hover {
  opacity: 0.9;
}



/* BOTONES */
.buttons {
  margin-top: 30px;
}

.cta-button {
  display: inline-block;
  margin: 10px;
  padding: 14px 28px;
  background-color: #c47f0f;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #fca311;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* BOTÓN SECUNDARIO */
.cta-button.secondary {
  background-color: transparent;
  border: 2px solid white;
}

.cta-button.secondary:hover {
  background-color: white;
  color: #0b132b;
}


/* SECCIONES */
section {
  padding: 60px 20px;
}

section:not(#hero) {
  max-width: 900px;
  margin: auto;
}


section h2 {
  margin-bottom: 15px;
}

.footer {
  background-color: #0b132b;
  padding: 60px 20px 40px;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: auto;
}

.footer-logo {
  height: 38px;
  margin-bottom: 6px;
  opacity: 0.9;
}

.footer-text {
  font-size: 0.95rem;
  margin: 10px 0;
}

.footer-note {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 12px;
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero * {
  animation: fadeUp 1s ease forwards;
}

#hero h1 {
  animation-delay: 0.2s;
}

#hero p {
  animation-delay: 0.4s;
}

#hero .buttons {
  animation-delay: 0.6s;
}

#hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 0.7;
}
#hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 720px;
  margin-top: 0;
  margin-bottom: 24px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.2rem;
  }

  #hero p {
    font-size: 1.05rem;
  }
}

#hero {
  justify-content: center;
}


.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* Imagen */
.about-image {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Texto */
.about-text {
  flex: 1;
}
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    max-width: 100%;
  }
}
.contact-separator {
  width: 100%;
  height: 2px;
  margin: 80px 0 40px;

  background: linear-gradient(
    90deg,
    rgba(11, 19, 43, 0.9) 0%,
    rgba(70, 130, 255, 0.9) 50%,
    rgba(11, 19, 43, 0.9) 100%
  );
}
.contact {
  text-align: center;
}

.contact-intro {
  max-width: 720px;
  margin: 20px auto;
  font-size: 1.05rem;
  opacity: 0.9;
}

.contact-note {
  max-width: 720px;
  margin: 30px auto 0;
  font-size: 0.95rem;
  opacity: 0.7;
}
@media (max-width: 768px) {
  .contact-intro,
  .contact-note {
    font-size: 0.95rem;
  }

  .contact-separator {
    margin: 60px 0 30px;
  }
}
