/* ----------- */ 
.performance {
  background-color: var(--color-principal);
  color: var(--color-terciario);
  position: relative;
  overflow: hidden;
}

.container-performance {
  max-width: 1250px;
  margin: 0 auto;
  padding: 60px 40px;
}

.performance__wrapper {
  display: flex;
  min-height: 450px;
}

.performance__image {
  width: 50vw;
  height: 450px;
  margin: 30px 0;
  margin-left: auto;
}

.performance__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.performance__content {
  display: flex;
  align-items: center;
  width: 50%;
}

.performance__text h2 {
  margin-bottom: 10px;
}


.performance__text li {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
    .performance__wrapper {
        flex-direction: column;
    }

    .performance__text h3 {
        text-align: center;
    }

    .performance__image {
        width: 100%;
        height: 400px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .performance__content {
        width: 100%;
    }

    .container-performance {
        padding: 40px 40px;
    }
}

/* -------------- */
.cards-section-desarrollo {
  position: relative; 
  padding: 60px 40px;
  background: url('../recursos-multimedia/desarrollo-carrera/cards-background.webp') center/cover no-repeat;
}

.cards-section-desarrollo::before {
  content: "";
  position: absolute;
  inset: 0; 
  background: rgba(237, 35, 29, 0.7); 
  z-index: 1;
}

.cards-container-desarrollo {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.card-desarrollo {
  background: var(--color-terciario);
  color: var(--color-principal);
  width: 100%;
  flex: 1;
  overflow: hidden;
  transition: all 0.4s ease;
  border-radius: 4px;
}

.card-desarrollo:hover {
  background-color: var(--color-terciario); /* azul */
  color: var(--color-principal);
}

.card-desarrollo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: 50% 15%;
}

.card-desarrollo-body {
  padding: 30px;
  text-align: center;
}

.card-desarrollo-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1.5s ease;
  text-align: left;
}

.card-desarrollo:hover {
  transform: translateY(-5px);
}

.card-desarrollo:hover .card-desarrollo-extra {
  max-height: 300px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .cards-container-desarrollo {
    flex-direction: column;
  }

  /* 
  .card-gestion-extra {
    max-height: none;
  }*/
}

.cards-info {
    padding: 60px 40px;
    position: relative; 
    background: url('../recursos-multimedia/desarrollo-carrera/cards-background.webp') center/cover no-repeat;
}

.cards-info::before {
  content: "";
  position: absolute;
  inset: 0; 
  background: rgba(124, 159, 204, 0.7); 
  z-index: 1;
}

.cards-info-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    z-index: 2;
    position: relative;

    align-items: stretch;
}

.card-info {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--color-principal);
    transition: transform 0.6s ease;

    display: flex;
    flex-direction: column;
}

.card-info:hover {
  transform: scale(1.03);
}

.card-info-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    margin: 30px 30px 10px 30px;
    border-radius: 16px;
}

.card-info-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* empieza oculto */
  background: rgba(0, 0, 0, 0.4);
  transition: height 0.6s ease;
}

.card-info:hover .overlay {
  height: 100%;
}

.card-info-body {
    padding: 10px 40px 20px 40px;
    color: var(--color-terciario);

    flex: 1; 
    display: flex;
    flex-direction: column;     
    justify-content: center;
}

@media (max-width: 900px) {
    .cards-info-container {
        flex-direction: column;
    }

    .card-info-body h4{
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cards-info-container {
        flex-direction: column;
    }

    .card-info-body h4{
        text-align: center;
    }

    .card-info-body {
        padding: 10px 25px 20px 25px;
    }
}


/* ---------- */ 
.success-section {
  padding: 60px 40px;
  position: relative;
  background: url('../recursos-multimedia/desarrollo-carrera/success-background.webp') center/cover no-repeat;
}

.success-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 79, 140, 0.75);
  z-index: 1;
}

.success-container {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  column-gap:2%;
  row-gap:15px;
  position: relative;
  z-index: 2;
}

.conekta-logo{
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    display: block;
}

.success-text {
  flex: 1;
  min-width: 0;
  color: var(--color-terciario);
}

.success-text h2 {
  margin-bottom: 20px;
}

.success-text ul {
  padding-left: 25px;
}

.success-text li {
  margin-top: 15px;
}

.success-text ul ul{
    /*margin-top: 0px;*/
    padding-left: 30px;
}

.success-text ul ul li{
    margin-top: 0px;
    list-style-type: circle; 
}

.success-ol{
    padding-left: 0px;
    margin-top: 20px;
}

.success-ol > li{
    margin-top: 15px;
    /*line-height: 1.5;*/
}

.success-ol > li::marker{
    font-weight: bold;
    color: var(--color-terciario);
}

.success-image {
  flex: 1;
  display: flex;
  justify-content: center;
  flex: 0 0 380px;
}

.success-image img {
  width: 100%;
  max-width: 380px;
  height: 100%;  
  object-fit: cover;

}

@media (max-width: 1300px) {
    .success-container {
        flex-direction: column;
        text-align: center;
    }
    
    .conekta-logo{
        margin: 0 auto 25px auto;
    }

    .success-text ul {
        text-align: left;
    }

    .success-text ol {
        text-align: left;
    }

    .success-image img {
        max-width: 300px;
        margin-left: 10px;
    }

    .success-section {
        padding: 60px 40px;
    }
}

/* --------------------------- */
.video-section{
    width: 100%;
    background: var(--color-quinto);
    padding: 60px 40px;
    display: flex;
    justify-content: center;
}

.video-container{
    width: 100%;
    max-width: 1250px;
}

.video-container h3{
    text-align: center;
    color: var(--color-terciario);
    margin-bottom: 30px;
}

.video-wrapper{
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.video-wrapper iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px){

    .video-section{
        padding: 50px 20px;
    }

    .video-wrapper{
        border-radius: 16px;
    }
}
