body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

#navbar {
    background: transparent;
    box-shadow: none;
    border-bottom: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
}


#navbar.scrolled {
    background-color: rgb(233, 231, 231);
    
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled ul li a {
    color: #2b2b2b; /* o el tono oscuro que prefieras */
    text-shadow: none; /* opcional: limpia el brillo para mejor contraste */
}


#navbar .container {
    display: flex;
    align-items: center;
    padding: 10px 40px;
}

#navbar a#logo {
    margin-right: auto;
    display: flex;
    align-items: center;
}

#navbar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    margin-left: auto;
}



#navbar ul li {
    margin: 0 15px; /* Aumenta el espacio entre los elementos del navbar */
}

#navbar ul li a {
    text-decoration: none;
    color: rgb(192, 192, 192);
    font-size: 1em;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s, text-shadow 0.3s, transform 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-weight: 300;
}

#navbar ul li a:hover,
#navbar ul li a:focus {
    background-color: rgba(255, 250, 249, 0.1);
    color: #555555;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#navbar ul li a:active {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#logo {
    height: 80px;
    vertical-align: middle;
}

.divider {
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    
    
    margin-top: -40px; /* para compensar espacios */
}



#carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
  }

#carousel img {
    object-position: top center;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    object-fit: cover;
    filter: brightness(0.5); /* efecto de opacidad */
    z-index: 1;
}

.carousel-overlay-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    width: 80%;
    z-index: 2;
    font-weight: 300;
  
}

.carousel-overlay-centered h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 600;
}

.carousel-overlay-centered p {
    font-size: 1.2em;
    font-weight: 300;
}


.carousel-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: white;
    color: black;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}






#carousel img:hover {
    opacity: 1; /* Restaura la opacidad completa al pasar el ratón */
}
#footer {
  background: url('image/expande_tu_talento_ett_consultores_cover.jfif') no-repeat center center/cover;
  position: relative;
  padding: 100px 20px 50px;
  color: #1a1a1a;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

#footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.8); /* Capa blanca semitransparente */
  backdrop-filter: blur(3px); /* Difuminado suave */
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6); /* Blanco translúcido */
  border-radius: 0; /* Sin bordes redondeados */
}


.footer-logo {
  display: block;
  margin: 0 auto 20px;
  width: 90px;
}

.footer-content p,
.footer-content a {
  color: inherit;
  font-weight: normal;
  text-decoration: none; 
}


.footer-content a:hover {
  text-decoration: underline; /* Solo se subraya al pasar el mouse */
}

.hashtags {
  margin-top: 20px;
  font-size: 0.95em;
  font-weight: 600;
  color: #555;
}

.footer-rights {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  font-size: 0.85em;
  color: #666;
}
#footer {
  text-align: left;
  padding-left: 60px; /* mueve todo un poquito */
  background: none;
  position: relative;
  padding: 100px 20px 50px;
  color: #1a1a1a;
  text-align: center;
  font-family: 'Lato', sans-serif;
  overflow: hidden;
}

#footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -300px; /* MÁS a la izquierda todavía */
  width: calc(100% + 300px); /* Ensanchar más para que no se corte */
  height: 100%;
  background: url('image/expande_tu_talento_ett_consultores_cover (1).jfif') no-repeat left center/cover;
  filter: blur(5px) brightness(0.8);
  opacity: 0.8;
  z-index: 0;
}

.about-section {
    position: relative;
   
    padding: 100px 20px;
    display: flex;
    justify-content: center;
  }
  
  .about-card {
    position: relative;
    padding: 60px;
    width: 100%;
    max-width: 1200px; /* más ancho */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    color: white;
    background: url('image/ej2.png') no-repeat center center/cover;
  }
  .about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px); /* más suave */
    background-color: rgba(0, 0, 0, 0.15); /* menos opaco */
    z-index: 0;
    border-radius: 20px;
  }
  
  /* Para que el texto esté sobre el difuminado */
  .about-text {
    position: relative;
    z-index: 1;
  }
  .about-text h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .about-text h1 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
  }
  
  .about-text p {
    font-size: 1.1em;
    line-height: 1.6;
  }
  
  /* Animaciones que ya tienes */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .typewriter::after {
    content: '|';
    animation: blink 0.7s infinite;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
#services {
    padding: 60px 0;
    background-color: #fafafa;
    text-align: center;
}
.services-section {
    font-family: 'Lato', sans-serif;
  }
  .intro-text {
    font-size: 1.6em;
    font-weight: 300;
  }
  
#services h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #414141;
}

.services-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.services-header h2 {
  font-family: 'Lato', sans-serif;
  font-size: 2.5em;
  font-weight: 400;
  color: #222;
  margin-bottom: 50px;
  letter-spacing: 0.5px;
}

.services-icon {
    width: 50px;
    height: 50px;
}

.services-content {
    display: none; /* oculta las antiguas cards si todavía existen */
}



.clients-section {
  padding: 100px 20px;
  background: #f7f9fc;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.clients-section h2 {
  font-size: 2.5em; /* MÁS GRANDE */
  margin-bottom: 50px;
  color: #222; /* Más oscuro */
  font-weight: 400;
  letter-spacing: 0.5px;
}
.clients-section h1 {
  font-size: 1.2em; 
  font-weight: 400; 
  color: #666; 
  margin-top: 20px;
  text-align: center;
}

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px; /* Más separación entre logos */
  flex-wrap: wrap;
}

.clients-logos img {
  max-width: 180px; /* LOGOS MÁS GRANDES */
  height: auto;
  
  transition: filter 0.3s ease, transform 0.3s ease;
}

.clients-logos img:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.1); /* Efecto "pop" suave */
}



.specialization-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%; /* Cambiado de 100vw */
    margin: 0;
    padding: 0;
    gap: 0;
    max-width: 1200px; /* Agregado para controlar el ancho máximo */
    margin-left: auto;
    margin-right: auto;
}
.specialization-card {
    filter: grayscale(0%);
    transition: filter 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .specialization-card:hover {
    filter: grayscale(100%);
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  }
  
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.specialty {
    flex: 1;
    min-width: 180px;
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.specialty:hover {
    transform: scale(1.03);
}

.specialty-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    font-weight: bold;
    font-size: 1.4em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}
.specialization-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 60px;
    max-width: 1600px;
    margin: 0 auto;
  }
  
  .specialization-card {
    flex: 1 1 280px;
    max-width: 300px;
    height: 440px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .specialization-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }
  
  

  .specialization-card {
    height: 340px; /* bajamos un poco */
    background-size: cover;
    background-position: top center; /* mejor enfoque en rostros o acciones */
    position: relative;
    color: white;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .specialization-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  }
  
  .specialization-card h3 {
    font-size: 1em;
    margin-bottom: 5px;
    font-weight: 700;
  }
  
  .specialization-card p {
    font-size: 0.9em;
    margin: 0;
  }
  


  .contact-section {
    position: relative;
    background: url('image/c.1.png') no-repeat center center/cover;
    background-size: cover;
    text-align: center;
    padding: 120px 20px 80px;
    z-index: 1;
    overflow: hidden;
  }
  
  .contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* oscuridad suave */
    z-index: 0;
  }
  

.youtube-only {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.youtube-only iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.video-caption {
    color: white;
    font-size: 1.4em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 300;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  .video-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
  }

  #prev-btn {
    left: 20px;
  }

  #next-btn {
    right: 20px;
  }

  .linkedin-section {
    padding: 100px 40px;
    background: #f7f9fc;
    font-family: 'Lato', sans-serif;
  }
  
  .linkedin-section h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2.5em;
    font-weight: 400;
    color: #222;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
    text-align: center; /* CENTRADO BIEN */
    width: 100%; /* Esto ayuda a que el centrado se respete */
  }
  
  
  .linkedin-grid {
    display: flex;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
    gap: 40px;
  }
  
  .linkedin-company-card {
    flex: 1;
    background: white;
    border-radius: 8px; /* más sutil */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* más suave */
    padding: 20px; /* menos padding */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .linkedin-company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }
  
  .linkedin-company-img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
  }
  
  .linkedin-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0a66c2;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  .linkedin-btn:hover {
    background-color: #004182;
  }
  
  .linkedin-posts {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
  }
  
  .post-card {
    background: white;
    padding: 10px; /* menos padding */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 0.95em;
    color: #444;
    line-height: 1.5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }
  
  .post-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 8px;
  }
  
  .post-card p {
    font-size: 1em;
    color: #555;
  }
  
  .linkedin-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .linkedin-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  }
  
  .testimonials-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: #f7f9fc; /* fondo similar al ejemplo */
    padding: 80px 40px;
    font-family: 'Lato', sans-serif;
  }
  
  .testimonial-text {
    flex: 1;
    max-width: 400px;
  }
  
  .testimonial-text h2 {
    font-size: 2em;
    color: #33475b;
    margin-bottom: 20px;
    font-weight: 400; /* sin negrita exagerada */
  }
  
  .testimonials-btn {
    display: inline-block;
    background-color: #33475b;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
  }
  
  .testimonials-btn:hover {
    background-color: #223344;
  }
  
  .testimonial-card {
    flex: 2;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 700px;
  }
  
  .testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .testimonial-content {
    text-align: left;
  }
  
  .testimonial-quote {
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 10px;
    color: #333;
  }
  
  .testimonial-name {
    font-weight: bold;
    color: #1a1a1a;
  }
  
  .testimonial-role {
    color: #666;
    font-size: 0.95em;
  }
@media (max-width: 768px) {
  #navbar {
    position: static;
    background-color: white;
  }

  #navbar .container {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  #navbar ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    align-items: center;
  }

  #navbar ul li {
    margin: 10px 0;
    text-align: center;
    width: 100%;
  }

  #navbar ul li a {
    display: block;
    width: 100%;
    color: #333;
    padding: 12px 0;
    font-size: 1.1em;
    text-align: center;
  }

  #logo {
    height: 60px;
    margin-bottom: 10px;
  }



  .carousel-overlay-centered h2 {
    font-size: 1.5em;
  }

  .carousel-overlay-centered p {
    font-size: 1em;
  }

  @media (max-width: 768px) {
  .about-section {
    padding: 20px 10px;
  }

  .about-card {
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .about-text h2 {
    font-size: 1.2em;
    text-align: center;
    word-break: break-word;
  }

  .about-text h1 {
    font-size: 1em;
    text-align: center;
    word-break: break-word;
  }

  .about-text p {
    font-size: 0.85em;
    line-height: 1.4;
    text-align: justify;
    word-break: break-word;
    hyphens: auto;
  }
}


@media (max-width: 768px) {
  .services-header {
    flex-direction: column;
    gap: 10px;
  }

  .services-header h2 {
    font-size: 1.6em;
    text-align: center;
  }

  .services-icon {
    max-width: 50px;
    display: inline-block;
    margin-bottom: 20px;
  }

.specialization-logo-wrapper {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

  .intro-text {
    font-size: 1em;
    line-height: 1.4;
    padding: 0 15px;
    text-align: center;
    max-width: 90%;
    margin: 0 auto 20px auto;
  }
}

@media (max-width: 768px) {
  .specialization-grid {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 16px; /* un poco de aire a los lados */
  }

  .specialization-card {
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
  }

  .specialization-card h3,
  .specialization-card p {
    font-size: 0.9em;
    margin: 2px 0;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .intro-text {
    font-size: 0.95em;
    line-height: 1.5;
    text-align: left;
    max-width: 90%;
    margin: 0 auto 20px auto;
    padding: 0 10px;
  }
}




  .linkedin-grid {
    flex-direction: column;
  }

  .clients-logos {
    flex-direction: column;
    gap: 30px;
  }

  .youtube-only iframe {
    height: 250px;
  }

  .video-caption {
    font-size: 1em;
    padding: 15px;
  }
}
