/*ULTIMOS TALLERES Y CONFERENCIAS*/

.ult-conferencias-fondo {
    min-height: 900px;
    position: relative;
    z-index: -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ult-conferencias-fondo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Imgs/fotos\ nuevas\ juanjo/quieres saber mas.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -1;
}

.ult-talleres {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    z-index: 1;
    text-align: center;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.ult-talleres::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0B4141;
    opacity: 0.7;
    z-index: -1;
}

.lista-intro {
    opacity: 1;
    color: #b1b1b1;
    padding: 20px 40px 0 40px;
    text-align: center;
    box-sizing: border-box;
    max-width: 900px;
    margin: 0 auto;
}

.lista-intro h1 {
    color: white;
    font-weight: bolder;
    font-size: 36px;
}

.lista-intro hr {
    position: relative;
    width: 0;
    height: 4px;
    background-color: #0B4141;
    border: none;
    margin: 0 auto 20px auto;
    border-radius: 2px;
    animation: underline-grow 1s ease-in-out forwards;
}

.lista-talleres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    font-size: 18px;
    width: 100%;
    margin-top: 20px;


}

.lista {
    position: relative;
    width: 100%;
    max-width: 900px;
    color: #e0e0e0;
    box-sizing: border-box;
    text-align: center;
    padding: 0;
    margin: 0;
}



.lista ul li {

    padding: 10px 20px 10px 0;
    margin: 0 auto;
    line-height: 1.4;
    font-size: 20px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* Separador horizontal */
    max-width: 600px;
    box-sizing: border-box;
    list-style: none;

}

.lista ul li:last-child {
    border-bottom: none;
}


/* RESPONSIVE BREAKPOINTS */

@media (max-width: 1024px) {
    .ult-talleres {
        padding: 20px;
    }

    .lista-talleres {
        flex-direction: column;
        align-items: center;
    }

    .lista {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .lista-intro h1 {
        font-size: 28px;
    }

    .lista {
        padding: 20px;
        font-size: 16px;
    }

    .lista ul {
        line-height: 28px;
    }
}


/*INTRO*/
.intro-seccion {
    padding: 80px 5%;
    background-color: #ffffff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333333;
}

.intro-contenedor {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    align-items: flex-start;
}

/* Lado de la Imagen */
.intro-imagen {
    flex: 1;
    position: sticky; 
    top: 50px;
}

.intro-imagen img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 20px 20px 0px #0B4141;
    object-fit: cover;
}

/* Lado del Texto */
.intro-contenido {
    flex: 1.2;
  
}

.intro-contenido:nth-of-type(1) {
      text-align:center;
}

.intro-subtitulo {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #888888;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.intro-contenido h1, .intro-contenido h2 {
    font-size: 2.5rem;
    margin: 10px 0;
    color: #1a1a1a;
    line-height: 1.2;
}

.intro-separador {
    width: 80px;
    height: 4px;
    background-color: #c0a060;
    border: none;
    margin: 20px 0 30px 0;
}

.comentarios-separador{
    width: 80px;
    height: 4px;
    background-color: #0B4141;
    border: none;
    margin: 20px auto 40px auto;
}
/* Párrafos */
.intro-descripcion p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444444;
}


/* Botón de Acción */
.contenedor-boton {
    margin-top: 40px;
}

.boton-accion {
    display: inline-block;
    padding: 15px 35px;
    background-color: #0B4141;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-accion:hover {
    background-color: #c0a060;
    transform: translateY(-3px);
}

/* Responsivo para móviles y tablets */
@media (max-width: 992px) {
    .intro-contenedor {
        flex-direction: column;
        gap: 40px;
    }
    
    .intro-imagen {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }

    .intro-imagen img {
        box-shadow: 15px 15px 0px #0B4141;
    }

    .intro-contenido h1 {
        font-size: 2rem;
    }

    .intro-seccion {
        padding: 50px 5%;
    }
}

@keyframes underline-grow1 {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

/*VIDEOS*/

.container {
    display: flex;
    gap: 36px;
    background-color: #121212;
    padding: 40px 20px;
    justify-content: center;
    text-align: center;
    margin: 20px;
}


/*Sección Grande*/

.section-grande {
    position: relative;
    border: solid 2px gray;
    color: #e0e0e0;
    text-align: justify;
    width: 1100px;
    min-width: 250px;
    min-height: 472px;
    height: 550px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 0;

}

.video,
#video-element,
#video-element-pequeño,
#video-element-pequeño2,
#video-element-pequeño3,
#video-element-pequeño4,
#video-element-pequeño5 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    min-width: 150px;
}

.section-grande::before,
.section-pequeña::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ffd8d800, #c3222234);
    z-index: 1;
    pointer-events: none;
    /* deja pasar clics */
    transition: opacity 0.6s ease;
    opacity: 0;
}

.section-grande h1,
.section-grande p {
    position: absolute;
    bottom: 10px;
    left: 36px;
    line-height: 4;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    z-index: 2;
}

.section-grande h1 {
    margin-bottom: 26px;
}

.section-grande p {
    color: #000000;
    font-weight: bolder;
}

/*Sección Grande Hover*/

.section-grande:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, #ffd8d800, #0B414134);
    border: #0B4141 solid 2px;
}

.section-grande:hover::before,
.section-pequeña:hover::before {
    opacity: 1;
}

.section-grande:hover h1,
.section-grande:hover p,
.section-grande:hover .play-button {
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


.section-grande .play-button {
    position: absolute;
    bottom: 48px;
    right: 36px;
    height: 50px;
    width: 50px;
    border-radius: 100%;
    background-color: #0B4141;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 20px;
    line-height: 50px;
    text-align: center;
    z-index: 1;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


/*Sección Grande Hover*/

.section-grande:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, #ffd8d800, #0B414134);
    border: #0B4141 solid 2px;
}

.section-grande:hover h1,
.section-grande:hover p,
.section-grande:hover .play-button {
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


/*Secciones Pequeñas*/

.section-divided {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #e0e0e0;
    text-align: justify;
    width: 550px;
    min-width: 190px;
    max-height: 550px;
    box-sizing: border-box;
    overflow-y: auto;
    padding-right: 10px
}

.section-divided::-webkit-scrollbar {
    width: 10px;
}

.section-divided::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 10px;
}

.section-divided::-webkit-scrollbar-thumb {
    background: #0B4141;
    border-radius: 10px;
}

.section-divided::-webkit-scrollbar-thumb:hover {
    background: #074040;
}

.section-pequeña {
    position: relative;
    border: solid 2px gray;
    color: #e0e0e0;
    flex: 1 1 45%;
    height: 267px;
    width: auto;
    min-width: 150px;
    box-sizing: border-box;
    font-size: small;
    overflow: hidden;
    object-fit: cover;
    z-index: 0;
}


.section-pequeña h1,
.section-pequeña p {
    position: absolute;
    bottom: 5px;
    left: 18px;
    line-height: 2;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    z-index: 2;
}

.section-pequeña h1 {
    margin-bottom: 26px;
}

.section-pequeña p {
    color: #000000;
    font-weight: bolder;
}

.section-pequeña .play-button {
    position: absolute;
    bottom: 26.5px;
    right: 18px;
    height: 37.5px;
    width: 37.5px;
    border-radius: 100%;
    background-color: #0B4141;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 15px;
    line-height: 25px;
    text-align: center;
    z-index: 1;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/*Secciones Pequeñas Hover*/

.section-pequeña:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

    background: linear-gradient(to bottom, #ffd8d800, #0B414134);
    border: #0B4141 solid 2px;
}

.section-pequeña:hover h1,
.section-pequeña:hover p,
.section-pequeña:hover .play-button {
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (max-width: 768px) {

    .container{
        gap: 18px;
    }

    .section-grande .play-button,
    .section-pequeña .play-button {
        top: 50%;
        left: 50%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, -50%);
    }

    .section-pequeña:hover .play-button,
    .section-grande:hover .play-button {
        transform: translate(-50%, -50%) scale(1.1);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;

    }

    .section-pequeña h1,
    .section-pequeña p,
    .section-grande h1,
    .section-grande p {
        transform: none;
        transition: none;
        visibility: hidden;
    }



}

/*COMENTARIOS*/
.testimonios-seccion {
    padding: 80px 5%;
    background-color: #f9fbf6; 
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Encabezado */
.testimonios-intro {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.testimonios-subtitulo {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #888888;
    font-weight: bold;
}

.testimonios-titulo {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin: 10px 0;
}

.testimonios-separador {
    width: 80px;
    height: 4px;
    background-color: #c0a060;
    border: none;
    margin: 20px auto;
}

.testimonios-descripcion {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.testimonios-descripcion a{
    text-decoration: none;
    font-weight: bold;
    color: #0B4141;
}

/* Cuadrícula de tarjetas */
.testimonios-cuadricula {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta Individual */
.testimonio-tarjeta {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 5px solid #0B4141;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.testimonio-tarjeta:hover {
    transform: translateY(-5px);
}

.testimonio-comilla {
    width: 30px;
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonio-cuerpo p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444444;
    font-style: italic;
    margin-bottom: 30px;
}

/* Info del Usuario */
.testimonio-usuario {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.usuario-foto {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c0a060;
}

.usuario-datos h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.usuario-datos span {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .testimonios-titulo {
        font-size: 2rem;
    }
    
    .testimonios-cuadricula {
        grid-template-columns: 1fr;
    }
    
    .testimonios-seccion {
        padding: 50px 5%;
    }
}

/*Ya Confían en Mí*/

.client-section {
    margin: 0;
    background-color: #000000;
    color: #ccc;
    text-align: center;
    padding: 50px 20px;
}

.client-section h2 {
    font-weight: 600;
    color: #999;
    margin-bottom: 40px;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

.client-logos img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.client-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}