/* Homepage CSS extracted from styles.css: video, servicios, youtube, mision, noticias + responsive rules */

/*VIDEO Y BIENVENIDA*/
.video {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.fondo-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

.texto-sobre-video {
  position: relative;
  z-index: 1;
  left: 7%;
  top: 40%;
  transform: translateY(-50%);
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
}

.texto-sobre-video h1 {
  font-size: 3.7rem;
  font-weight: 700;
  margin-bottom: 0.2em;
  letter-spacing: 0.02em;
  color: #f1b929;
}

.texto-sobre-video p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.3;
  color: #ffffff;
  letter-spacing: 0.01em;
  max-width: 800px;
  margin-top: 0.8em;
}

/*SERVICIOS*/
.servicios {
  background-color: #f9f6f1;
  padding: 90px 20px 100px;
  text-align: center;
}

.servicios h2 {
  font-size: 3rem;
  font-weight: 400;
  color: #444e56;
  line-height: 1.2;
}

.servicios-lista {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 10px;
}

.servicio {
  flex: 1 1 160px;
  max-width: 220px;
  background-color: #f9f6f1;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
}

.servicio .icono-servicio {
  width: 160px;
  height: 160px;
}

.servicio:hover {
  transition: all 0.3s ease;
}

.servicio h2 {
  margin-top: 8px;
  margin-bottom: 4px;
  color: #444e56;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  word-wrap: break-word;
}

.servicio img#repre+h2 {
  font-size: 1.2rem;
}

.servicio img {
  width: 100%;
  max-width: 160px;
  height: 120px;
  display: block;
  margin: 0 auto 10px auto;
  object-fit: cover;
  border: 2px solid #55c9cc;
  border-radius: 8px;
}

@media (min-width: 769px) {
  .servicios-lista {
    /* Forzar hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding-bottom: 10px;

    /* Mejorar el scroll en m車viles */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto !important;

    /* Prevenir selecci車n durante el scroll */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .servicio {
    flex: 1 1 240px;
    max-width: 300px;
    padding: 10px 10px;
    /* Mejorar rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);

    /* Prevenir highlights en m車vil */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }

  .servicio .icono-servicio {
    width: 220px;
    height: 220px;
  }

  .servicio img {
    max-width: 220px;
    height: 160px;
    margin-bottom: 16px;
    object-fit: cover;
    border: 2px solid #55c9cc;
    border-radius: 8px;
  }

  .servicio h2 {
    font-size: 1.3rem;
    margin-top: 10px;
    margin-bottom: 8px;
  }

  .servicio h2 {
    letter-spacing: 0.35px;
  }

  .servicios {
    padding-top: 0px;
    padding-bottom: 0px;
  }

  .video {
    height: 80vh;
  }

  .servicios h2 {
    margin-bottom: 12px;
    padding-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .servicio p {
    font-size: 1.05rem;
  }

  .servicio {
    transition: transform 0.28s cubic-bezier(.2, .9, .3, 1), box-shadow 0.28s ease;
    will-change: transform;
  }

  .servicio img {
    transition: transform 0.35s cubic-bezier(.2, .9, .3, 1);
  }

  .servicio:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  }

  .servicio:hover img {
    transform: scale(1.06) translateY(-4px);
  }
}

.servicio p {
  font-size: 0.9rem;
  color: #444e56;
  margin: 0;
  word-wrap: break-word;
}

.servicio h4 {
  font-size: 0.8rem;
  color: #55c9cc;
  margin-top: 80;
  word-wrap: break-word;
}

.servicio:hover h4 {
  color: #327375;
}

/*YOUTUBE*/
.youtube {
  background-color: #ffa500;
  padding: 20px 40px 30px;
  position: relative;
}

.youtube-contenido {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
  padding: 30px 40px;
}

.youtube-texto {
  flex: 1;
  min-width: 280px;
  padding-left: 30px;
  text-align: left;
  max-width: 540px;
}

.youtube-texto h2 {
  font-size: 3.8rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.2em;
  display: flex;
}

.youtube-texto h2 span {
  display: block;
  margin-bottom: 10px;
}

.circled {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.circled::before {
  content: "";
  background-image: url('/images/circulo1.png');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: -47px;
  left: -20px;
  width: 280px;
  height: 150px;
  z-index: -1;
  pointer-events: none;
}

.youtube-texto p {
  font-size: 1.4rem;
  color: #ffffff;
  line-height: 1.5;
}

.youtube-portada {
  flex: 1.4;
  min-width: 320px;
}

.youtube-portada iframe {
  width: 100%;
  max-width: 720px;
  height: 390px;
  border-radius: 8px;
}

/*MISION*/
.mision {
  background-color: #f9f6f1;
  padding: 80px 40px;
  color: #2c2c2c;
  display: flex;
  justify-content: center;
  width: 100%;
}

.mision-contenido {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  font-family: 'Inter', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.mision-texto-principal .etiqueta {
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #55c9cc;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.titulopro-text .etiqueta {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #55c9cc;
  margin-bottom: 0px;
  text-transform: uppercase;
  padding-left: 20px;
}

.mision-texto-principal {
  margin-left: 0;
}

.mision-texto-principal h1,
.titulopro-text h1 {
  margin-top: 0px;
  font-size: 3.4rem;
  font-weight: 400;
  color: #444e56;
  line-height: 1.2;
}

.mision-texto-principal h1 span,
.titulopro-text h1 span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #55c9cc;
  font-weight: 400;
  font-size: 90px;
  display: inline-block;
  margin-top: 5px;
}

.mision-descripcion {
  max-width: 460px;
  color: #444e56;
  font-size: 1.3rem;
  line-height: 1.6;
  margin-top: 80px;
}

.btn-mision {
  margin-top: 30px;
  background-color: #55c9cc;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-mision:hover {
  background-color: #3a888b;
}

/*NOTICIAS*/
.noticias {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #55c9cc;
  padding: 60px 40px;
}

.noticias-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.noticias h2 {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 40px;
  margin-top: 0;
  font-weight: 400;
  text-align: center;
  max-width: 800px;
}

.noticia {
  position: relative;
  color: #ffffff;
  background-color: transparent;
  text-decoration: none;
  padding: 25px;
  height: 280px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.noticia::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 0;
  transition: all 0.3s ease;
}

.noticia:hover::before {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.1);
}

.noticia::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
  z-index: 0;
  transition: all 0.3s ease;
}

.noticia:hover::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.6));
}

.news-card-1 {
  background-image: url('../images/news1.jpg');
}

.news-card-2 {
  background-image: url('../images/news2.jpg');
}

.news-card-3 {
  background-image: url('../images/news3.jpg');
}

.news-card-4 {
  background-image: url('../images/news4.jpg');
}

.news-card-5 {
  background-image: url('../images/news5.jpg');
}

.noticia:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.noticia:hover p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.noticia h3,
.noticia h4,
.noticia p {
  position: relative;
  z-index: 1;
}

.noticia h3 {
  margin-top: 0;
  font-size: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 5px;
  font-weight: bold;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.noticia h4 {
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 10px;
  margin-left: 5px;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.9);
}

.noticia p {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-top: 0;
  margin-right: 10px;
  margin-left: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Responsive rules (max-width: 768px) copied as well */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  body,
  p,
  .noticia p,
  .servicio p,
  .mision-descripcion,
  .footer-column ul,
  .features-list li {
    font-size: 1.3rem;
    line-height: 1.5;
  }

  .servicios-lista {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px 0;
    gap: 20px;
  }

  .servicios-lista::-webkit-scrollbar {
    display: none;
  }

  .servicio {
    flex: 0 0 auto;
    width: 220px;
    margin-right: 20px;
    scroll-snap-align: start;
    border-radius: 12px;
  }

  .servicios {
    padding: 20px 0px 20px;
  }

  .servicios h2 {
    font-size: 2.5rem;
  }

  .servicio h2 {
    font-size: 1.45rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 5px;
  }

  .servicio p {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 1.05rem;
  }

  .texto-sobre-video h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.2em;
    color: #f1b929;
    font-family: 'Montserrat', sans-serif;
  }

  .texto-sobre-video p {
    font-size: 1.6rem;
    max-width: 100%;
  }

  html,
  body {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  body>* {
    max-width: 100%;
    box-sizing: border-box;
  }

  header,
  main,
  section,
  footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .texto-sobre-video {
    left: 0;
    padding-left: 12px;
    padding-right: 12px;
    width: calc(100% - 24px);
  }

  .titulopro-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .titulopro-text {
    min-width: auto;
  }

  .titulopro-image img {
    max-width: 90%;
  }

  .card {
    max-width: 90%;
  }

  .card ul {
    padding-left: 15px;
  }

  .card .icon {
    width: 70px;
  }

  .contenido-servi {
    flex-direction: column;
    align-items: center;
  }

  .ilustracion-servi {
    margin-top: 0;
    max-width: 90%;
  }

  .lista-servi {
    grid-template-columns: 1fr;
  }

  .features-columns {
    flex-direction: column;
    align-items: center;
  }

  .features-list {
    max-width: 90%;
  }

  footer {
    padding: 40px 0 20px 0;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-logo-container {
    min-width: auto;
    width: 100%;
    padding: 0;
    align-items: center;
    margin-bottom: 10px;
  }

  .footer-logo-container img {
    height: auto;
    width: 80%;
    max-width: 280px;
  }

  .footer-column {
    min-width: auto;
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-column h4 {
    margin-bottom: 15px;
    font-size: 1.1em;
  }

  .footer-column ul {
    text-align: center;
    width: 100%;
  }

  .footer-column li {
    padding: 6px 0;
  }

  .logo-sociales {
    margin-left: 0;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-top: 10px;
  }

  .logo-sociales img {
    width: 36px;
    height: 36px;
  }

  .footer-bottom {
    font-size: 0.8em;
    margin-top: 20px;
    padding: 0 20px;
  }

  .titulopro-image,
  .ilustracion-servi,
  .ocultar {
    display: none !important;
  }

  .mision {
    padding: 40px 20px;
  }

  /* Center YouTube section on small screens */
  .youtube-contenido {
    justify-content: center;
    padding: 20px 12px;
    gap: 20px;
  }

  .youtube-texto {
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
    max-width: 100%;
  }

  .youtube-portada {
    width: 100%;
    max-width: 720px;
    min-height: 200px;
    display: flex;
    justify-content: center;
  }

  .youtube-portada iframe {
    width: 100%;
    height: auto;
    max-width: 720px;
    border-radius: 8px;
  }

  .mision-contenido {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }

  .mision-texto-principal,
  .mision-descripcion {
    text-align: center;
    max-width: 100%;
  }

  .mision-texto-principal h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .mision-texto-principal h1 span {
    font-size: 2.8rem;
  }

  .mision-descripcion {
    margin-top: 0;
  }

  .info-proyecto,
  .info-proyecto:nth-child(even) {
    flex-direction: column;
    gap: 40px;
  }

  .texto-info-proyecto {
    text-align: center;
  }

  .beneficios {
    flex-direction: column;
    align-items: center;
  }

  .beneficios>div {
    margin-bottom: 40px;
    padding-bottom: 40px;
  }

  .beneficios>div:not(:last-child)::after {
    display: none;
  }

  .beneficios>div:not(:last-child) {
    border-bottom: 1px solid #ffffff;
  }

  .beneficios>div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .staff-container {
    flex-direction: column;
    align-items: center;
  }

  .noticias {
    padding: 40px 20px;
  }

  .noticias h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
  }

  .noticias-container {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    max-width: 100%;
  }

  .noticia {
    width: 88%;
    max-width: 370px;
    margin: 0 auto 10px auto;
    height: 250px;
  }

  .noticia p {
    font-size: 1.3rem;
  }

  .noticia:active::before {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.1);
  }

  .noticia:active::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.6));
  }
}



/* --------------*/

.neon-button-section {
  display: flex;
  width: 440px;
  padding-top: 20px;
  /* background-color: red; */
  /* flex-direction: column; */

}

.neon-button-main {
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: green; */
  flex-direction: column;

}

.neon-button-section p {
  color: #fff;
  font-weight: 500;
  font-size: 30px;
}

.neon-button-external-animated {
  position: relative;
  display: inline-block;
  padding: 13px 30px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  /* background-color: rgba(0, 123, 255, 0.9); */
  background-color: #111;
  width: 230px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px rgba(0, 199, 255, 0.8);
  display: flex;
  justify-content: center;
}

/* Efecto al pasar el mouse */
.neon-button-external-animated:hover {
  transform: scale(1.1);
  background-color: rgba(0, 123, 255, 0.9);
  box-shadow: 0 0 10px #00c7ff,
    0 0 40px #00c7ff,
    0 0 80px #00c7ff;
}

/* Pseudo-elemento para el ne車n que se mueve *fuera* del bot車n */
.neon-button-external-animated::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 10px;
  background: linear-gradient(45deg,
      #00c8ff48,
      #00fbff80,
      #00c8ff61,
      #00fbff80);
  background-size: 300% 300%;
  animation: external-neon-animation 4s linear infinite;
  z-index: 0;
  filter: blur(8px);
  opacity: 0.8;
  transition: opacity 0.3s ease-in-out;
}

/* Intensifica el ne車n externo al pasar el mouse */
.neon-button-external-animated:hover::after {
  opacity: 1;
  /* Ne車n m芍s brillante */
  filter: blur(12px);
  /* Un poco m芍s difuminado */
}

.neon-button-img {
  height: 70px;
}

/* Definici車n de la animaci車n del ne車n externo */
@keyframes external-neon-animation {
  0% {
    background-position: 0% 50%;
    /* Empieza el gradiente */
  }

  50% {
    background-position: 100% 50%;
    /* Se mueve a trav谷s del gradiente */
  }

  100% {
    background-position: 0% 50%;
    /* Vuelve al inicio para un bucle infinito */
  }
}

@media (min-width: 769px) {}