* {
    box-sizing: border-box;
}

.capacitaciones-wrapper *,
.capacitaciones-wrapper *::before,
.capacitaciones-wrapper *::after {
    box-sizing: border-box;
}

/*-------------------------------------------------------------------------------*/

.capacitaciones-container{
    width: 100%;
    margin-top: 0;
    position: relative;
    min-height: 600px;
    
}



.capacitaciones-introduccion{
    width: 100%;
    margin: auto;
    background: linear-gradient(to bottom, #082530 0%, #0D394F 50%, #10465B 100%);  
    border-radius: 0 0 0 180px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;


}

.capacitaciones-texto-encabezado{
    width: 67%;

}

.capacitaciones-introduccion h2{
    color: #ffffff;
    font-size: 60px;
    font-weight: 600;
    margin: auto;
    display: flex;
    width: 85%;
    text-align: center;
    padding: 80px 0 20px 0;

}

.capacitaciones-introduccion p{
    color: #ffffff;
    font-size:24px;
    font-weight: 300;
    padding: 0 0 8% 0;
    width: 85%;
    display: flex;
    margin: auto;


}

.capacitaciones-titulo{
    width: 70%;
    padding: 2% 0 0 0%;
    text-align:left;
    display: flex;
    align-items: center;
    margin: auto;
}

.capacitaciones-titulo h1{
    font-size: 96px;
    background-image: linear-gradient(to bottom, #082530 0%, #0D394F 50%, #10465B 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-left: 50px;
}

.capacitaciones-imagen img{
    width: 400px;
}

.capacitaciones-wrapper {
    width: 76%;
    margin: 0 0 0 11%;
    padding: 20px;
}

.capacitaciones-search {
    margin-bottom: 30px;
}

#search-capacitaciones {
    width: 40%;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

#search-capacitaciones:focus {
    outline: none;
    border-color: #10465B;
}

#results-count {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* Contenedor principal de lista */
.capacitaciones-lista-container {

    width: 100% ;



}

.capacitaciones-list {
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column; 
    gap: 15px;

}

/* TARJETA 3D - IMPORTANTE */
.capacitacion-card {
    perspective: 3000px;
    margin-bottom: 15px;
    height: 200px;
    display: none;
    width: 100%;
    overflow: hidden; /* AGREGADO: evita que el reverso se extienda */
    position: relative;

}

.capacitacion-card.visible {
    display: block;
}

.capacitacion-card-inner {
    position: relative;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(.4,.2,.2,1);;
    transform-style: preserve-3d;

}


.capacitacion-card-inner.is-flipped {
  transform: rotateX(180deg);
}

.capacitacion-card-inner.is-flipped .capacitacion-front {
  pointer-events: none;
}

.capacitacion-card-inner.is-flipped .capacitacion-back {
  pointer-events: auto;
}

/* eventos */
.capacitacion-front {
    pointer-events: auto;
}

.capacitacion-back {
    pointer-events: none;
}

.capacitacion-card-inner.capacitacion-back .capacitacion-front {
    pointer-events: none;
}

.capacitacion-card-inner.capacitacion-back .capacitacion-back {
    pointer-events: auto;
}



.capacitacion-front,
.capacitacion-back {
    position: absolute;
    /**/
    inset: 0;
    /**/
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;


}

/* giro */
.capacitacion-card-inner.capacitacion-back {
    /**/
    transform: rotateX(180deg);
}

.capacitacion-back {
    transform: rotateX(180deg);
}


/* ITEM BASE (usado en frente ) */
.capacitacion-item {
    color: #ffffff;
    border-radius: 0 25px 25px 25px;

    margin-bottom: 5px;
    display: flex;
    /*grid-template-columns: 80px 1fr auto 2fr auto 200px 120px;*/
    /*gap: 20px;*/
    align-items: center;
    /*transition: all 0.3s ease;*/
    height: 200px;
    padding-left: 60px;
    width: 100%;

    box-sizing: border-box;
    /* El padding se incluye en el 100% */


}

/* ITEM BASE (usado en reverso ) */
.capacitacion-item-back {

    border-radius: 25px 25px 25px 0;

    margin-bottom: 5px;
    display: flex;
    background-image: linear-gradient(to bottom, #E8EAEF 0%, #D9DADF 50%, #C2C2C4 100%);
    /*grid-template-columns: 80px 1fr auto 2fr auto 200px 120px;*/
    /*gap: 20px;*/
    align-items: center;
    justify-items: center;
    justify-content: space-between;
    /*transition: all 0.3s ease;*/
    height: 200px;
    padding: 0 60px 0 60px;
    width: 100%;
    box-sizing: border-box;


}

.capacitacion-item-verde{
    background: linear-gradient(to bottom, #184849 0%, #1C565A 50%, #226466 100%);  
}

.capacitacion-item-azul-claro{
    background: linear-gradient(to bottom, #082530 -30%, #0D394F 25%, #10465B 60%);
}

.capacitacion-item-azul-oscuro{
    background: linear-gradient(to bottom, #082530 0%, #0D394F 50%, #10465B 100%);
}

/* CÓDIGO (frente) */
.cap-codigo {
   font-weight: bold;
    color: #082530;
    background-color: #FFFFFF;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    font-weight: 300;
    border-radius: 20px 0 0 0;
}

/* CÓDIGO (reverso) */
.cap-codigo-back {
   font-weight: bold;
    color: #ffffff;
    background: linear-gradient(to bottom, #082530 -30%, #0D394F 25%, #10465B 60%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    font-weight: 300;
    border-radius: 20px 0 0 0;
}


/* FRENTE - elementos específicos */
.capacitacion-front .cap-titulo {
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
    width: 23%;
    padding: 0 20px 0 0;
    text-align: left;
}

.cap-separator {
    width: 4px;
    height: 120px;
    background: #ddd;
    margin-left: 40px;
}

.cap-separator-back {
    background: linear-gradient(to bottom, #082530 -30%, #0D394F 25%, #10465B 60%);
    width: 4px;
    height: 150px;
    margin-left: 40px;
}



.cap-separator-small {
    width: 4px;
    height: 70px;
    background: #ddd;
    margin-right: 40px;
    flex-shrink: 0;
}

.capacitacion-front .cap-descripcion {
    color: #ffffff;
    font-size: 14px;
    text-align: left;
    font-weight: 300;
    line-height: 1.1;
    width: 30%;
    padding: 0 20px 0 20px;
}



.capacitacion-front .cap-info {
    display: flex;
    flex-direction: column;
    width: 18%;
    margin-right: 60px;
    text-align: left;
}

.cap-forma {
    font-weight: 500;
    color: #ffffff;
    font-size: 16px;
    text-align: left;

}

.cap-presentador {
    color: #ffffff;
    font-size: 20px;
    font-weight: 200;
    text-align: left;
}

/* REVERSO - elementos específicos */
.cap-destinatarios {
    display: flex;
    flex-direction: column;
    width: 25%;
    color: #000000;
    margin: 0 40px 0 40px;
    text-align: left;
   /* padding: 0 4% 0 4%; */
}
.cap-destinatarios strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
}

.cap-destinatarios p {
    margin: -8px 0 0 0;
    font-size: 20px;
    line-height: -1.4;
    font-weight: 300;
    text-align: left;
}

.cap-temario {
    
    display: flex;
    color: #000000;
    overflow: hidden;
    width: 36%;
    margin: 0 60px 0 40px;
}

.capacitacion-back .cap-temario strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.capacitacion-back .cap-temario ul {
    margin: 0 0 0 60px;
    padding: 5px 0 5px 0;
    list-style: disc;
}

.capacitacion-back .cap-temario li {
    font-size: 18px;
    font-weight: 500;
    text-align: left;
}

/* BOTÓN (frente ) */
.cap-boton {
    flex-shrink: 0;
}

/* BOTÓN (back ) */
.cap-boton-back a{
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #082530 -30%, #0D394F 25%, #10465B 60%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 18px;
    transition: all 0.3s;
    width: 130px;
    height: 50px;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.cap-boton-back a:hover{
    background: linear-gradient(to bottom, #082530 -30%, #0D394F 25%, #10465B 60%);
    color: #ffffff;
}

.btn-acceder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #217DA2;
    text-decoration: none;
    border-radius: 18px;
    transition: all 0.3s;
    width: 130px;
    height: 50px;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.btn-acceder:hover {
    background: #e0e0e0;
    color: #1a5f7e;
    transform: scale(1.05);
}

/* NAVEGACIÓN */
.capacitaciones-navigation {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.page-indicator {
    font-size: 18px;
    color: #555;
    font-weight: 500;
    min-width: 80px;
}

.btn-load-more, .btn-load-less {
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 9999;
}

.btn-load-more:hover, .btn-load-less:hover {
    transform: translateY(-2px);
}

.btn-load-more.hidden, .btn-load-less.hidden {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .capacitacion-card {
        height: auto;
        min-height: 200px;
    }
    
    .capacitacion-item {
        padding: 30px;
    }
    
    .capacitacion-front .cap-titulo {
        font-size: 24px;
    }
    
    .capacitacion-front .cap-descripcion {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .capacitacion-card {
        height: auto;
        min-height: 300px;
    }
    
    .capacitacion-item {
        flex-direction: column;
        padding: 30px;
        gap: 15px;
    }
    
    .cap-codigo {
        margin: 0 auto;
    }
    
    .capacitacion-front .cap-titulo,
    .capacitacion-front .cap-descripcion,
    .capacitacion-front .cap-info {
        flex: 1 1 auto;
        width: 100%;
        text-align: center;
    }
    
    .cap-separator,
    .cap-separator-small {
        width: 100%;
        height: 2px;
        margin: 10px 0;
    }
    
    .capacitacion-back .cap-destinatarios,
    .capacitacion-back .cap-temario {
        flex: 1 1 auto;
        width: 100%;
    }
}


/*-----------------Áreas de trabajo ----------------------*/

.areastrabajo-container{
    width: 100%;
    background: linear-gradient(45deg, #10465B 0%, #0D394F 50%, #082530 100%);
    padding: 60px 0 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.areastrabajo-separador{
    width: 76%;
    height: 4px;
    background-color: #ffffff;
    margin: auto;
    
}

.areastrabajo-titulo{
    width: 60%;
    text-align: center;
    margin-top: 30px;
}

.areastrabajo-titulo h1{
    font-size: 62px;
    color: #ffffff;
}

.areastrabajo-texto{
    width: 79%;
    text-align: center;
}

.areastrabajo-texto b{
    font-weight: bold;
}

.areastrabajo-texto p{
    font-size: 40px;
    color: #ffffff;
    font-weight: 300;
    letter-spacing:-0.8px;
}

.areastrabajo-imagen{
    width: 78%;
    margin: 50px auto;
    position: relative;
     color: #ffffff;
     display: flex;
        align-items: center;
        
}


.areastrabajo-imagen h1{
    font-size: 50px;
    font-weight: 500;
    position: absolute;
    top: 27%;
    left: 22%;
    line-height: 52px;
    letter-spacing: -2.2px;
   

}


.areastrabajo-imagen h2{
    font-size: 50px;
    font-weight: 500;
    position: absolute;
    top: 36%;
    left: 54%;
    letter-spacing: -2.2px;

}

.areastrabajo-imagen:hover{
    transform: scale(1.02);
}

.areastrabajo-imagen img{
    max-height: 100%;
    max-width: 100% ; 
    height: auto
}


/*--------------------------------------------------------*/

/*------------AREAS - TARJETAS ---------------------------*/

.areascards-container{
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding-top: 80px;
    padding-bottom: 10px;
}

.areascards-cards{
    width: 78%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;

}

.areascards-card{
    display: flex;
    align-items: center;
    width: 440px;
    height: 440px;
    margin-bottom: 30px;
    text-align: center;
    perspective: 1000px;

}

/* Elemento que rota */
.card-inner {

  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Giro al pasar el mouse */
.areascards-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Caras */
.card-front,
.card-back {
  border-radius: 25px;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
}


.card-front h2{
    width: 80%;
    margin: auto;
    font-size: 30px;
    font-weight: 300;
    color: #ffffff;
}

/* Dorso */
.card-back {
  background: #eeeded;
  transform: rotateY(180deg);
}

.card-back p{
    width: 80%;
    margin: auto;
    font-size: 16px;
    font-weight: 300;
    color: #000000;
    text-align:center;
}



/*--------------------------------------------------------*/

/*---------  MODAL PARA ENVIAR MAIL CON CONSULTA --------- */

#modal-capacitacion{
  position: fixed;
  width: 30%;
  z-index: 10000; 
  padding: 40px;
  border-radius: 25px;
  border: 4px solid transparent;
   background:
        linear-gradient(white, white) padding-box,
        linear-gradient(to bottom, #184849 0%, #1C565A 50%, #226466 100%) border-box;
  border-image-slice: 1;
  margin: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Ajusta el centro del elemento */
  background-color: #ffffff;

}

#modal-capacitacion-nombre{
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

#form-capacitacion{
    display: flex;
    flex-direction: column;
    text-align: left;
}


#modal-titulo{
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

#form-capacitacion label{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

#form-capacitacion input{
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
    border: 2px solid #10465B;
    border-radius: 5px;
    transition: border-color 0.3s;
}

#form-capacitacion button{
    margin-top: 20px;
    width: 100px;
    height: 40px;
    background-color: #1C565A;
    color: #ffffff;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}





