/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 100px rgba(0, 0, 0, 0.5);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ── About Section ── */
.about {
  z-index: 20;
  padding: 80px 20px;
  background-color: var(--bg-light);
  background-image: radial-gradient(circle at center, #ffffff 0%, #f0f0f0 100%);
  max-width: 100%;
}

.doc-honoris {
  margin-bottom: 40px;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
}

.doc-honoris img {
  width: 80%;
  max-width: 810px;
  height: auto;
}

.doc-honoris img:nth-child(2) {
  width: 25%;
  max-width: 810px;
  height: auto;
}

.lions {
  position: absolute;
  top: 75vw;
  left: 0;
  width: 100%; /* Se estira para cubrir al elemento 2 */
  height: 100%;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Divide la pantalla en 2 mitades iguales */
  width: 100%;
  pointer-events: none;
}

.lions img {
  max-width: 100%;
  height: auto;
}

.lions img:nth-child(1) {
  opacity: 0.1;
  justify-self: start;
}

.lions img:nth-child(2) {
  opacity: 0.1;
  justify-self: end;
}

.title-main {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 30px;
  margin-top: 100px;
  color: #1a1a1a;
}

.about-text {
  max-width: 820px;
  margin: 0 auto;
  font-size: 28px;
  line-height: 1.6;
  color: #000000;
}

.about-values {
  margin-bottom: 100px;
}

/* ── Reconocimiento Section ── */
.recognition {
  padding: 80px 0;
  /* Añadimos un degradado rojizo semi-transparente sobre la imagen de fondo */
  background:
    linear-gradient(to bottom, rgba(92, 15, 18, 0), rgba(59, 7, 8, 0)),
    url("/assets/fondo-galardonados.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

.recognition h2 {
  font-size: 32px;
  font-weight: bold;
}

.recognition-text {
  max-width: 800px;
  margin: 0 auto 100px;
  font-size: 17px;
  opacity: 0.9;
}

.recognition-images {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  margin-top: 70px;
  flex-wrap: wrap;
}

.rec-img-wrapper {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.rec-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recognition-footer {
  max-width: 800px;
  margin: 100px 0px 30px 0;
  font-size: 15px;
  opacity: 0.8;
}

/* ── Galeria Section ── */
.gallery {
  padding: 80px 20px;
  background-color: var(--bg-white);
  max-width: 100%;
}

.gallery h2 {
  font-size: 32px;
  color: #1a1a1a;
}

.gallery-subtitle {
  margin: 0 auto 50px;
  font-size: 16px;
  color: #666;
  max-width: 600px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  display: flex;
  background: var(--bg-white);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-img {
  width: 40%;
  min-height: 150px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  width: 60%;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.card-content h3 {
  font-family: "Georgia", serif;
  font-size: 20px;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.card-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  min-height: 20px; /* ensure space even if empty */
}

.btn-gold {
  display: inline-block;
  background-color: var(--gold);
  color: #000;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.btn-gold:hover {
  background-color: #f7ca85;
}

/* ── Footer ── */
footer {
  background-color: var(--primary-red);
  color: var(--text-light);
  padding: 60px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  flex: 0 0 auto;
}

.logo-circle {
  width: 80px;
  height: 80px;
  background: white;
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Georgia", serif;
  font-size: 24px;
  font-weight: bold;
}

.logo-circle img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col .afanes p {
  text-align: justify;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 15px;
  font-family: "Georgia", serif;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 10px;
}

.tel-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  display: inline-block;
  margin-top: 5px;
}

.tel-link:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: var(--gold);
}

/* ── Mobile Menu Variables ── */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  color: var(--text-light);
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 25px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px 0;
  }

  .menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .title-main {
    font-size: 26px;
    margin-top: 50px;
  }

  .about-text {
    font-size: 18px;
  }

  .doc-honoris {
    margin-top: 20px;
  }

  .recognition h2,
  .gallery h2 {
    font-size: 24px;
  }

  .recognition-text,
  .recognition-footer {
    font-size: 15px;
    margin-bottom: 50px;
  }

  .recognition-images {
    flex-direction: column;
    align-items: center;
  }

  .rec-img-wrapper {
    max-width: 100%;
  }

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

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}
