* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
/* fonts*/
@font-face {
  font-family: "BigNoodleTitling";
  src: url("/fonts/big_noodle_titling.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "futura-light";
  src: url("/fonts/futuralight.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "futura-medium";
  src: url("/fonts/Futura\ Medium.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Navegación */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: #f49c15;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border: 1px solid black;
  height: 18vh;
  position: fixed;
}

.nav-container {
  max-width: 1900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
}
.nav-container.containerscroll {
  height: 18vh;
}

.logo-icon {
  width: clamp(100px, 15vw, 350px);
  height: auto;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon img {
  max-width: 100%; /* Se ajusta al ancho del contenedor */
  max-height: 100%; /* Se ajusta a la altura del contenedor */
  width: 50%;
  height: auto;
  object-position: center;
}

.logo-icon.shrink .imglogo {
  height: 17vh; /* Ajusta según el tamaño del logo */
  width: 7vw;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  gap: 2rem;
  justify-content: center;
}

/* Hover con diferentes colores */
.navbar ul li:nth-child(1) a:hover {
  background: #3fc89a;
  border: 2px solid black;
}
.navbar ul li:nth-child(2) a:hover {
  background: #ed2b4b;
  border: 2px solid black;
}
.navbar ul li:nth-child(3) a:hover {
  background: #f49c15;
  border: 2px solid black;
}
.navbar ul li:nth-child(4) a:hover {
  background: #79c832;
  border: 2px solid black;
}
.navbar ul li:nth-child(5) a:hover {
  background: #f55624;
  border: 2px solid black;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: "BigNoodleTitling";
  background-color: #f7edd5;
  color: black;
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid black;
  cursor: pointer;
}

.navbar.scrolled .nav-link {
  color: black;
}

.navbar.scrolled .nav-link::before {
  background: rgba(102, 126, 234, 0.1);
}

.nav-link:hover {
  transform: translateY(-2px);
}

.scroll-text {
  font-size: 1.5rem;
}
/* estilo para el dropdown de capacitaciones */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.9rem;
  margin-left: 0.4rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f7edd5;
  min-width: 250px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.3s ease;
  z-index: 1001;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 1rem 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
  font-family: "BigNoodleTitling";
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}
.scroll-drop {
  font-size: 1.5rem;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #f7edd5;
  color: black;
  padding-left: 2rem;
}

/* Sección con Collage */
.collage-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f7edd5;
}

/* Contenedor del collage */
.collage-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  overflow: hidden;
}

/* Imágenes del collage */
.collage-image {
  position: absolute;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.8) rotate(15deg);
}

.collage-image.animate {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.collage-image:hover {
  transform: scale(1.1) rotate(-5deg);
  z-index: 10;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Posicionamiento de imágenes */
.img-1 {
  bottom: 30.9%;
  right: 39.8%;
  width: 19.1%;
  height: 25.9%;
  background-image: url("/media/banner-capacitaciones/girasol.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: float 5s ease-in-out infinite reverse;
  border: 1.5px black solid;
}

.img-2 {
  top: 42%;
  left: 26.7%;
  width: 14%;
  height: 36%;
  background-image: url("/media/banner-capacitaciones/picotudo.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: float 10s ease-in-out infinite;
  border: 1.5px black solid;
}
.img-3 {
  top: 42%;
  left: 60.4%;
  transform: translate(-50%, -50%);
  width: 14%;
  height: 36%;
  background-image: url("/media/banner-capacitaciones/pajarito.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: float 9s ease-in-out infinite;
  border: 1.5px black solid;
}
.img-4 {
  top: 5%;
  left: 43.5%;
  width: 14%;
  height: 36%;
  background-image: url("/media/banner-capacitaciones/escarabajo.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: float 10s ease-in-out infinite;
  border: 1.5px black solid;
}
.img-5 {
  top: 13%;
  left: 24.2%;
  width: 19.1%;
  height: 28.9%;
  background-image: url("/media/banner-capacitaciones/lechuzas.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: float 7s ease-in-out infinite;
  border: 1.5px black solid;
}
.img-6 {
  top: 13%;
  left: 57.8%;
  width: 19.1%;
  height: 28.9%;
  background-image: url("/media/banner-capacitaciones/ardilla.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: float 6s ease-in-out infinite;
  border: 1.5px black solid;
}

/* Animación de flotación */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-0px) rotate(0deg);
  }
}

/* Contenido banner*/
.banner-content {
  text-align: center;
  color: white;
  z-index: 20;
  position: relative;
  padding: clamp(15px, 3vw, 30px);
  background: rgba(247, 237, 213, 0.8);
  border-radius: 20px;
  opacity: 0;
  animation: titleReveal 2s ease-out 2.5s forwards;
  display: block;
  max-width: 90%;
  margin: 0 auto;
}

.title {
  font-family: "BigNoodleTitling";
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0rem;
  opacity: 0;
  color: #f49c15;
  letter-spacing: clamp(2px, 0.5vw, 5px);
  transform: translateY(50px);
  animation: titleSlideIn 1.5s ease-out 3s forwards;
}

/* Animación de aparición */
@keyframes titleReveal {
  from {
    opacity: 0;
    transform: scale(0.3) rotateY(90deg);
    filter: blur(20px);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1) rotateY(45deg);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    filter: blur(0px);
  }
}
@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sección de contenido normal */
.principal-section {
  background: #f7edd5;
  padding: clamp(40px, 8vw, 80px) clamp(10px, 3vw, 20px);
  min-height: 100vh;
}

.containers {
  max-width: 1800px;
  margin: 0 clamp(20px, 4vw, 80px);
  margin-bottom: 4%;
}

.content-title {
  font-family: "futura-medium";
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #f49c15;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.content-subtitle {
  font-family: "futura-medium";
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: #f49c15;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.content-text {
  font-family: "futura-light";
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: black;
  text-align: justify;
  flex: 1;
  min-width: 300px;
  line-height: 1.8;
  margin-top: 5%;
}
.span1 {
  color: #f49c15;
}
.spanlist {
  font-family: "futura-light";
  font-size: 1.6rem;
  color: black;
}
.elements {
  text-align: justify;
  padding: 5px;
  list-style: none;
  font-family: "futura-light";
  font-size: 1.6rem;
}
.elements li {
  padding-bottom: 10px;
  position: relative;
  padding-left: 25px;
}
.elements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f49c15;
  font-weight: bold;
  font-size: clamp(20px, 4vw, 30px);
}
.content-text span {
  font-family: "futura-medium";
}
.contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contacto {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.iconos {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.iconos img {
  padding: 10px;
  max-width: 100px;
  height: auto;
}

/* Responsive */

/* Botón  para móvil */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #f49c15;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navbar.scrolled .mobile-menu-btn span {
  background: #333;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media screen and (max-width: 1024px) {
  .nav-container {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  /* Fijar el tamaño del logo en mobile */
  .logo-icon {
    width: 120px; /* ajusta según tu necesidad */
    height: auto;
    flex-shrink: 0; /* evita que se comprima */
  }
  /* Si el logo es una imagen */
  .imglogo {
    width: 100%;
    height: auto;
    max-width: 120px;
  }
  .navbar.scrolled {
    height: 18vh;
  }
  /* Asegurar que el logo mantenga el mismo tamaño incluso con scroll en mobile */
  .navbar.scrolled .imglogo {
    width: 65%; /* mismo tamaño que arriba */
    height: auto;
  }
  .mobile-menu-btn {
    display: flex;
    flex-shrink: 0; /* evita que se comprima */
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #f7edd5;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .navbar ul li:nth-child(1) a {
    background: #3fc89a;
    border: 2px solid black;
  }
  .navbar ul li:nth-child(2) a {
    background: #ed2b4b;
    border: 2px solid black;
  }
  .navbar ul li:nth-child(3) a {
    background: #f49c15;
    border: 2px solid black;
  }
  .navbar ul li:nth-child(4) a {
    background: #79c832;
    border: 2px solid black;
  }
  .navbar ul li:nth-child(5) a {
    background: #f55624;
    border: 2px solid black;
  }
  .nav-item {
    margin: 0.5rem 0;
    position: relative;
  }

  .nav-link {
    padding: 1rem;
    display: block;
    font-size: 1.1rem;
  }

  /* Dropdown en móvil */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f7edd5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }

  .dropdown-item {
    color: black;
    padding: 0.75rem 2rem;
    font-size: 0.8rem;
  }

  .dropdown-item:hover {
    background-color: #2c3e50;
  }

  .dropdown-toggle::after {
    content: " ▼";
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
  }

  .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* Indicador visual para móvil */
  .dropdown-toggle {
    position: relative;
  }

  .dropdown-toggle::before {
    content: "Toca para ver opciones";
    position: absolute;
    right: -10px;
    top: -25px;
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  /* Mantener la estructura básica de la sección */
  .collage-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f7edd5;
    padding: 20px;
  }

  /* Simplificar el collage para mobile - Grid ordenado */
  .collage-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Más sutil para que no compita con el texto */
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    padding: 15px;
  }

  /* Resetear todas las imágenes del collage */
  .collage-image {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8) rotate(15deg);
  }
  .collage-image.animate {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  /* Quitar efectos hover en mobile */
  .collage-image:hover {
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /* Optimizar el banner de contenido para mobile */
  .banner-content {
    text-align: center;
    color: white;
    z-index: 20;
    position: relative;
    padding: 25px 20px;
    background: rgba(
      247,
      237,
      213,
      0.95
    ); /* Más opaco para mejor legibilidad */
    backdrop-filter: blur(10px); /* Efecto de desenfoque */
    border-radius: 20px;
    opacity: 0;
    animation: titleReveal 2s ease-out 2.5s forwards;
    display: block;
    max-width: 95%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  /* Ajustar tamaños de texto para mobile */
  .title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }

  .principal-section {
    padding: 30px 15px;
  }

  .containers {
    margin: 0 2vw;
    margin-bottom: 2.5rem;
  }

  .content-subtitle {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  .container-text {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .content-text {
    font-size: 1rem;
    margin-right: 0;
    text-align: left;
    line-height: 1.6;
    margin-top: 1rem;
  }

  .spanlist {
    font-size: 1.4rem;
  }

  .elements {
    font-size: 1.4rem;
    padding: 15px 10px;
  }

  .contact {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    padding: 2rem 1rem;
  }

  .contacto {
    flex-direction: column;
    gap: 1rem;
  }
  .contacto p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .iconos {
    justify-content: center;
    gap: 1.5rem;
  }
  .iconos p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  /* Tamaño de iconos */
  .contacto img,
  .iconos img {
    width: 50px;
    height: 50px;
  }
}
@media screen and (max-width: 1366px) {
  .nav-link {
    font-weight: 500;
    font-size: clamp(0.8rem, 1.8vw, 1rem);
  }
}
