* {
    overflow: visible !important;
}

.contenedor {
    padding: 60px 0;
    width: 100%; /* Asegura que el contenedor se ajuste al 100% del ancho */
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

/* Estilo de título */
.titulo {
    color: #030303;
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}

/* Estilos para el header */
header {
    width: 100%;
    height: 600px;
    background: #7e9bd5;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(252, 33%, 63%, 0.66), hsla(317, 45%, 52%, 0.664)), url(../img/fondos.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(227, 63%, 60%, 0.66), hsla(199, 49%, 64%, 0.66)), url(../img/fondos.jpg);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

/* Estilos para el header */
header .textos-header {
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.textos-header h1 {
    font-size: 50px;
    color: #fff;
    padding-top: 50px;
}

.textos-header h2 {
    font-size: 30px;
    font-weight: 300;
    color: #fff;
}

/* Estilo de la ola en el fondo */
.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* PRIMERA PARTE */
/* Título de la sección */
.section-title {
  margin-top: 25px; /* Mantén un margen superior adecuado */
   font-family: "Georgia", serif;
  color: #2e4600;
  font-size: 30px;
  text-align: center;
  margin-bottom: -122px; /* Espacio inferior entre título y contenido */
}

/* Contenedor de los cuadros */
.cuadros-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* No se puede usar gap negativo */
    padding: 176px 10px 20px;
    flex-wrap: wrap;
    max-width: 100vw;
    box-sizing: border-box;
}
/* Estilo de cada cuadro */
.cuadro {
    flex: 1 1 calc(22% - 20px); /* Ajustado para que sean más pequeños */
    max-width: calc(22% - 20px);
    padding: -9px;
    margin: 10px;

    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease;
}

/* Imágenes dentro de los cuadros */
.cuadro img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  box-shadow: 0 24px 8px rgba(0, 0, 0, 0.2);
}
/* Títulos dentro de los cuadros */
.cuadro h3 {
  font-size: 16px;
  margin: 10px 0;
  color: #000000;
  font-weight: bold;
}

/* Párrafos dentro de los cuadros */
.cuadro p {
  font-size: 14px;
  color: #efefef;
  line-height: 1.4; /* Mejora la legibilidad */
  word-wrap: break-word; /* Ajusta palabras largas */
}

/* Etiqueta decorativa o ticker */
.ticker {
  position: absolute;
  top: 1352px;
  left: 50%;
  transform: translateX(-50%);
 
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(155, 155, 155, 0.2);
}

.cuadro .ticker img {
  width: 44px;
  height: 40px;
}

/* Estilos responsivos */
@media (max-width: 1024px) {
    .cuadro {
        flex: 1 1 calc(45% - 20px); /* Dos por fila */
        max-width: calc(45% - 20px);
    }
}

/* Para móviles (pantallas menores a 768px) */
@media (max-width: 768px) {
    .cuadro {
        flex: 1 1 calc(95% - 20px); /* Uno por fila */
        max-width: calc(95% - 20px);
    }

    .cuadros-container {
        padding: 120px 10px 20px; /* Menos padding superior en móviles */
    }
}
 /* SEPARADOR */
header.margin-top-2 {
  width: 100%;
    height: 537px;
    background: rgba(226, 106, 65, 0.8);
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(252, 33%, 63%, 0.66), hsla(317, 45%, 52%, 0.664)), url(../img/fondo2.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(31, 63%, 60%, 0.66), hsla(199, 49%, 64%, 0.66)), url(../img/fondo2.jpg);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
    position: relative;   
       top: 60px;
}

header.margin-top-2 .textos-header h1 {
    font-size: 50px;
    color: #fff;
    padding-top: 50px;
    
}

header.margin-top-2 .textos-header h2 {
    font-size: 30px;
    font-weight: 300;
    color: #fff;
        
}

@media (max-width: 768px) {
    header.margin-top-2 {
    width: 100%;
    height: 648px;
     top: 607px;
   
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(252, 33%, 63%, 0.66), hsla(317, 45%, 52%, 0.664)), url(../img/fondo2.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(0, 0%, 0%, 0.66), hsla(199, 49%, 64%, 0.66)), url(../img/fondo2.jpg);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
 
}
    header.margin-top-2 .textos-header h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    header.margin-top-2 .textos-header h2 {
        font-size: 18px;
    }
    header.margin-top-2 .wave {
        height: 100px;
    }
}



@media (max-width: 800px) {
   header.margin-top-2 {
    width: 100%;
    height: 648px;
     top: 647px;
   
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(252, 33%, 63%, 0.66), hsla(317, 45%, 52%, 0.664)), url(../img/fondo2.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(0, 0%, 0%, 0.66), hsla(199, 49%, 64%, 0.66)), url(../img/fondo2.jpg);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
 
}
    header.margin-top-2 .textos-header h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    header.margin-top-2 .textos-header h2 {
        font-size: 18px;
    }
    header.margin-top-2 .wave {
        height: 100px;
    }
}
 

@media (max-width: 576px) {
    header.margin-top-2 {
        margin-top: 202px; /* Espacio aún mayor para móviles pequeños */
        padding: 15px;
        height: auto;
    }
    header.margin-top-2 .textos-header h1 {
        font-size: 24px;
    }
    header.margin-top-2 .textos-header h2 {
        font-size: 16px;
    }
}

/* TARJETAS PERFILES */
 
.card .links a img {
    width: 27px; /* Ajustar el ancho del logo */
    height: 23px; /* Ajustar la altura del logo */
    object-fit: contain; /* Mantener proporciones */
    display: block; /* Asegurar que el logo sea un bloque dentro del enlace */
}


.card-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrar tarjetas horizontalmente */
    gap: 123px; /* Espacio entre tarjetas */
    padding: 124px;
}

/* Tarjetas */
.card {
    position: relative;
    width: 250px;
    height: 399px;
    border-radius: 10px;
    box-shadow: 2px 3px 5px rgba(73, 69, 52, 0.4);
    margin: 22px;
    background: #fff;
    overflow: hidden;
       top: -61px;
}

/* Contenido interno */
.card .content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.card .content .img {
    height: 50%;
    margin-bottom: 20px;
}

.card .content .img img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
   
}

/* Encabezados y texto */
.card .content h4 {
    font-size: 18px;
    color: #1a1919;
    margin-bottom: 5px;
}

.card .content h6 {
    font-size: 13px;
    color: #5e2066;
}

.card .content p {
    font-size: 13px;
    color: #1a161f;
    margin-top: 10px;
}

/* Iconos sociales */
.card .links {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 2px 3px 5px rgba(73, 69, 52, 0.4);
    padding: 20px;
    align-items: center;
    right: 10px;
    top: 15px;
    transition: .5s;
}

.card:hover .links {
    right: -50px;
}

.card .links a {
    font-size: 20px;
    color: #646069;
}

/* Responsividad para tablets y móviles */
 @media (max-width: 1024px) {
  .card-section {
    padding: 14px 28px;
  }

  .card {
    top: -1011px;
    width: 90%;
    max-width: 400px;
    margin-bottom: -78px;
  }
}
 
@media (max-width: 800px) {
  .card-section {
    padding: 690px 28px;
      gap: 436px;
  }

  .card {
 margin-top: -673px;
    width: 90%;
    max-width: 400px;
    margin-bottom: -78px;
  }
}
 
 @media (max-width: 768px) {
  .card-section {
 margin-top: 1378px;
  }

  .card {
    top: -709px;
    width: 90%;
    max-width: 400px;
    margin-bottom: -78px;
  }
}
 



/* GALERIA DE FOTOS */


.gallery-section {
  text-align: center;
  padding: 66px 20px 60px;
  background: linear-gradient(to bottom, #e0f7ef, #f9fff4); /* Fondo tipo naturaleza */
  background-image: url('img/fondogaleri.jpg'); /* Si tienes una imagen tipo hojas difusa */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: "Georgia", serif;
  color: #2e4600;
}

.gallery-title {
  font-size: 2.8rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 4px rgba(0, 50, 0, 0.3);
}

.gallery {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery img {
  flex: 1 1 calc(30% - 20px);
  max-width: calc(30% - 20px);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.3s ease;
  filter: brightness(0.95);
}

.gallery img:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(1.05) saturate(1.1);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 139, 34, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.overlay img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.overlay button {
  margin-top: 30px;
  padding: 14px 28px;
  font-size: 18px;
  background-color: #fff;
  color: #2e4600;
  border: 2px solid #228b22;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.overlay button:hover {
  background-color: #c8facc;
  border-color: #006400;
}

@media (max-width: 768px) {
    
    
    .gallery-title {
  margin-top: -315px;
  font-size: 1.6rem;
  margin-bottom: 44px;
  text-shadow: 1px 1px 4px rgba(0, 50, 0, 0.3);
}

 
  .gallery img {
    flex: 1 1 calc(45% - 20px);

  }
}

 
@media (max-width: 800px) {
    
    
    .gallery-title {
  margin-top: -1232px;
  font-size: 1.6rem;
  margin-bottom: 44px;
  text-shadow: 1px 1px 4px rgba(0, 50, 0, 0.3);
}

 
  .gallery img {
    flex: 1 1 calc(45% - 20px);

  }
}
 
  /* SEPARADOR DE PROGRAMADORES */
.galaxy-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to right, hsla(120, 70%, 40%, 0.16), hsla(120, 100%, 50%, 0.17)), url(../img/beautiful.jpg) no-repeat center center/cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  top: 402px;
}

#leaves-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.typing-text {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 2rem;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
}

/* Botón COMENZAR */
.btn-comenzar {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  font-size: 1.2rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.btn-comenzar:hover {
  background: linear-gradient(90deg, #32a852, #a3ff57, #32a852);
  background-size: 200% 100%;
  animation: rgb-glow 1.5s linear infinite;
  color: #000;
  border: 2px solid #fff;
}

@keyframes rgb-glow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
 



 

@media (max-width: 768px) {
  .galaxy-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to right, hsla(120, 70%, 40%, 0.28), hsla(120, 100%, 50%, 0.27)), url(../img/beautiful.jpg) no-repeat center center/cover;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    top: -1072px;
  }

  .typing-text {
    font-size: 0.9rem;
    padding: 0 10px;
  }
}

 
/* PARTE 6 */
 
/* Sección Negra */
.seccion-negra {
  background-color: #000;
  color: white;
  padding: 453px 10%;
}

.info-container {
  text-align: center;
  padding: 30px 0;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn-info {
  background-color: #00bcd4;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-info:hover {
  background-color: #008c8c;
}

/* Footer */
footer {
  background-color: #111;
  padding: 40px 0;
}

.footer-fondo {
  text-align: center;
}

.contenedor-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 30px;
}

.content-foo {
  flex: 1;
  text-align: center;
}

.content-foo h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.content-foo a {
  display: inline-block;
  margin-top: 10px;
}

.content-foo img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.content-foo img:hover {
  transform: scale(1.1);
}

.titulo-final {
  font-size: 1rem;
  color: #ccc;
  margin-top: 20px;
}

/* Estilos Responsivos para diferentes tamaños de pantalla */
@media (max-width: 1200px) {
  .seccion-negra {
    padding: 87px 5%;
  }

  .info-container h2 {
    font-size: 2rem;
  }

  .info-container p {
    font-size: 1rem;
  }

  .contenedor-footer {
    flex-direction: column;
    align-items: center;
  }

  .content-foo {
    margin-bottom: 20px;
  }
}

@media (max-width: 735px) {
  .seccion-negra {
    margin-top: -1127px
  }

  .info-container h2 {
    font-size: 1.8rem;
  }

  .info-container p {
    font-size: 0.9rem;
  }

  .btn-info {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .contenedor-footer {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .content-foo {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .seccion-negra {
 margin-top: -1081px;
  }

  .info-container h2 {
    font-size: 1.5rem;
  }

  .info-container p {
    font-size: 0.8rem;
  }

  .btn-info {
    font-size: 0.8rem;
    padding: 7px 14px;
  }

  .contenedor-footer {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .content-foo {
    margin-bottom: 10px;
  }
}