/* Hero - Cocina y Restauración */
.hero-single {
  width: 100%;
  height: calc(100vh - 4rem);
  border-radius: 20px;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
}

/* Reusamos las clases existentes del slider */
.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(32, 32, 32, 0.4);
  z-index: 2;
  border-radius: 20px;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Posición predeterminada */
  z-index: 1;
  border-radius: 20px;
}

.slide-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 3;
  padding: 0;
}

.slide-text-container {
  color: var(--color-white);
  margin-left: 160px;
  max-width: 1000px;
  width: 100%;
  text-align: left;
  margin-top: 30vh;
}

.slide-subtitle {
  display: block;
  font-family: var(--font-rubik);
  font-size: 38px;
  font-weight: 400;
  font-style: normal;
  line-height: normal;
  margin-bottom: 0.5rem;
  color: var(--color-white);
  animation-delay: 0.2s;
}

.slide-title {
  font-family: var(--font-rubik);
  font-size: 80px;
  font-weight: 700;
  font-style: normal;
  line-height: normal;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  text-align: left;
  animation-delay: 0.4s;
}

/* Subrayado para la opción del menú activa */
.enlaces-menu li:first-child .enlace-menu,
.enlaces-menu li:first-child .enlace-menu.active {
  position: relative;
}

.active-panaderia::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -5px;
  width: 60px;
  height: 3px;
  border-radius: 1.5px;
  background-color: var(--color-main);
}

/* Aseguramos el borde redondeado para el contenedor slider */
.hero-slider-container {
  position: relative;
  width: 100%;
  max-width: min(1800px, 95vw);
  height: calc(100vh - 4rem);
  overflow: hidden;
  margin: 2rem auto;
  margin-top: 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Sección de introducción */
.intro-section {
  position: relative;
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  margin-top: 20dvh;
}

.intro-container {
  position: relative;
  padding-bottom: 50px;
}

.intro-text {
  font-family: var(--font-rubik);
  font-size: 48px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  color: var(--color-black);
  max-width: 1500px;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  margin-left: 12dvw;
}

.intro-text strong {
  font-weight: 700;
}

.intro-line {
  position: absolute;
  height: 3px;
  background-color: var(--color-main);
  margin-top: 17px;
  width: calc(62% - 2rem);
  margin-left: auto;
  right: 0;
}

/* Sección Qué voy a aprender */
.aprender-section {
  position: relative;
  width: 100%;
  padding-top: 8rem;
  padding-inline: 0;
  margin-top: 2rem;
}

.aprender-container {
  position: relative;
  max-width: min(1800px, 95vw);
  margin: 0 auto;
  padding: 0 11rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  justify-content: space-between;
}

.aprender-content {
  flex: 1;
  max-width: 39%;
}

.aprender-tag {
  display: inline-block;
  font-family: var(--font-rubik);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--color-main);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.aprender-title {
  font-family: var(--font-rubik);
  font-size: 40px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  color: var(--color-black);
  margin-bottom: 2rem;
}

.aprender-text {
  margin-bottom: 2.5rem;
}

.aprender-text p {
  max-width: 421px;
  font-family: var(--font-rubik);
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  color: var(--color-black);
  margin-bottom: 1.5rem;
}

.big-p {
  max-width: 434px !important;
  font-size: 24px !important;
  line-height: 28px !important;
}

.aprender-text p:last-child {
  margin-bottom: 0;
}

.aprender-text strong {
  font-weight: 700;
}

.aprender-content .btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-main);
  color: var(--color-white);
  font-family: var(--font-rubik);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.aprender-content .btn-primary:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
  z-index: -1;
}

.aprender-content .btn-primary:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(240, 125, 32, 0.3);
  background-image: linear-gradient(45deg, var(--color-main), #f59643);
}

.aprender-content .btn-primary:hover:before {
  width: 100%;
}

.aprender-content .btn-primary:active {
  transform: translateY(-2px) scale(1.01);
}

.aprender-image-container {
  flex: 1;
  position: relative;
  max-width: 50%;
  display: flex;
  justify-content: center;
}

.aprender-image-content {
  position: relative;
  width: 630px;
  height: 802px;
  background-color: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  background-image: url("https://campus.fundacionjuan23.org/wp-content/uploads/media/forma-tu-talento-j23.png");
  background-position: -9px 5px;
  background-repeat: no-repeat;
  background-size: 640px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.aprender-image-text {
  position: absolute;
  top: 4rem;
  left: 11rem;
  z-index: 2;
}

.aprender-image-title {
  font-family: var(--font-rubik);
  font-size: 60px;
  font-weight: 600;
  line-height: 57px;
  color: var(--color-main);
  margin-bottom: 0.5rem;
  text-align: center;
}

.aprender-image-subtitle {
  font-family: var(--font-rubik);
  margin-top: 34px;
  font-size: 32px;
  font-weight: 500;
  color: var(--color-white);
}

/* Sección Formación Real */
.formacion-section {
  position: relative;
  width: 100%;
  padding-top: 8rem;
  padding-bottom: 0rem;
  padding-inline: 0;
}

.formacion-container {
  position: relative;
  max-width: min(1800px, 95vw);
  margin: 0 auto;
  padding: 0 11rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  justify-content: space-between;
}

.formacion-content {
  flex: 1;
  max-width: 38%;
}

.formacion-tag {
  display: inline-block;
  font-family: var(--font-rubik);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--color-main);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.formacion-title {
  font-family: var(--font-rubik);
  font-size: 40px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  color: var(--color-black);
  margin-bottom: 2rem;
}

.formacion-list {
  margin-bottom: 2.5rem;
}

.formacion-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.formacion-list li {
  font-family: var(--font-rubik);
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  color: var(--color-black);
  margin-bottom: 0.75rem;
  padding-left: 25px;
  position: relative;
}

.formacion-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-black);
  font-weight: bold;
  font-size: 24px;
}

.formacion-content .btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-main);
  color: var(--color-white);
  font-family: var(--font-rubik);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.formacion-content .btn-primary:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
  z-index: -1;
}

.formacion-content .btn-primary:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(240, 125, 32, 0.3);
  background-image: linear-gradient(45deg, var(--color-main), #f59643);
}

.formacion-content .btn-primary:hover:before {
  width: 100%;
}

.formacion-content .btn-primary:active {
  transform: translateY(-2px) scale(1.01);
}

.formacion-image-container {
  flex: 1;
  position: relative;
  max-width: 50%;
  display: flex;
  justify-content: flex-start;
}

/* Mancha de color naranja */
.formacion-color-blob {
  position: absolute;
  width: 360px;
  height: 360px;
  right: 93px;
  top: 61%;
  transform: translateY(-50%);
  background-color: var(--color-main);
  border-radius: 300px 0 0 300px;
  z-index: 2;
}

.formacion-image-content {
  position: relative;
  width: 630px;
  height: 802px;
  background-color: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  background-image: url("https://campus.fundacionjuan23.org/wp-content/uploads/media/img-preparate-hoy-j23.png");
  background-position: -1px 0px;
  background-repeat: no-repeat;
  background-size: 633px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.formacion-image-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 2rem;
  padding-top: 50px;
}

.formacion-image-title {
  font-family: var(--font-rubik);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-main);
  margin-bottom: 0.5rem;
  text-align: center;
}

.formacion-image-subtitle {
  font-family: var(--font-rubik);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-black);
  text-align: center;
}

/* Sección Plan de Formación */
.formacion-plan-section {
  position: relative;
  width: 100%;
  padding: 8rem 0;
}

.formacion-plan-container {
  position: relative;
  max-width: min(1800px, 95vw);
  margin: 0 auto;
  padding: 0 11rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  justify-content: space-between;
}

.formacion-plan-content {
  flex: 1;
  max-width: 38%;
}

.formacion-plan-tag {
  display: inline-block;
  font-family: var(--font-rubik);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--color-main);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.formacion-plan-title {
  font-family: var(--font-rubik);
  font-size: 40px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  color: var(--color-black);
  margin-bottom: 2rem;
}

.formacion-plan-list {
  margin-bottom: 2.5rem;
}

.formacion-plan-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.formacion-plan-list li {
  font-family: var(--font-rubik);
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  color: var(--color-black);
  margin-bottom: 0.75rem;
  padding-left: 25px;
  position: relative;
}

.formacion-plan-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-black);
  font-weight: bold;
  font-size: 24px;
}

.formacion-plan-content .btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-main);
  color: var(--color-white);
  font-family: var(--font-rubik);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.formacion-plan-content .btn-primary:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
  z-index: -1;
}

.formacion-plan-content .btn-primary:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(240, 125, 32, 0.3);
  background-image: linear-gradient(45deg, var(--color-main), #f59643);
}

.formacion-plan-content .btn-primary:hover:before {
  width: 100%;
}

.formacion-plan-content .btn-primary:active {
  transform: translateY(-2px) scale(1.01);
}

.formacion-plan-image-container {
  flex: 1;
  position: relative;
  max-width: 50%;
  display: flex;
  justify-content: flex-end;
}

.formacion-plan-color-blob {
  position: absolute;
  width: 360px;
  height: 360px;
  right: 0px;
  top: 61%;
  transform: translateY(-50%);
  background-color: var(--color-main);
  border-radius: 300px 0px 0px 300px;
  z-index: 2;
}

.formacion-plan-image-content {
  position: relative;
  width: 630px;
  height: 802px;
  background-color: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  background-image: url("https://campus.fundacionjuan23.org/wp-content/uploads/media/img-pan-j23.png");
  background-position: 0px -69px;
  background-repeat: no-repeat;
  background-size: 604px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.formacion-plan-image-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 2rem;
  padding-top: 50px;
}

.formacion-plan-image-title {
  font-family: var(--font-rubik);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-main);
  margin-bottom: 0.5rem;
  text-align: center;
}

.formacion-plan-image-subtitle {
  font-family: var(--font-rubik);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-black);
  text-align: center;
}

/* Sección Profesionales */
.profesionales-section {
  position: relative;
  width: 100%;
  overflow: visible;
}

.profesionales-container {
  position: relative;
  max-width: min(1800px, 95vw);
  margin: 0 auto;
  padding-left: 11rem;
  display: flex;
  align-items: center;
}

.profesionales-line {
  position: relative;
  height: 4px;
  background-color: var(--color-main);
  margin-right: 2rem;
}

/* Extendemos la línea hacia la izquierda para que toque el borde */
.profesionales-line:before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100vw;
  background-color: var(--color-main);
  right: 100%;
  top: 0;
}

.profesionales-text {
  font-family: var(--font-rubik);
  font-size: 48px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  color: var(--color-black);
  max-width: 800px;
  margin-left: -34px;
}

.profesionales-text strong {
  font-weight: 600;
}

/* Media queries para la sección de profesionales */
@media (max-width: 1200px) {
  .profesionales-container {
    padding: 0 8rem;
  }

  .profesionales-text {
    font-size: 42px;
    max-width: 720px;
  }
}

@media (max-width: 992px) {
  .profesionales-container {
    padding: 0 4rem;
  }

  .profesionales-text {
    font-size: 38px;
    max-width: 650px;
  }
}

@media (max-width: 768px) {
  .profesionales-section {
    padding: 5rem 0;
  }

  .profesionales-container {
    padding: 0 2rem;
  }

  .profesionales-line {
    width: 80px;
    margin-right: 1.5rem;
  }

  .profesionales-text {
    font-size: 32px;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .profesionales-section {
    padding: 4rem 0;
  }

  .profesionales-container {
    padding: 0 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .profesionales-line {
    width: 60px;
    margin-right: 0;
    margin-bottom: 1.5rem;
  }

  .profesionales-text {
    font-size: 28px;
    margin-left: 0px;
  }
}

/* Media queries para responsividad */
@media (max-width: 1200px) {
  .slide-text-container {
    margin-left: 80px;
    max-width: 800px;
  }

  .slide-subtitle {
    font-size: 32px;
  }

  .slide-title {
    font-size: 70px;
  }

  .intro-text {
    font-size: 42px;
    max-width: 650px;
  }

  .aprender-container {
    gap: 3rem;
    padding: 0 8rem;
  }

  .aprender-content,
  .aprender-image-container {
    max-width: 45%;
  }

  .aprender-title {
    font-size: 36px;
  }

  .aprender-image-content {
    height: 480px;
  }

  .aprender-image-title {
    font-size: 52px;
  }

  .aprender-image-subtitle {
    font-size: 28px;
  }

  .formacion-container {
    gap: 3rem;
    padding: 0 8rem;
  }

  .formacion-content,
  .formacion-image-container {
    max-width: 45%;
  }

  .formacion-image-content {
    width: 580px;
    height: 700px;
  }

  .formacion-color-blob {
    width: 300px;
    height: 300px;
  }

  .formacion-plan-container {
    gap: 3rem;
    padding: 0 8rem;
  }

  .formacion-plan-content,
  .formacion-plan-image-container {
    max-width: 45%;
  }

  .formacion-plan-image-content {
    width: 580px;
    height: 700px;
  }

  .formacion-plan-color-blob {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 992px) {
  .slide-text-container {
    margin-left: 60px;
    max-width: 800px;
  }

  .slide-subtitle {
    font-size: 28px;
  }

  .slide-text-container {
    margin-left: 60px;
    margin-top: 25vh;
  }

  .intro-section {
    padding: 4rem 1rem;
  }

  .intro-text {
    font-size: 36px;
    max-width: 550px;
  }

  .aprender-container {
    flex-direction: column;
    gap: 4rem;
    padding: 0 4rem;
  }

  .aprender-content,
  .aprender-image-container {
    max-width: 100%;
  }

  .aprender-image-container {
    width: 100%;
    justify-content: center;
  }

  .aprender-image-content {
    width: 100%;
    height: 450px;
    max-width: 700px;
    margin: 0 auto;
    background-position: center;
  }

  .formacion-container {
    flex-direction: column;
    gap: 4rem;
    padding: 0 4rem;
  }

  .formacion-content,
  .formacion-image-container {
    max-width: 100%;
  }

  .formacion-image-container {
    width: 100%;
    justify-content: center;
  }

  .formacion-color-blob {
    width: 250px;
    height: 100%;
    right: calc(50% - 320px);
    top: 0;
    transform: none;
  }

  .formacion-image-content {
    width: 500px;
    height: 600px;
    margin: 0 auto;
  }

  .formacion-plan-container {
    flex-direction: column;
    gap: 4rem;
    padding: 0 4rem;
  }

  .formacion-plan-content,
  .formacion-plan-image-container {
    max-width: 100%;
  }

  .formacion-plan-image-container {
    width: 100%;
    justify-content: center;
  }

  .formacion-plan-color-blob {
    width: 250px;
    height: 100%;
    left: calc(50% - 320px);
    top: 0;
    transform: none;
  }

  .formacion-plan-image-content {
    width: 500px;
    height: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {

  .hero-single,
  .hero-slider-container {
    height: calc(100vh - 2rem);
  }

  .slide-text-container {
    margin-left: 40px;
    margin-right: 40px;
    max-width: calc(100% - 80px);
  }

  .slide-subtitle {
    font-size: 24px;
  }

  .intro-section {
    padding: 3rem 1rem;
  }

  .intro-container {
    padding: 0 1rem;
  }

  .intro-text {
    font-size: 32px;
    max-width: 100%;
  }

  .intro-line {
    display: none;
  }

  .aprender-section {
    padding: 4rem 0;
  }

  .aprender-container {
    padding: 0 2rem;
  }

  .aprender-content {
    padding: 0;
  }

  .aprender-title {
    font-size: 32px;
  }

  .aprender-text p {
    font-size: 16px;
    line-height: 22px;
  }

  .aprender-image-content {
    height: 400px;
  }

  .aprender-image-title {
    font-size: 46px;
  }

  .aprender-image-subtitle {
    font-size: 24px;
  }

  .formacion-container {
    padding: 0 2rem;
  }

  .formacion-image-container {
    margin-bottom: 1rem;
  }

  .formacion-color-blob {
    right: calc(50% - 250px);
  }

  .formacion-image-content {
    width: 450px;
    height: 550px;
  }

  .formacion-image-text {
    top: 2rem;
    left: 2rem;
  }

  .formacion-image-subtitle {
    font-size: 24px;
  }

  .formacion-plan-container {
    padding: 0 2rem;
  }

  .formacion-plan-image-container {
    margin-bottom: 1rem;
  }

  .formacion-plan-color-blob {
    left: calc(50% - 250px);
  }

  .formacion-plan-image-content {
    width: 450px;
    height: 550px;
  }

  .formacion-plan-image-text {
    top: 2rem;
    left: 2rem;
  }

  .formacion-plan-image-title {
    font-size: 48px;
  }

  .formacion-plan-image-subtitle {
    font-size: 24px;
  }
}

@media (max-width: 576px) {

  .hero-single,
  .hero-slider-container {
    height: calc(100vh - 1rem);
  }

  .slide-text-container {
    margin-left: 20px;
    margin-right: 20px;
    max-width: calc(100% - 40px);
  }

  .slide-subtitle {
    font-size: 22px;
  }

  .slide-title {
    font-size: 55px;
  }

  .intro-section {
    padding: 2.5rem 0.75rem;
    margin-top: 0dvh;
  }

  .intro-container {
    padding: 0 0.75rem;
  }

  .aprender-section {
    padding: 3rem 0;
  }

  .aprender-container {
    padding: 0 1.5rem;
  }

  .aprender-tag {
    font-size: 14px;
  }

  .aprender-title {
    font-size: 28px;
  }

  .aprender-image-text {
    top: 2rem;
    left: 2rem;
  }

  .aprender-image-content {
    height: 350px;
    background-position: -16px 0px;
    background-size: 402px;
  }

  a.btn-primary {
    word-wrap: break-word !important;
    font-size: 13px !important;
  }

  .formacion-section {
    padding-top: 3rem;
  }

  .aprender-image-title {
    font-size: 35px;
    line-height: 38px;
  }

  .aprender-image-subtitle {
    font-size: 22px;
    margin-top: 21px;
    margin-left: 30px;
  }

  .formacion-container {
    padding: 0 1.5rem;
  }

  .formacion-color-blob {
    width: 150px;
    right: calc(50% - 200px);
  }

  .formacion-image-content {
    width: 350px;
    height: 450px;
  }

  .formacion-image-text {
    top: -1.5rem;
    left: -0.5rem;
    text-align: left;
  }

  .formacion-image-title {
    font-size: 34px;
    text-align: left;
  }

  .formacion-plan-section {
    padding: 4rem 0;
  }

  .formacion-image-subtitle {
    display: none;
  }

  .formacion-plan-container {
    padding: 0 1.5rem;
  }

  .formacion-plan-color-blob {
    width: 150px;
    left: calc(50% - 200px);
  }

  .formacion-plan-image-content {
    width: 350px;
    height: 450px;
  }

  .formacion-plan-image-text {
    top: -0.5rem;
    left: -1.5rem;
  }

  .formacion-plan-image-title {
    font-size: 38px;
  }

  .formacion-plan-image-subtitle {
    font-size: 20px;
  }

  .formacion-plan-image-content {
    background-position: -148px;
  }
}

@media (max-width: 768px) {
  .slide-subtitle {
    font-size: 24px;
  }

  .slide-text-container {
    margin-left: 40px;
    margin-top: 20vh;
  }

  .intro-text {
    font-size: 32px;
    margin-left: 4dvw;
  }

  .aprender-container,
  .formacion-container,
  .formacion-plan-container {
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 2rem;
  }

  .aprender-content,
  .formacion-content,
  .formacion-plan-content {
    max-width: 100%;
    order: 2;
  }

  .aprender-image-container,
  .formacion-image-container,
  .formacion-plan-image-container {
    max-width: 100%;
    width: 100%;
    justify-content: center;
    order: 1;
  }

  .formacion-list li,
  .formacion-plan-list li {
    line-height: 1.4;
    margin-bottom: 15px;
  }

  /* Ajuste para botones en responsive */
  .btn-primary {
    font-size: 16px;
    padding: 12px 24px;
  }
}

@media (max-width: 576px) {

  .hero-single,
  .hero-slider-container {
    height: calc(100vh - 2rem);
    margin-top: 0.5rem;
  }

  .slide-subtitle {
    font-size: 22px;
  }

  .slide-title {
    font-size: 55px;
    margin-bottom: 1rem;
  }

  .slide-text-container {
    margin-left: 20px;
    max-width: calc(100% - 40px);
    margin-top: 15vh;
  }

  .intro-text {
    font-size: 32px;
    margin-left: 1rem;
    max-width: calc(100% - 2rem);
  }

  .intro-line {
    width: 50%;
  }

  .aprender-container,
  .formacion-container,
  .formacion-plan-container {
    padding: 0 1rem;
  }

  .aprender-tag,
  .formacion-tag,
  .formacion-plan-tag {
    font-size: 14px;
  }

  .aprender-title,
  .formacion-title,
  .formacion-plan-title {
    font-size: 28px;
  }

  .aprender-text p {
    font-size: 16px;
    line-height: 22px;
  }

  .big-p {
    font-size: 20px !important;
    line-height: 26px !important;
  }

  .aprender-image-content,
  .formacion-image-content,
  .formacion-plan-image-content {
    width: 100%;
    height: 400px;
  }

  .formacion-list li,
  .formacion-plan-list li {
    font-size: 15px;
    padding-left: 28px;
  }

  .formacion-list li::before,
  .formacion-plan-list li::before {
    width: 16px;
    height: 16px;
    top: 4px;
  }

  /* Ajuste para botones en responsive */
  .btn-primary {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* Ajustes adicionales para el responsive */
@media (max-width: 768px) {
  .intro-container {
    padding: 0 1.5rem;
  }

  /* Ajuste para la altura del hero */
  .hero-single {
    height: calc(100vh - 3rem);
  }

  /* Ajustes para estructuras de columnas en móvil */
  .aprender-content,
  .formacion-content,
  .formacion-plan-content {
    padding: 0 1rem;
  }

  .aprender-image-content,
  .formacion-image-content,
  .formacion-plan-image-content {
    margin: 0 auto;
    max-width: 90%;
  }
}

@media (max-width: 576px) {

  /* Ajustes adicionales para dispositivos pequeños */
  .hero-single {
    height: calc(100vh - 2rem);
  }

  .slide-text-container {
    margin-top: 12vh;
  }

  /* Asegurar que las imágenes sean proporcionales */
  .aprender-image-content,
  .formacion-image-content,
  .formacion-plan-image-content {
    height: 350px;
  }

  .formacion-image-content {
    background-size: 353px;
    background-position: -43px -59px;
  }
}

/* Ajustes para dispositivos muy pequeños */
@media (max-width: 375px) {
  .slide-title {
    font-size: 32px;
  }

  .slide-subtitle {
    font-size: 18px;
  }

  .intro-text {
    font-size: 22px;
  }

  .aprender-image-content,
  .formacion-image-content,
  .formacion-plan-image-content {
    height: 300px;
  }
}

/* Estilos para bullets personalizados en todas las listas */
.formacion-list ul,
.formacion-plan-list ul,
.aprender-text ul {
  list-style: none;
  padding-left: 0;
}

.formacion-list li,
.formacion-plan-list li,
.aprender-text li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
}

.formacion-list li::before,
.formacion-plan-list li::before,
.aprender-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  background-image: url("https://campus.fundacionjuan23.org/wp-content/uploads/media/bullet.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Sección Empleabilidad */
.empleabilidad-section {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 8rem 0;
}

.empleabilidad-container {
  position: relative;
  width: 75.7%;
  max-width: min(1800px, 95vw);
  margin: 0 auto;
  height: 700px;
  background-image: url("https://campus.fundacionjuan23.org/wp-content/uploads/media/compo_32.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  overflow: hidden;
}

.empleabilidad-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.empleabilidad-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 483px;
  height: 145px;
  background-color: #f07d20d1;
  border-radius: 90px 0 0 90px;
  padding: 0px 10px;
  margin-bottom: 100px;
}

.empleabilidad-text {
  font-family: var(--font-rubik);
  font-size: 40px;
  font-weight: 500;
  color: var(--color-white);
  text-align: center;
}

/* Media queries para la sección de empleabilidad */
@media (max-width: 1200px) {
  .empleabilidad-content {
    padding: 0 8rem;
  }

  .empleabilidad-box {
    width: 350px;
    height: 180px;
  }

  .empleabilidad-text {
    font-size: 26px;
  }
}

@media (max-width: 992px) {
  .empleabilidad-container {
    height: 450px;
  }

  .empleabilidad-content {
    padding: 0 4rem;
  }

  .empleabilidad-box {
    width: 300px;
    height: 100px;
  }

  .empleabilidad-text {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .empleabilidad-container {
    height: 400px;
  }

  .empleabilidad-content {
    padding: 0 2rem;
  }

  .empleabilidad-box {
    width: 250px;
    height: 100px;
    padding-right: 30px;
  }

  .empleabilidad-text {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .empleabilidad-section {
    margin: 0rem 0;
  }

  .empleabilidad-container {
    height: 350px;
    border-radius: 8px;
  }

  .empleabilidad-content {
    padding: 0;
  }

  .empleabilidad-box {
    width: 220px;
    height: 120px;
    padding-right: 20px;
  }

  .empleabilidad-text {
    font-size: 24px;
  }
}

/* Franja naranja con texto */
.orange-banner-container {
  position: absolute;
  width: 100%;
  bottom: 16vh;
  left: 0;
  z-index: 10;
}

.orange-banner {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--color-main);
  color: var(--color-white);
  height: 50px;
  padding: 0 30px;
  padding-left: 160px;
  border-radius: 0 25px 25px 0;
  width: auto;
  max-width: 758px;
  animation-delay: 0.6s;
}

.orange-banner::after {
  content: "";
  position: absolute;
  right: -25px;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: var(--color-main);
  border-radius: 0 25px 25px 0;
  display: none;
}

.orange-banner span {
  font-family: var(--font-rubik);
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  z-index: 1;
}

/* Media queries para la franja naranja */
@media (max-width: 1200px) {
  .orange-banner {
    height: 65px;
    padding-left: 80px;
    max-width: 591px;
  }

  .orange-banner span {
    font-size: 20px;
    white-space: normal;
    line-height: 1.3;
    padding: 5px 0;
    display: block;
  }
}

@media (max-width: 992px) {
  .orange-banner-container {
    bottom: 24%;
  }

  .orange-banner {
    height: 65px;
    padding-left: 40px;
    padding-right: 25px;
    border-radius: 0 20px 20px 0;
  }
}

@media (max-width: 913px) {
  .orange-banner-container {
    bottom: 21%;
  }

  .orange-banner {
    height: 65px;
    padding-left: 40px;
    padding-right: 25px;
    border-radius: 0 20px 20px 0;
  }
}

@media (max-width: 768px) {
  .orange-banner-container {
    bottom: 24%;
  }

  .orange-banner {
    height: 70px;
    padding-left: 20px;
    max-width: 550px;
  }

  .orange-banner span {
    white-space: normal;
    line-height: 1.2;
  }
}

@media (max-width: 576px) {
  .orange-banner-container {
    bottom: 25%;
  }

  .orange-banner {
    height: 75px;
    padding: 10px 15px 10px 15px;
    border-radius: 0 18px 18px 0;
    max-width: 480px;
  }

  .orange-banner span {
    font-size: 18px;
    line-height: 1.2;
  }
}

@media (max-width: 544px) {
  .orange-banner-container {
    bottom: 29%;
  }

  .orange-banner {
    max-width: 393px;
  }

  .orange-banner span {
    font-size: 18px;
    line-height: 1.2;
  }
}

@media (max-width: 452px) {
  .orange-banner-container {
    bottom: 26%;
  }

  .orange-banner {
    max-width: 263px;
  }

  .orange-banner span {
    font-size: 18px;
    line-height: 1.2;
  }

  .slide-title {
    font-size: 44px;
    margin-bottom: 1rem;
  }
}

/* Media queries para el hero principal */
@media (max-width: 992px) {
  .slide-image {
    /* Ajustar posición para tabletas */
    object-position: 65% center;
  }

  .hero-single {
    height: 70vh;
  }
}

@media (max-width: 768px) {
  .slide-image {
    /* Ajustar posición para móviles */
    object-position: 70% center;
  }

  .hero-single {
    height: 60vh;
  }

  .orange-banner-container {
    bottom: 10vh;
  }

  .slide-content {
    justify-content: center;
  }

  .slide-text-container {
    margin-left: 0;
    padding: 0 20px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .slide-image {
    /* Ajustar aún más para móviles pequeños, enfocando en el centro-derecha de la imagen */
    object-position: 80% center;
  }

  .hero-single {
    height: 80vh;
  }

  .orange-banner {
    padding-left: 30px;
    max-width: 300px;
    height: 60px;
  }

  .orange-banner span {
    font-size: 14px;
  }
}

/* Ajustes para dispositivos muy pequeños */
@media (max-width: 375px) {
  .orange-banner {
    height: 80px;
    max-width: 250px;
  }

  .orange-banner span {
    font-size: 12px;
  }

  .slide-title {
    font-size: 32px;
  }

  .slide-subtitle {
    font-size: 18px;
  }

  .intro-text {
    font-size: 22px;
  }

  .aprender-image-content,
  .formacion-image-content,
  .formacion-plan-image-content {
    height: 300px;
  }

  .slide-image {
    object-position: 85% center;
  }
}

/* new responsive */
@media screen and (max-width: 1550px) {
  .orange-banner-container {
    bottom: 9vh;
  }

  .aprender-section {
    margin-top: 0rem;
  }
}


@media screen and (max-width: 1300px) {

  .orange-banner-container {
    bottom: 9vh;
  }

  .aprender-image-content {
    background-position: 0px 34px;
    background-size: 552px;
  }

  .intro-text {
    margin-left: 10dvw;
  }

  .intro-line {
    width: calc(58% - 2rem);
  }

  .aprender-container {
    padding: 0 6rem;
  }

  .formacion-container {
    padding: 0 6rem;
  }

  .formacion-image-content {
    background-position: -22px 0px;
    background-size: 537px;
  }

  .formacion-plan-image-content {
    background-position: -67px -84px;
    background-size: 604px;
  }

  .formacion-plan-container {
    padding: 0 6rem;
  }

  .empleabilidad-container {
    height: 530px;
  }
}

@media screen and (max-width: 1200px) {
  .aprender-image-content {
    background-position: -152px center;
    background-size: 696px;
  }

  .aprender-image-text {
    top: 6rem;
  }

  .empleabilidad-content {
    padding: 0 0rem;
  }

  .empleabilidad-box {
    width: 300px;
    height: 100px;
  }

  .empleabilidad-text {
    font-size: 26px;
  }

  .partners-container {
    padding: 0 5rem;
  }

  .empleabilidad-container {
    height: 430px;
  }
}

@media screen and (max-width: 900px) {

  .orange-banner-container {
    bottom: 6vh;
  }

  .intro-section {
    padding: 0rem 0rem;
    margin-top: 0dvh;
  }

  .intro-text {
    margin-left: 7dvw;
  }

  .intro-line {
    margin-top: 0px;
  }

  .intro-text {
    max-width: 770px;
  }

  .big-p {
    max-width: 1034px !important;
  }

  .aprender-section {
    margin-top: 0rem;
  }

  .aprender-text p {
    max-width: 1034px !important;
  }

  .aprender-container {
    padding: 0 2rem;
  }

  .aprender-image-text {
    top: 1rem;
  }

  .aprender-image-subtitle {
    display: none;
  }

  .aprender-image-title {
    font-family: var(--font-rubik);
    font-size: 60px;
    font-weight: 600;
    line-height: 47px;
    text-align: center;
  }

  .formacion-image-subtitle {
    display: none;
  }

  .aprender-image-content {
    background-position: -3px -38px;
    background-size: 523px;
  }

  .aprender-image-content {
    max-width: 500px;
  }

  .formacion-container {
    padding: 0 2rem;
  }

  .formacion-plan-container {
    padding: 0 2rem;
  }

  .profesionales-text {
    margin-left: 0px;
  }

  .contact-container {
    padding: 0 2rem;
  }
}

@media screen and (max-width: 560px) {
  .orange-banner-container {
    bottom: 15%;
  }

  .orange-banner {
    max-width: 263px;
  }

  .orange-banner span {
    font-size: 18px;
    line-height: 1.2;
  }

  .slide-title {
    font-size: 44px;
    margin-bottom: 1rem;
  }

  .slide-text-container {
    margin-left: 1rem !important;
    bottom: 25vh !important;
  }

  .intro-text {
    margin-left: 0dvw;
  }

  .aprender-image-content {
    height: 490px;
  }

  .aprender-image-content {
    background-position: 15px 0px;
    background-size: 401px;
  }

  .aprender-container {
    padding: 0 1rem;
  }

  .formacion-container {
    padding: 0 1rem;
  }

  .formacion-image-content {
    background-position: -2px -72px;
    background-size: 355px;
  }

  .formacion-plan-container {
    padding: 0 1rem;
  }

  .formacion-plan-image-content {
    height: 446px;
  }

  .profesionales-section {
    padding: 0rem 0;
    padding-bottom: 2rem;
  }

  .empleabilidad-container {
    width: 89.7%;
  }

  .formacion-plan-image-content {
    background-position: -67px -254px;
    background-size: 604px;
  }
}

@media screen and (max-height: 650px) {

  .orange-banner-container {
    bottom: 7vh;
  }
}

@media screen and (max-height: 580px) {

  .orange-banner-container {
    bottom: 5vh;
  }
}

@media screen and (max-height: 550px) {
  .hero-slider-container {
    height: calc(100vh - 0rem);
  }

  .hero-single {
    height: calc(100vh - 1rem);
  }

  .orange-banner-container {
    bottom: 4vh;
  }
}

@media screen and (max-height: 580px) {

  .orange-banner-container {
    bottom: 5vh;
  }
}

@media screen and (max-height: 97px) {
  .hero-slider-container {
    height: calc(100vh - -4rem);
  }

  .hero-single {
    height: calc(100vh - -1rem);
  }
}

@media screen and (max-height: 490px) {

  .orange-banner-container {
    bottom: 6vh;
  }
}

@media screen and (max-height: 430px) {

  .orange-banner-container {
    display: none;
  }

  .hero-slider-container {
    height: 700px !important;
  }

  .hero-single {
    height: 700px;
  }
}