* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.hero-container {
  position: relative;
  height: 100%;
}

.hero-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(122, 122, 122, 0.26);
  z-index: 1;
}

.hero-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: white;
  flex-direction: row;
  gap: 10px;
}

.hero-text .titulo {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  flex: 1;
  text-align: right;
}

.hero-text .info {
  text-align: left;
  padding-left: 40px;
  flex: 2;
}

@media (min-width: 769px) {
  .hero-overlay::before {
    clip-path: polygon(100% 100%, 100% 70%, 0 100%);
  }
}

@media (max-width: 768px) {

  .hero {
    position: relative;
    height: 100vh;
    max-height: 600px;
    overflow: hidden;
  }

  .hero-container {
    height: 100%;
  }

  .hero-container img {
    height: 100%;
    object-fit: cover;
  }

  .hero-overlay {
    height: 50%;
  }

  .hero-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    padding: 0;
    color: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: none;
  }

  .hero-text .titulo {
    font-size: 50px;
    margin: 0;
    padding: 0;
  }

  .hero-text .info {
    padding-left: 0;
    text-align: left;
  }

  .hero-overlay::before {
    display: none;
  }
}

.fondo-oscuro {
  background-color: #242424;
  color: white;
}

.fondo-blanco {
  background-color: white;
  color: #111;
}


.fondo-blanco h3,
.fondo-blanco h4 {
  color: #111;
}

.fondo-blanco p {
  color: #333;
}

.grid-4-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.grid-2-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-certificaciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: center;
}


.card {   
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #ccc;
  border-radius: 6px;
}

.card.top-img img {
  order: -1;
  margin-bottom: 15px;
}

.card.bottom-img img {
  order: 2;
  margin-top: 15px;
}

.card h4 {
  font-size: 18px;
  margin: 15px 0 10px;
}

.card p {
  font-size: 14px;
  color: #ccc;
}


.consultoria-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.consultoria-section {
  padding: 60px 40px; 
  margin: 60px 0;
  background-color: #ffffff;
}

.consultoria-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  min-height: 400px;
  padding: 0 20px; 
}

.consultoria-texto {
  flex: 1 1 500px;
}

.titulo {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'Segoe UI', sans-serif;
}

.subtitulo {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  font-family: 'Helvetica Neue', sans-serif;
}

.descripcion {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 30px;
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
}

.boton-contacto {
  display: inline-block;
  background-color: #6ea8fe;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.boton-contacto:hover {
  background-color: #4a90e2;
}

.consultoria-imagen {
  flex: 1 1 400px;
  text-align: center;
}

.consultoria-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  max-height: 350px; 
}

@media (max-width: 768px) {

  .consultoria-section {
    padding: 40px 20px; 
  }

  .consultoria-container {
    padding: 0;
  }



  .consultoria-texto {
    text-align: center;
  }

  .titulo {
    font-size: 2rem;
  }

  .subtitulo {
    font-size: 1.2rem;
  }

  .descripcion {
    font-size: 0.95rem;
  }

  .consultoria-imagen img {
    max-height: none;
  }
}

.ia {
  padding: 60px 20px;
}

.ia-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.ia-container img {
  width: 100%;
  max-width: 500px;
  height: 250px;
  background-color: #ccc;
  object-fit: cover;
  border-radius: 8px;
}

.ia-info {
  max-width: 500px;
  text-align: right;
}

.ia-info h4 {
  font-size: 20px;
  margin: 15px 0;
}

.ia-info button {
  background-color: #3b82f6;
  color: white;
  padding: 12px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}

.ia-info button:hover {
  background-color: #2563eb;
}

.certificaciones {
  padding: 60px 20px;
}

.certificaciones-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
}

.certificaciones-imagenes {
  display: flex;
  gap: 30px; 
  flex: 1 1 55%;
  justify-content: center;
}

.cert-img img {
  width: 180px; 
  height: 220px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  
}


.cert-info {
  flex: 1 1 40%;
  max-width: 380px;
  padding-left: 10px; 
}

.cert-info h3 {
  font-size: 26px;
  margin-bottom: 15px;
}

.cert-info p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #777;
}

.cert-info button {
  background-color: #3b82f6;
  color: white;
  padding: 12px 22px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.cert-info button:hover {
  background-color: #2563eb;
}


@media (max-width: 992px) {
  .certificaciones-grid {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .certificaciones-imagenes {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .cert-img img {
    width: 140px;
    height: 180px;
  }

  .cert-info {
    padding-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .grid-4-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2-columns {
    grid-template-columns: 1fr;
  }

  .ia-container {
    flex-direction: column;
    text-align: center;
  }

  .ia-info {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .grid-4-columns {
    grid-template-columns: 1fr;
  }

  .hero-container h1 {
    font-size: 32px;
    right: 20px;
    bottom: 10px;
  }

  .capacitacion h3,
  .ia h3 {
    font-size: 22px;
  }

  .capacitacion p,
  .ia p{
    font-size: 14px;
  }
}

.pearson-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.pearson-texto {
  flex: 1 1 500px;
  padding-left: 30px;
}

.pearson-texto h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.pearson-texto p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 90%;
}

.pearson-texto ul {
  padding-left: 30px;
  margin-bottom: 20px;
}

.pearson-texto li {
  margin-bottom: 10px;
  font-size: 15px;
}

.boton-pearson {
  display: inline-block;
  background-color: #3b82f6;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-left: 30px;
}

.boton-pearson:hover {
  background-color: #2563eb;
}

.pearson-imagen {
  flex: 1 1 400px;
  text-align: center;
}

.pearson-imagen img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  object-fit: cover;
  height: auto;
}

.pearson-beneficios {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.beneficio-card {
  flex: 1 1 300px;
  color: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 420px;
}

.beneficio-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.beneficio-card p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 72px; 
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.beneficio-card img {
  width: 100%;
  height: 220px;
  border-radius: 8px;
}


@media (max-width: 992px) {
  .pearson-container {
    flex-direction: column;
    text-align: center;
  }

  .pearson-texto {
    text-align: center;
  }

  .pearson-beneficios {
    flex-direction: column;
    align-items: center;
  }

  .beneficio-card {
    max-width: 90%;
  }
}
