:root {
    --main: #0E7DB0;
    --main2: #073D77;
    --main-transp: #001d3c8a;
    --main-font: #001D3C;
    --main-light: #79C1E2;
    --light-grey: #F8FBFD;
    --white: #FFFFFF;
    --red: #EA3333;
    --font-grey: #707070;
    --shadow-color: rgba(21, 76, 134, 0.15);
    /*#CAMBIO modificar el gradiente
    No use las variables porque no me di cuenta que estaban en el root, hay que buscarlas
    */
    --navy-grad:radial-gradient(at center center, #052D53 0%, #001D3C 63%);
    --grad-claro: transparent linear-gradient(270deg, #79C1E2 0%, #0E7DB0 100%) 0% 0% no-repeat padding-box;
  }

  /* General */
*{
    box-sizing: border-box;
}

section ul,
section ol {
    list-style: none;
    padding-left: 0;
}

/* 2. Damos estilo a los items de lista que estén en una sección */
section li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

/* 3. Creamos la viñeta personalizada para esos items */
section li::before {
    content: '';
    background-image: url('/wp-content/themes/fundacion-roc/images/iconos/icon-arrow-dropdown.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 0.4em;
    transform: rotate(-90deg);
}

body {
    font-family: 'Cabin';
    font-size: 18px;
    color: var(--main-font);
    margin: 0px;
    max-width: 100vw;
    font-weight: 400;
    overflow-x: hidden;
    background-color: var(--white);
}
html {
    overflow-x: hidden;
}

/*Navbar*/
.absolute-navbar {
    height: 120px;
}
nav.navbar-header {
    background: var(--white);
    position: fixed;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}
.navbar-logo{
    margin-left: 45px;
}
ul#main-navbar {
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 0px;
    color: var(--main-font)
}
:is(ul#main-navbar) > li {
    padding: 6px 30px;
    margin: 6px;
    line-height: 2em;
    letter-spacing: 1px;
}
ul#main-navbar li.lang-item {
    padding: 6px 20px;
}
li.navlinks a {
    display: inline-block;
}
.cta-azul-navbar {
    background: var(--grad-claro);
    border-radius: 70px;
    padding: 15px;
    text-align: center;
    color: var(--white);
    width: 180px;
    display: inline-block;
}
details summary::after {
    content: "";
    display: inline-block;
    width: 15px;
    height: 10px;
    background-image: url(/wp-content/themes/fundacion-roc/images/iconos/icon-arrow-dropdown.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 5px;
    transition: transform 0.3s ease-in-out;
}
details[open] summary::after {
    transform: rotate(180deg); /* Rota el triángulo hacia arriba */
  }
  /* Menú navbar */
button#mobileMenuToggle{bottom:5px;right:5px;z-index:10000;background:var(--grad-claro);padding:0.6rem 0.9rem;border-radius:0.6rem;color:var(--white);font-size:1.5em;border:0px}
#mobileMenu{position:fixed;inset:0 0 0 auto;width:86vw;max-width:420px;background:#fff;box-shadow:-8px 0 24px rgba(0,0,0,0.18);transform:translateX(100%);transition:transform 0.28s ease;z-index:9999;overflow-y:auto;-webkit-overflow-scrolling:touch}
.dropdown-content {
    position: absolute;
    top: 100px;
    background-color: var(--light-grey);
    padding: 0px;
    min-width: 320px;
    box-shadow: 0px 3px 19px #154C8629;
    border-top: 3px solid var(--main-light);
    border-radius: 0px 0px 9px 9px;
    z-index: 1;
    user-select: none;
}
.dropdown-content ul {
    padding: 0px;
}
.dropdown-content ul li {
    user-select: none;
}
summary.summary-navbar{
    user-select: none;
}
.dropdown-content ul li a {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1em;
    text-decoration: none;
    text-transform: none;
    display: block;
        padding: 20px;

}

details#s-colabora summary::after {
    background-image: url(/wp-content/themes/fundacion-roc/images/iconos/icon-arrow-white.svg);
}

h1{
    font-size:50px;
}
h2{
    font-size:42px;
}
h3{
    font-size:30px;
}

.container {
    width: 100%;
    margin: auto;
}

.main{
    color: var(--main);
}
.main2{
    color: var(--main2);
}
.color-light-grey{
    color: var(--light-grey);
}
.color-resaltado{
    color: var(--main);
    font-weight: bold;
}
p {
    line-height: 28px;
    color: var(--font-grey);
}
a{
    text-decoration: none;
    color: var(--main-font);
}
a:visited {
    text-decoration: none;
}
.bg-grey {
    background-color: var(--light-grey);
}
.bg-white{
    background-color: var(--white);
}
details > summary {
    cursor: pointer;
    list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
ul{
    list-style: none; /*#CAMBIO poner esto solo en la navbar???*/
    color: var(--font-grey);
}
.cta-azul {
    background: var(--grad-claro);
    border-radius: 70px;
    padding: 15px;
    text-align: center;
    margin-top: 15px;
    color: var(--white);
    width: 180px;
    display: inline-block;
}

/*HOME*/
.video-home {
    position: relative;
}
.video-home video {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 800px;
    object-fit: cover;
}
.blue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-transp);
    z-index: 0;
}
.overlay {
    position: absolute;
    top: 150px;
    left: 250px;
    z-index: 1;
    color: var(--white);
    width: 488px;
}
.overlay p {
    color: var(--white);
}
.cta-blanco {
    background-color: var(--white);
    border-radius: 70px;
    padding: 15px;
    text-align: center;
    margin-top: 15px;
    color: var(--main-font);
    width: 180px;
    display: inline-block;
}
/* --- Contenedor principal de 2 COLUMNAS --- */
.nuestros-entero {
    display: flex;
    /* Dirección de fila para poner las 2 cajas una al lado de la otra */
    flex-direction: row; 
    align-items: center; /* Centra verticalmente la imagen y el bloque de contenido */
    gap: 30px; /* Espacio entre la imagen y el contenido */
    padding: 40px 0;
}

/* --- COLUMNA IZQUIERDA (La imagen) --- */
.img-nuestros {
    width: 80px; 
    height: auto;
    flex-shrink: 0; /* Evita que la imagen se encoja */
}

/* --- COLUMNA DERECHA (Contiene título, texto y botón) --- */
.nuestros-contenido-derecha {
    display: flex;
    /* Apila el contenido de esta columna en vertical */
    flex-direction: column; 
    gap: 20px; /* Espacio entre título, texto y botón */
}

/* --- Estilos de los elementos de la columna derecha --- */
.nuestros-titulo {
    font-size: 2.2rem;
    color: #333;
    margin: 0;
}

.nuestros-texto p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.h2-investigaciones {
    font-weight: normal;
}

.nuestros-campos .container {
    display: flex;
    align-items: center; /* Alinea verticalmente el texto con los iconos */
    justify-content: space-between; /* Crea espacio entre las columnas */
}
section#programasFormacion .container {
    max-width: 1800px;
    width: 90%;
    margin: auto;
}
  /*Tarjetas Reglamentos #CAMBIO */
.reglamentos {
    max-width: 100%;
    /* text-align: center; */
}
.tarjetas-reglamentos-container {
    width: 100%;
    padding-bottom: 6rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    gap: 60px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    justify-content: flex-start;
}
section.reglamentos h2 {
    text-align: center;
}
/*
.tarjeta-reglamento {
    padding: 0.5rem;
}
    */
.tarjeta-contenido-reglamento {
    border-width: 1px;
    overflow: hidden;
    position: relative;
    height: 100%;
    box-shadow: 0px 3px 19px #154C862F;
    border-radius: 12px;
    background-color: var(--white);
    border-color: rgb(243 244 246 / 1);
    border-radius: 12px 185px 12px 12px !important;
}

.contenido-reglamentos{
    position: relative;
}
.contenido-reglamentos img {
    object-fit: cover;
    width: 100%;
    max-width: 100%;
    height: 190px;
    display: block;
}
.titulo-tarjeta-reglamento {
    font-weight: bold;
    font-size: 25px;
    color: var(--main-font);
}
.tarjeta-reglamento-texto {
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 20px
}

.documento-reglamento{
    color: #0E7DB0;
    font-weight: bold;
}


/* --- Columna 1: Texto --- */
.nuestros-texto {
    /* width: 35%; */
    flex-shrink: 0; /* Evita que la columna se encoja */
}

.nuestros-box {
    width: 100%;
    padding: 50px 0;
}

.nuestros-box .tarjeta-texto{
    text-align: left;
 }

.h2-investigaciones {
    font-weight: normal;
}


/* --- Columna 2: Parrilla de Iconos --- */
/* Define el ancho de la columna y su contenido en formato grid */
.container-investigacion {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 iconos por fila */
    gap: 1.5rem; /* Espacio entre los iconos */
    text-align: center;
}

/* --- Estilos para los Iconos --- */
.investigacion-img img {
    width: 90px;
    height: auto;
    margin: 0 auto; /* Centra la imagen dentro de su contenedor */
}

/*Tarjetas Areas Actuacion*/
.areas-de-actuacion{
    width: 100%;
}

.areas-de-actuacion h2 {
    text-align: center;
}
.tarjetas-container {
    padding-bottom: 6rem;
    display: flex; /* Mantenemos flexbox */
        justify-content: space-around; /* Centramos las tarjetas */
    gap: 2rem; /* Añadimos un espacio de 2rem entre tarjetas */
    flex-wrap: wrap; /* Permitimos que bajen de línea en pantallas pequeñas */
}

.tarjeta-entera {
    width: auto;
    min-width: 450px;
    position: relative;
    z-index: 2;
    flex: 1;
        max-width: 60%;
}

.tarjeta-contenido {
    border-width: 1px;
    overflow: hidden;
    position: relative;
    height: 100%;
    box-shadow: 0px 3px 19px #154C862F;
    border-radius: 12px 140px 12px 12px;
    background-color: var(--white);
    border-color: rgb(243 244 246 / 1);
}

.tarjeta-contenido img{
    object-fit: cover;
    width: 100%;
    max-width: 100%;
    height: 14rem;
    display: block;
}
.tarjeta-texto {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* height: 410px; */
}


.boton-areas-actuacion{
    margin-top: auto;
}

section.nuestros-campos {
    margin: 3em 0px;
}
/*Datos*/
.seccion-datos{
    width: 100%;
    padding: 50px 0;
}
.caja-datos {
    margin: auto;
    padding: 50px;
    gap: 40px;
    display: flex;
    justify-content: space-around;
    background-color: var(--white);
    border-top: 3px solid var(--main-light);
    border-radius: 0px 0px 9px 9px;
    box-shadow: 0px 3px 19px #154C8629;
}
.caja-datos .boton-cursos {
    margin-top: 0px;
    padding-top: 0px;
    display: flex;
    align-items: center;
}
.numero-info{
    width: 274px;
}
p.numero-grande{
    font-size: 50px;
    font-weight: bold;
    color: var(--main);
    line-height: normal;
    margin: 10px;
}
.dato-nombre{
    font-size: 28px;
    color: var(--main-font);
    font-weight: 800;
    margin: 10px;
}

/*Tarjetas Próximos Cursos*/
.proximos-cursos {
    align-items: flex-start; 
    gap: 2rem; 
    padding: 50px 0;
}

.texto-proximos-cursos {
    flex-basis: 20%; 
    flex-shrink: 0; 
    text-align: end;
}

/* --- 2. CONTENEDOR DE LAS TARJETAS --- */

.tarjeta-curso-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem; 
}

.estanciaslayout .tarjeta-curso-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

/* --- 3. TARJETA DE CURSO INDIVIDUAL --- */

.tarjeta-curso {
    width: 30%;
    display: flex;
    flex-direction: column;
    max-width: 450px;
    min-width: 300px;
}

.tarjeta-contenido-curso {
    border: 1px solid rgb(243 244 246 / 1);
    box-shadow: 0px 3px 19px #154C862F;
    overflow: hidden;
    height: 100%; 
    display: flex;
    flex-direction: column; 
    position: relative;
    border-radius: 12px 12px 0px 0px;
    border-bottom: 5px solid var(--main-light);
}

/* --- 4. CONTENIDO INTERNO DE LA TARJETA --- */

.contenido-cursos {
    position: relative; /* Para la superposición de la fecha */
}

.contenido-cursos img {
    object-fit: cover;
    width: 100%;
    height: 190px;
    display: block;
        position: relative;
}

/* Contenedor del texto (título, descripción, botón) */
.tarjeta-curso-texto {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que este bloque crezca y ocupe el espacio disponible */
}

.tarjeta-curso-texto p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7; /* Corta el texto después de 3 líneas */
    overflow: hidden;
    text-overflow: ellipsis;    
    color: var(--font-grey);
    margin-bottom: 1rem;
}

.tarjeta-curso-texto p.titulo-tarjeta-curso {
    font-size: 20px;
    font-weight: bold;
    color: var(--main-font);
    margin: 0 0 0.5rem 0;
    line-height: 1.3; /* Evita que títulos largos se vean apretados */
}

.tarjeta-curso-texto p.plazas-curso {
    color: red;
    font-weight: bold;
}
.tarjeta-curso-texto p.plazas-disponibles {
    blond: inherit;
    color: var(--main2);
    font-weight: bold;
}

/* ¡LA MAGIA PARA ALINEAR EL BOTÓN ABAJO! */
.boton-cursos {
    margin-top: auto; /* Empuja el botón al final del contenedor flex */
    padding-top: 1rem; /* Un poco de espacio extra arriba */
}


/* --- 5. SUPERPOSICIÓN DE LA FECHA (ya estaba bien) --- */

.fecha-tarjetas-curso {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
        background: rgb(14 52 92 / 46%); /* Usando rgba para transparencia */
    padding: 5px;
    /* Para centrar el texto de la fecha */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.fecha-tarjetas-curso p {
    font-size: 60px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
    margin-left: 20px;
    color: white;
}

.fecha-tarjetas-curso p.mes-tarjeta-curso{
    font-size: 35px;
    font-weight: normal;
}





    /*cover  CSS*/
.cover-container{
    margin: auto;
    padding: 50px 0;
    display:flex;
    align-items: center;
}
.cover-container ul {
    list-style: disc;
}
.cover-texto {
    width: 60%;
}
.centrar-cover-texto {
    max-width: 55%;
    margin: auto;
}
.h1-cover{
    font-weight: 700px;
}
.imagen-cover {
    width: 40%;
    text-align: center;
}
.imagen-cover img {
    width: 500px;
    height: 333px;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 19px #154C862F;
    border-radius: 15px;
    object-fit: cover;
}
/* Cursos y Congresos*/
button#toggle-filtro {
    display: none;
}
.todo-cursos {
    display: flex;
    width: 100%;
    margin-top: 85px;
}
.filtro-cursos {
    width: 20%;
}
.filtro-cursos h2{
    font-size: 28px;
}
.resultados-cursos {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    gap: 50px;
}
.filtro-cursos input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 27px;
  height: 27px;
  border: 0.5px solid var(--main2);
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  cursor: pointer;
}

.filtro-cursos input[type="checkbox"]:checked {
  background-color: var(--main2);
}
.filtro-cursos label {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}



/*Colabora*/

.colabora-container {
    margin: auto;
    padding-top: 50px;
    display: flex;
    align-items: center;
}
.colabora-container img {
    border-radius: 0% 50% 0% 0%;
}
.colabora-texto {
    width: 60%;
}
.centrar-colabora-texto {
    max-width: 55%;
    margin: auto;
}
.h2-colabora{
    font-weight: 700px;
}
.imagen-colabora {
    width: 40%;
    text-align: center;
}
.imagen-colabora img{
    width: 100%;
    height: auto;
    border-radius: 400px 0px 0px 0px;
}



/* Gobierno corporativo */

  /*cover #CAMBIO CSS*/
.cover-container{
    margin: auto;
    padding: 50px 0;
    display:flex;
    align-items: center;
}
.cover-container ul {
    list-style: disc;
}
.cover-texto {
    width: 60%;
}
.centrar-cover-texto {
    max-width: 55%;
    margin: auto;
}
.h1-cover{
    font-weight: 700px;
}
.imagen-cover {
    width: 40%;
    text-align: center;
}
.imagen-gobierno-cover img{
    width: 100%;
    height: auto;
    /* border-radius: 400px 0px 0px 0px; */
}

/* Patronato */
.patronato {
  padding: 3rem 1rem;
  background-color: #f9fcfd;
  text-align: center;
}

.patronato h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #06284f;
}

.tarjetas-patronato-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.tarjeta-patronato {
  position: relative;
  width: 220px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.2rem 0.5rem;
      text-align: left;
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
}
p.profilecard {
    margin-top: 1em !important;
    text-align: center;
}
.tarjeta-patronato:hover {
  transform: translateY(-4px);
}

.tarjeta-patronato .blue-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    z-index: 0;
border-radius: 60px 20px 0px 20px;
}
.white-card::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 0% 0% 120px 0%;
}
.tarjeta-patronato a{
  font-weight: 600;
  font-size: 1rem;
  color: #06284f;
  text-decoration: none;
  z-index: 1;
  display: block;
  margin-bottom: 0.4rem;
      height: 1em;

}
.tarjeta-patronato a::after {
    padding: 20px;
    box-sizing: border-box;
    z-index: 5;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        padding:20px;

}



.tarjeta-patronato p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  position: relative;
  z-index: 1;
}

.tarjeta-patronato .profilecard {
  margin-top: 1.5rem;
  font-weight: 500;
  color: #0077b6;
  cursor: pointer;
}

.tarjeta-patronato .arrow {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  padding: 4px;
  transform: rotate(-45deg);
  z-index: 1;
}

/* Estancias formativas y rotaciones */
#programasFormacion h2 {
    font-weight: 400;
}

#estanciaslayout .tarjeta-curso{
    width: calc(25% - (1.5rem * 3 / 4));
    display: flex;
    flex-direction: column;
}
#programasFormacion .tarjeta-curso{
    width: calc(30% - (1.5rem * 3 / 4));
    display: flex;
    flex-direction: column;
}

#caracteristicasProgramas h2 {
    font-weight: 400;
    text-align: center;
}
.formacion-container {
    padding-bottom: 6rem;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}
.formacion-tarjetas {
    display: flex;
    gap: 25px;
}
/*
.lowcase {
    text-transform: lowercase;
}
*/
p.sedecita:before {
    content: 'Hospital Universitario ';
    text-transform: none;
    margin-bottom: 1em;
}
.caract-formacion {
    border-width: 1px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;  
    max-width: 400px;      
}
.caract-formacion {
    text-align: center;
}

#conoceRotantes {
    background-color: #F8FBFD ;
    padding-block: 80px;
}
.conoce-rotantes {
    margin: auto;
    width: 80%;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 2px 4px 12px #154C860F;
    border-radius: 0px 0px 90px 90px;
    border-top: 10px solid #79C1E2;
    opacity: 1;
    display: flex;
    padding-inline: 150px;
    padding-block: 60px;
    justify-content: space-between;
    align-items: center;
}
.conoce-rotantes .boton-cursos{
    margin: 0;
    padding-top: 0
}
.rotante-paises {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    margin: auto;
}
/*Footer*/
  .banner-gradiente {
    background: var(--grad-claro);
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .banner-gradiente-contenido {
    width: 70%;
    text-align: center;
  }

  .banner-gradiente-contenido p {
    color: var(--white);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 35px;
  }

  .btn-banner {
    display: inline-block;
    color: var(--white);
    border: 1px solid var(--white);
    border-radius: 25px;
    padding: 8px 24px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .btn-banner:hover {
    background-color: var(--white);
    color: var(--main);
  }

.logos-asociaciones {
    max-width: 85%;
    margin: 0 auto;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}
footer{
    background-color: var(--main-font);
}
footer p, footer a{
    color: var(--white);
}
.footer {
    max-width: 85%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 30px;
    padding-bottom: 20px;
    color: var(--white);
}
.enlaces-footer {
    max-width: 30%;
}
.footer ul {
    padding: 0;
}
.footer li {
    line-height: 50px;
}
.info-footer {
    display: flex;
    padding: 20px 0;
    align-items: center;
}


.info-footer a {
    padding-left: 12px;
}
.info-footer img {
    width: 25px;
    height: 25px;
}
.rrss-footer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.postfooter {
    display: flex;
    justify-content: center;
}

.text-center {
    display: flex;
    justify-content: center;
}

/* Efectos Menú navbar */

#mobileMenu[aria-hidden="false"] {
    transform: translateX(0);
}
.mm-list {
    list-style: none;
    padding: 0.5rem 1rem 2rem;
    margin: 0;
}
.mm-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
}

.mm-item[open] > .mm-summary::after {
    transform: rotate(90deg);
}
.mm-dropdown {
    padding: 0 0 0.8rem 0;
}
.mm-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.5rem;
}
.mm-dropdown li a {
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
}
.mm-single a {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    text-decoration: none;
}

/* Curso hija */
.curso-hija-container {
    position: relative; 
    height: 280px;
    overflow: hidden; 
}

.imagen-curso-hija {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(317deg, #77c0e1, #117fb2);
}

.img-curso-hija {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    border-radius: 180px 0% 0% 0%;
}

.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #001D3C; 
    mix-blend-mode: multiply; 
    opacity: 0.61;
    z-index: 1; 
    border-radius: 180px 0% 0% 0%;    
}

.curso-hija-texto-overlay {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: white;
    padding: 15px;
    box-sizing: border-box;
    z-index: 2;
    padding-inline: 262px;
}



.centrar-curso-hija-texto {
    max-width: 65%; 
    text-align: left;
}


.curso-hija-h1-cover {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: white;
}
.content-cursos{
    padding-block: 80px;
}
.content-cursos .container {
    padding-inline: 262px;
}
.content-cursos h2 {
    font-size: 32px;
    font-weight: bold;
}
.content-cursos p {
    font-size: 22px;
    font-weight: bold;
}    
.curso-container {
    display: flex;
    flex-direction: row;
    gap: 50px;
    justify-content: space-between;
    
}
.curso-container p {
    font-weight: normal;
    margin: 0px;
}
.cursos-post-content{
    max-width: 800px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
}
.info-cursos{
    padding-inline: 80px;
    padding-block: 50px;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 19px #154C862E;
    border-radius: 0px 0px 90px 90px;
    opacity: 1;      
    max-width: 560px;  
}
.more-info-cursos .cta-azul {
    width: 200px;
    margin-top: 50px;
}
.more-info-cursos {
    display: flex;
    justify-content: space-around;
}
/*
.cursos-avalado {
    display: flex;
}
    */
.avalado-container {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    padding-block: 40px;
    align-items: center; 
    align-items: center;
}
.imagen-avalado {
    height: 100px;
    width: 100%; 
    object-fit: contain; 
}
/*Videos cursos*/
.video-curso {
    width: 100%;
    max-width: 800px; 
    margin: 0 auto;   
    padding: 10px 0;
    aspect-ratio: 16 / 9;
}

.video-curso video {
    width: 100%;
    height: 100%;
    display: block;
        object-fit: cover;
}
/*Detallitos */
.fecha-tarjetas-curso, .contenido-cursos img/*, .tarjeta-contenido img*/
{
border-radius: 0% 180px 0% 0%;
}
.contenido-cursos, .tarjeta-imagen {
    background: transparent linear-gradient(79deg, #74BEE0 0%, #1280B2 100%) 0% 0% no-repeat padding-box;
    background-size: 180px;
    background-position: right;
}



/*
.tarjeta-contenido img:after {
    content: '';
    background: linear-gradient(317deg, #117fb2, #77c0e1);
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.contenido-cursos img::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    z-index: 4;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
}
    */

    /* Donaciones */

    #donation-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .donation-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-bottom: 80px;
  }

  .subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
  }

  .donation-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .donation-box {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    width: 30%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    row-gap: 60px;
    /*
  }

.donation-box:hover {
*/
    border-top: 5px solid var(--main-light);
    margin-top: -5px !important;
    box-shadow: 0 2px 5px 4px rgba(0, 0, 0, 0.1);
}

  .donation-box div p {
    margin: 0;
    text-align: center;
  }

  /* Centrar el texto de la cabecera en la tarjeta */
  .donation-box h3 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 1rem;
  }

  /* Número de cuenta con estilo destacado */
  .account-number {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  /* Contenedor de ícono (opcional) */
  .icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    max-height: 180px;
  }

  .icon-container img {
    height: 180px;
    /* Ajusta el tamaño del icono 
    height: auto;*/
  }

  strong {
    color: #0E7DB0;
  }

  .donation-section h2 {
    text-align: center;
  }

  .donation-container-grid {
    display: grid;
    grid-template-columns: 300px auto 300px;
    /* column-gap: 110px; */
    justify-content: center;
  }

  #donation-donde {
    padding-block: 60px;
  }

  .donation-graph-cen {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .donation-item {
    display: flex;
    flex-direction: column;
  }

  .donation-container-grid .donation-item:nth-child(1) {
    grid-row: 1;
    grid-column: 1;
  }

  .donation-container-grid .donation-item:nth-child(2) {
    grid-row: 1;
    grid-column: 3;
  }

  .donation-container-grid .donation-item:nth-child(3) {
    grid-row: 2;
    grid-column: 1;
  }

  .donation-container-grid .donation-item:nth-child(4) {
    grid-row: 2;
    grid-column: 3;
  }

  .graph-subtitulo {
    color: #001d3c;
    font-weight: bold;
    font-size: 32px;
  }

  .graph-titulo {
    font-size: 60px;
    font-weight: bold;
    color: var(--main-font);
  }

  .graph-titulo.azul-claro {
    color: #79c1e2;
  }

  .azul-medio {
    color: #0e7db0;
  }

  .azul-semi {
    color: #073d77;
  }
#contacto-donation-section {
        padding-block: 60px;
    }

    .contact-container{
        display: flex;
        column-gap: 30px;
        justify-content: center;
    }
    .contact-col-izq {
        width: 475px;
    }

    .contact-col-der{
        padding-inline: 80px;
        padding-block: 50px;
        background: #FFFFFF 0% 0% no-repeat padding-box;
        box-shadow: 0px 3px 19px #154C862E;
        border-radius: 0px 0px 90px 90px;
        opacity: 1;      
    }

    select.wpcf7-form-control.wpcf7-select.wpcf7-validates-as-required, input:not([type="submit"]):not([type="checkbox"]){
        background: #F8FBFD;
        font-size: large;
        border-radius: 4px;
        opacity: 1;
        height: 55px;
        width: 100%;
        border: 0;
    }


    input[type="submit"]{
        background: transparent linear-gradient(270deg, #79C1E2 0%, #0E7DB0 100%) 0% 0% no-repeat padding-box;
        border-radius: 26px;
        opacity: 1;
        padding-block: 15px;
        padding-inline: 45px;
        text-align: center;
        color: white;
        font-size: large;
        float: right;
    }

    input[type="checkbox"]{
        border: 0.5px solid var(--unnamed-color-073d77);
        background: #F8FBFD 0% 0% no-repeat padding-box;
        border: 0.5px solid #073D77;
        border-radius: 2px;
        opacity: 1;
    }  

/* ----- Proyectos de investigación, Publicaciones científicas, Ensayos Clínicos ----- */
.filtros-proy-invest, .filtros-publi-cientifica, .filtros-ensa-clinico {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 50px;
    padding-bottom: 50px;
    background: var(--white);
}
.filtro-taxonomia {
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-wrap{ 
  position:relative;
  display:inline-block; 
}


.select-wrap select{
  background: var(--light-grey);
  font-size: large;
  border-radius: 4px;
  opacity: 1;
  height: 52px;
  width: 594px;
  border: 0.5px solid var(--main-light);
  color: var(--font-grey);
  font-family: 'Cabin';
  padding: 10px;
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  padding-right:2rem;
  color-scheme: light;
}

.select-pub-cien select{
  width: 200px;
  height: 52px;
}
.select-ensa-clinico select{
  width: 200px;
  height: 52px;
}

/* Mantén el mismo fondo/colores cuando tiene foco o está activo */
.select-wrap select:focus,
.select-wrap select:active,
.select-wrap:focus-within select {
  outline: none;
}

.select-wrap::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 18px;
    height: 9px;
    background-image: url(/wp-content/themes/fundacion-roc/images/iconos/icon-arrow-dropdown-main.svg);
    background-repeat: no-repeat;
    background-size: contain;
    transform:translateY(-50%) rotate(0deg);
    transition:transform .5s ease;
    pointer-events: none;
}
.select-wrap:focus-within::after{
  transform:translateY(-50%) rotate(180deg);
}
select::-ms-expand{ display:none; }

button#btn-filtrar {
  background: transparent linear-gradient(270deg, var(--main-light) 0%, var(--main) 100%) 0% 0% no-repeat padding-box;
  border-radius: 26px;
  opacity: 1;
  width: 76px;
  height: 52px;
  border: none;
  cursor: pointer;
}

.container-todas-tarjetas-largas {
    background: var(--light-grey);
    padding: 50px 150px;
}
.post-tarjeta-larga {
    background: transparent linear-gradient(90deg, #74BEE0 0%, #1280B2 100%) 0% 0% no-repeat padding-box;
    border-radius: 10px;
    background-size: 120px; /* Si no coge todo el div y no se ve el gradiente bien */
    background-position: right;
}
.deco-tarjeta-larga {
    padding: 40px;
    margin-bottom: 20px;
    background-color: var(--white);
    box-shadow: 0px 3px 19px #154C862E;
    border-radius: 10px 115px 10px 10px;
}
.autores{
  color: var(--main);
}
.container-boton-mas-tarjetas {
    background: var(--light-grey);
    padding: 0px 150px 50px 150px;
}
.boton-mas-tarjetas {
    border-top: 3px solid var(--main-light);
    display: flex;
    justify-content: flex-end;
}
.btn-load-more {
    background: var(--grad-claro);
    border-radius: 70px;
    border: 0;
    padding: 15px;
    color: var(--white);
    width: 132px;
    font-family: 'Cabin';
    font-size: 19px;
    text-transform: uppercase;
    margin-top: 25px;
}


section.contenido-videos {
    display: flex;
    padding: 50px;
}

.filtro-video{
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 14px; 
}
.filtro-video .select-wrap{ 
  width: 300px;
  height: 52px;
}
.buscador-video {
  width: 300px;
  height: 52px;
  background: var(--light-grey);
  font-size: large;
  border-radius: 4px;
  opacity: 1;
  border: 0.5px solid var(--main-light);
  color: var(--font-grey);
  font-family: 'Cabin';
  padding: 10px;
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  padding-right:2rem;
}
input#video_q {
    width: 100%;
    height: 100%;
}
.select-video select {
    width: 300px;
    height: 52px;
}

.filtro-video .search-group{
  position: relative;
}

.filtro-video .search-group input:focus{
  outline: none;
}
/* (Opcional) Quitar la X de limpiar en Chrome si estorba */
.filtro-video .search-group input[type="search"]::-webkit-search-cancel-button{
  -webkit-appearance: none;
}

/* Ensayos */
#contenedor-ensa-clinico .info-inv,
#contenedor-ensa-clinico .deco-tarjeta-larga {
    padding: 0;
}
.ensayo-container {
  padding: 40px 40px 20px 60px;
}
.ensayo-header {
  display: flex;
  gap: 60px;
  color: var(--main)
}
.ensayo-content {
  padding-top: 30px;
}
.ensayo-footer {
  padding: 22px 40px 22px 60px;
  width: 100%;
  background-color: var(--light-grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--main);
}
.ensayo-footer a{
  color: var(--main);
}

/* ----- Sección deducible (fondo con gradiente o color) ----- */
.deductible-section {
  /* Puedes usar un gradiente o un color plano */
  background: linear-gradient(to top, #0E7DB0, #79C1E2 );
  /* Ajusta el radio de borde si quieres darle forma curva */
  border-radius: 80px 80px 0 0; 
  color: #fff;
  padding: 3rem 1rem;
  text-align: left;
}

/* Contenedor interior para centrar y controlar ancho */
.deductible-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap; /* Para que en pantallas pequeñas se apile */
  gap: 2rem;
}

/* Columna Izquierda */
.left-column {
  flex: 1 1 300px; 
}

/* Ajusta el estilo del botón */
.info-button {
  display: inline-block;
  background-color: #fff;
  color: #2193b0;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin: 1rem 0;
}

.info-button:hover {
  background-color: #f2f2f2;
}

/* Columna Derecha */
.right-column {
  flex: 1 1 300px;
}

/* Tarjeta de ejemplo (donde se ven 144€ y 35€) */
.example-box {
  background-color: #ffffff;
  color: #333;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-around; 
  align-items: center;
  flex-wrap: wrap; /* Para adaptarse en móvil */
}

.example-item {
  text-align: center;
  margin: 0.5rem;
}

.example-item h4 {
  font-size: 1.5rem;
  margin: 0.5rem 0 0;
}
    /* ----- Sección deducible (fondo con gradiente o color) ----- */
#deductible-section {
  /* Puedes usar un gradiente o un color plano */
  color: #fff;
  padding: 3rem 1rem;
  text-align: left;
  background: transparent linear-gradient(180deg, #79C1E2 0%, #0E7DB0 100%) 0% 0% no-repeat padding-box;
  border-radius: 300px 300px 0px 0px;
  opacity: 1;
}

/* Contenedor interior para centrar y controlar ancho */
.deductible-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap; /* Para que en pantallas pequeñas se apile */
  gap: 2rem;
  
}

.deductible-content p {
  color: white;
}

/* Columna Izquierda */
.left-column {
  flex: 1 1 300px; 
}

.left-column p {
  color: white;
  line-height: normal;
}

/* Ajusta el estilo del botón */
.info-button {
  display: inline-block;
  background-color: #fff;
  color: #2193b0;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin: 1rem 0;
}

.info-button:hover {
  background-color: #f2f2f2;
}

/* Columna Derecha */
.right-column {
  flex: 1 1 300px;
}

/* Tarjeta de ejemplo (donde se ven 144€ y 35€) */
.example-box {
  background: #FFFFFF 0% 0% no-repeat padding-box;
  color: #707070;
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 2px 4px 12px #154C860F;
  border-radius: 0px 0px 12px 12px;
  opacity: 1;

  /* Hacemos de este un contenedor de columna para apilar las filas */
  display: flex;
  flex-direction: column;
}

.example-box p {
  color: #707070;
}

/* Primera fila */
.example-row:nth-child(1) {
  align-self: flex-start; /* Alinea "Si donas..." a la izquierda dentro de la caja */
}

/* Segunda fila (la de la línea) */
.example-row:nth-child(2) {
  width: 100%; /* Asegura que la línea ocupe todo el ancho */
  text-align: center;
}

/* Tercera fila (los dos bloques de texto) */
.example-row:nth-child(3) {
  display: flex;
  justify-content: space-between; /* Esto es la clave: separa los dos elementos */
  width: 100%; /* Ocupa el 100% del ancho del contenedor padre */
}

.example-item {
  text-align: center;
  /* Elimina el flex-basis y el grow/shrink si los tuvieras, para que el contenido determine el ancho */
}
.example-item.der p{
  color: #0e7db0;

}

.example-item.izq p{
  color: #073d77;
}

.example-item p.der,
.example-item p.izq {
  font-size: 60px;
  margin: 40px 0 20px 0;
  font-weight: bold;
}
.example-row.flex-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
button#calc-button {
    border: none;
    font-size: 22px;
    margin-top: 30px;
}
input#donation-amount {
    border: solid 1px var(--main);
    padding: 10px;
    margin: 10px;
}
/* Empresas amigas */

/* ----- Sección principal ----- */
.empresas-amigas-section {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: left;
  background-color: #fff; /* Ajusta si necesitas otro color de fondo */
}

.empresas-amigas-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.empresas-subtitle {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.empresas-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* ----- Contenedor “tarjeta” que agrupa las tres columnas ----- */
.empresas-container {
  padding: 2rem;
  margin: 0 auto;
  position: relative;       /* Para ubicar bien la línea superior si lo deseas */
  background: #FFFFFF 0% 0% no-repeat padding-box;
  box-shadow: 2px 4px 12px #154C860F;
  border-radius: 0px 0px 12px 12px;
  opacity: 1;  
}

/* Línea superior en color azul */
.empresas-top-line {
  width: 100%;
  height: 4px;                 /* Ajusta el grosor de la línea */
  background-color: var(--main);   /* Cambia al color azul que prefieras */
  position: absolute;
  top: 0;
  left: 0;
  border-top-left-radius: 8px;  /* Para redondear esquinas de la línea */
  border-top-right-radius: 8px; /* si coincide con los bordes del contenedor */
}

/* ----- Distribución de las columnas ----- */
.empresas-columns {
  display: flex;
  flex-wrap: wrap;              /* Para que se adapten en móvil */
  justify-content: space-between;
  margin-top: 1rem;             /* Espacio debajo de la línea azul */
}

.empresas-column {
  flex: 1 1 30%;                /* Tres columnas */
  min-width: 220px;            /* Ancho mínimo para columnas */
  margin: 1rem 0;              /* Separación vertical */
  text-align: center;
}

.empresas-column h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.empresas-column p {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
}

.empresas-partners-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: #fff;
}

.empresas-partners-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left; /* O center, según prefieras */
}

.empresas-logos-container {
  /* Cuatro columnas fijas por fila en desktop */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
}

/* Cada logo centrado */
.empresas-logo-item {
  text-align: center;
}

.empresas-logo-item img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  margin: 0 auto;
}

/* Responsividad: 
   En pantallas medianas, 2 columnas */
@media (max-width: 768px) {
  .empresas-logos-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsividad:
   En pantallas pequeñas, 1 columna */
@media (max-width: 480px) {
  .empresas-logos-container {
    grid-template-columns: 1fr;
  }
}


  /* Desgravaciones */
  #desgravacion-section {
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
    background-color: #fff;
    text-align: left;
  }

.colabora-container {
    display: flex;
    flex-direction: row-reverse;
}
  /* Título */
  #desgravacion-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .tab-container {
    margin: 0 auto;
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .tab-btn {
    background-color: #f0f6ff;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    margin-right: 4px;
    border-radius: 12px 12px 0 0;
    font-weight: 500;
    position: relative;
    top: 1px;
  }

  .tab-btn.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    z-index: 2;
    font-weight: 600;
  }

  .tab-content {
    display: none;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 12px 12px;
    margin-top: -1px;
  }

  .tab-content.active {
    display: block;
  }

  .grafica-contenedor {
    position: relative;
    display: inline-block;
  }

  .grafica-contenedor img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .grafica-flex {
    display: flex;
    justify-content: center;
  }

  .grafica-ext {
    max-width: 32%;
    display: flex;
    flex-direction: column;
  }

  .grafica-ext .sub {
    font-size: small;
  }

  .texto-superpuesto {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .texto-superpuesto.ext {
    font-size: small;
  }

  .texto-superpuesto p {
    color: white;
    margin: 0;
  }

  #texto1 {
    top: 34%;
    left: 38%;
  }

  #texto2 {
    top: 82%;
    left: 34%;

  }

  #texto3 {
    top: 66%;
    left: 75%;
  }

  .legend-container {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #333;
  }

  .color-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
  }

  .donation-color {
    background-color: #79C1E2;
  }

  .deduction-color {
    background-color: #0E7DB0;
  }

  .limite-color {
    background-color: #073D77;
  }

  /* Cooperación internacional */
  .fotos-wrapper {
      max-width: 1076px;
      align-items: stretch;
      display: flex;
      gap: 30px;
      border-bottom: 6px solid var(--main-light);
      height: 310px; 
      max-height: 25vw;
    }

.coop-cover-container {
    height: 670px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.coop-cover-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--main-font);
    opacity: 40%;
}

.coop-cover-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  /*  backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    */
}

.coop-cover-texto {
    position: relative;
    z-index: 1;
    padding-block: 80px;
    margin: 0 auto;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coop-cover-texto h1 {
    max-width: 600px;
}

.coop-cover-texto p {
    max-width: 530px;
    text-align: center;
    color: white;
}  
.precontainer .container {
    padding-inline: 0px;
    width: 80%;
    margin: auto;
    max-width: 1200px;
}
  .lineas-trabajo{
    padding-block: 80px;
    padding-inline: 300px;
  }

.lineas-tab-container {
  max-width: 1200px;
  margin: 0 auto;
}

.lineas-tabs-nav {
  display: flex;
}

.lineas-tab-btn {
  flex: 1; 
  background-color: #73BDDF;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease;
  text-align: center;
  font-size: 25px;
  font-family: 'Cabin';
}

.lineas-tab-btn.active {
    background-color: #001D3C;
    color: white;
}



.lineas-tab-content {
  background-size: cover;
  display: none;
  padding-inline: 200px;
  padding-block: 80px;
  border: 1px solid #ddd;
  border-top: none; /* Para que se una bien con la barra de botones */
  box-shadow: 0px 3px 19px #154C862E;
  border-radius: 0px 0px 90px 90px;
  opacity: 1;
  height: 430px;
  position: relative;
  z-index: 1;
}

.lineas-tab-content::after {
    content: '';
    position: absolute;
    background-color: var(--main-font);
    opacity: 65%;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
}


.lineas-tab-content.active h2{
  font-size: 32px;
  color: white;
}

.lineas-tab-content p {
  color: white;
}

.lineas-tab-content.active {
  display: block;
}

.proyectos-coop-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.proyectos-coop-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.proyectos-coop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.proyectos-coop-grid .tarjeta-curso{
  width: 100%;
}

.proyecto-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.proyecto-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Imagen destacada */
.proyecto-card .card-image {
  width: 100%;
  height: 180px; /* ajusta según tu preferencia */
  overflow: hidden;
  position: relative;
}

.proyecto-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido de la tarjeta */
.proyecto-card .card-content {
  padding: 20px;
  flex: 1; /* para que el botón quede al final si lo deseas */
  display: flex;
  flex-direction: column;
}

.proyecto-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.proyecto-card p {
  flex: 1; /* ocupa el espacio disponible */
  margin-bottom: 15px;
}

/* Botón */
.proyecto-card a.btn {
  text-decoration: none;
  background-color: #0073aa;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.3s ease;
  font-weight: bold;
  align-self: flex-start; /* o center, según prefieras */
}

.proyecto-card a.btn:hover {
  background-color: #005177;
}

@media only screen and (min-width:1200px) {
    .container {
        padding-inline: 155px;
    }
  .array-rotantes {
      padding-inline: 120px;
  }    
}
    @media only screen and (min-width:2400px) {
*{
        max-width: 2400px;
}
html {
    max-width: 2400px;
    margin: auto;
    background: var(--font-grey);
    box-shadow: 1px 3px 6px 6px #00000047;
}
    }

    .dropdown-content ul li {
margin-bottom: 3px;
}

.dropdown-content ul li:hover {
  border-bottom: 3px solid var(--main-light); /* cambia #000 por el color que quieras */
  cursor: pointer; /* opcional, para que salga la mano al pasar */
  margin-bottom: 0px;
}

/* Cooperacion internacional hija */
    .coop-hija-container {
        padding-inline: 40px;
    }
    .coop-hija-container h1 {
        font-size: 50px;
    }
    #coop-int-hija {
        overflow: hidden;
    }

    .coop-container {
        padding-inline: 170px;
        padding-block: 60px;
        box-sizing: border-box;
    }

    .coop-hija-imagen-cover {
        width: calc(70% - 15px); 
        border-radius: 400px 0 0 0;
        overflow: hidden; 
    }

    .coop-hija-cover-texto {
        width: calc(30% - 15px);
        overflow: hidden; 
        border-radius: 0 15px 0 0;
    }

    .coop-hija-imagen-cover img,
    .coop-hija-cover-texto img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
        object-position: center; 
    }

        #coop-participantes {
        padding-block: 60px;
    }
    
    .coop-hija-content-wrapper{
        display: flex;
        align-items: start;
        column-gap: 20px;
    }
    .coop-hija-content-image {
        margin-top: 1em;
    }

    #coop-antecedentes{
        padding-block: 60px
    }

    #coop-trabajos{
        padding-block: 60px
    }
    #coop-lista {
    padding-block: 60px
}
  #coop-lista .tarjeta-curso {
      width: 100%;
      height: 100%;
  }


.coop-list-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
}

.coop-list-container .tarjeta-curso {
    width: 100%;
}

.coop-tarjetas-titulo {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgb(14 52 92 / 46%);
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: white;
    padding: 0 20px 0 10px;
    font-size: x-large;
}
    .banner-cta {
        background-image: url(/wp-content/themes/fundacion-roc/images/sobre-fundacion/img-fondo-sobre-fundacion.png);
        height: 260px;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: center;
        /* background-color: black; */
    }
    .banner-cta-contenido{
        /* width: 70%; */
        text-align: center;
    }
    .banner-cta-contenido p {
        color: var(--white);
        font-size: 32px;
        text-align: center;
    }

/* Formacion */
    .cover-doble-texto{
        max-width: 930px;
    }
        
    .formac-content-wrapper {
        display: flex;
        padding-block: 60px;
    }

    .formac-content-image {
        margin-top: 1em;
    }

    .formac-column {
        width: 50%;
        display: flex;
        align-items: start;
        column-gap: 20px;
    }

    .profesorado-content-wrapper {
        display: flex;
        flex-direction: column;
        padding-block: 60px;
    }

    /* --- Cambios aquí --- */
    .profesores-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 50px;
        padding-block: 30px;
    }

    .profesor {
        background: #FFFFFF 0% 0% no-repeat padding-box;
        box-shadow: 0px 3px 19px #154C8629;
        border-radius: 15px 15px 0px 0px;
        opacity: 1;
        display: flex;
            justify-content: flex-start;
        flex-direction: column;
        align-items: center;
        padding: 0 30px 30px 30px;
        gap: 10px;
        border-bottom: 3px solid var(--main-light);
        padding-top: 20px;
        /* max-width: 25%; <- Esta línea ya no es necesaria, la eliminamos */
    }

    .profesor img {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto 10px;
    }

    .profesor h3,
    .profesor p {
        margin: 0;
        text-align: center;
    }

    .modulos-curso {
        padding-block: 60px;
    }

    .certif {
        padding-block: 60px;
    }


    .obj-durac,
    .titular-prof,
    .metod-requis {
        padding-block: 60px;
        display: flex;
        gap: 35px
    }

    .metod-formac {
      width: 50%;
    }

    .titular-formacion {
        display: flex;
      /*  right: 100px;*/
        position: relative;
    }

    .titular-formacion img {
        width: 111px;
        height: auto;
    }

    .contenido-formacion ul li {
        position: relative;
        padding-left: 20px;
        margin-bottom: 20px;
    }

    .contenido-formacion ul li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 20px;
        height: 20px;
        background-image: url(/wp-content/themes/fundacion-roc/images/iconos/icon-arrow-dropdown.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transform: rotate(-90deg);
    }


    .contenedor-modulos {
        display: grid;
        /* grid-template-columns: repeat(2, 1fr); */

        gap: 30px;
    }

    .modulo {
        background: #f9f9f9;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .contenido-modulo ul {
        padding-left: 20px;
    }
    .formacion-form{
        padding: 60px 95px 80px 95px;
        background: #FFFFFF 0% 0% no-repeat padding-box;
        box-shadow: 0px 3px 19px #154C862E;
        border-radius: 0px 0px 90px 90px;
        opacity: 1;
    }

    .formac-ins-column {
        width: 100%;
        display: flex;
        align-items: start;
        column-gap: 20px;
    }

    /* Noticias */
    .noticias {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.noticias h2 {
  font-size: 2rem;
  color: #0a2f5a;
  margin-bottom: 1.5rem;
  text-align: center;
}
#posts-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.noticia-card {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
  /* IMPORTANTE: El overflow se mueve al .noticia-body */
}
.noticia-card:hover {
    transform: translateY(-5px);
}

.noticia-image {
  flex: 0 0 250px;
}
.noticia-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px 0 0 8px;
}

.noticia-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: linear-gradient(79deg, #74BEE0 0%, #1280B2 100%);
  border-radius: 0 8px 8px 0;
  
  position: relative;
  overflow: hidden;
}

.noticia-body::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 0 180px 0 0;
}


.noticia-meta, .noticia-fecha {
  color: var(--main); 
  font-weight: bold;
  position: relative; 
  z-index: 1;
  display: flex;
  align-items: center;
  column-gap: 5px;  
}

.noticia-categoria, .noticia-separador {
  font-weight: bold;
  color: var(--main-font);
  position: relative;
  z-index: 1;
}

.noticia-titulo {
  font-size: 1.3rem;
  margin: 0.5rem 0;
  color: var(--main-font);
  position: relative;
  z-index: 1;
}

.noticia-titulo a {
  text-decoration: none;
  color: inherit;
}

.noticia-excerpt {
  color: var(--main-font);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.noticia-leer-mas {
  align-self: flex-start;
  color: var(--main);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  column-gap: 5px;    
}

i.link {
  display: inline-block; 
  padding-left: 5px;
  width: 16px;
  height: 16px;
  background-image: url("/wp-content/themes/fundacion-roc/images/iconos/icon_link.svg");
  background-size: contain;     
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 5px;
}
i.calendar {
  display: inline-block; 
  padding-left: 5px;
  width: 16px;
  height: 16px;
  background-image: url("/wp-content/themes/fundacion-roc/images/iconos/icon_calendar.svg");
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
}
i.location-pin {
  display: inline-block; 
  padding-left: 5px;
  width: 16px;
  height: 16px;
  background-image: url("/wp-content/themes/fundacion-roc/images/iconos/icon-location-pin.svg");
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
  color: var(--main);
}

.noticia-leer-mas:hover {
  color: var(--main-font);
}

#load-more {
  display: block;
  margin: 2rem auto 0 auto;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: #0a2f5a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#load-more:hover {
  background-color: #0d3d72;
}
/* Single post */

    section.post-cover.profesionallayout .columnas {
        display: flex;
        /* flex-direction: column; */
    }

    section.post-cover.profesionallayout .columnas div {
        width: 100%;
    }

    section.post-cover.profesionallayout,
    section.post-content {
        width: 100%;
    }

    section.titulo-con-imagen {
        width: 100%;
        max-width: 100%;
    }

    .colautor.imagen-articulo img {
        object-fit: contain;
    }

    .colautor.imagen-articulo {
        margin: 16px auto;
    }

    .autor-imagen {
        width: 35% !important;
    }

    .info-autor-post {
        width: 70% !important;
    }

    h1.h1-posts {
        font-size: 40px;
    }

    h2.h2-post {
        font-size: 35px;
    }

    .relacionado {
        width: 100%;
    }

    .related-posts {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    /* Post */
    .post-content {
        max-width: 850px;
        margin: auto;
    }

    .post-content ol,
    .post-content ul {
        font-size: inherit;
        list-style: unset;
    }

.post-content li {
    margin-bottom: 18px;
    overflow: hidden;
}

    .colautor {
        width: 50%;
        margin: 20px 0 50px 0;
    }

    .volver img {
        margin-right: 5px;
    }

    .volver p {
        font-size: 16px;
    }

    .coldivisor:before,
    .coldivisor:after {
        content: '';
        display: block;
        border-top: 1px solid var(--main2);
    }

    h1.h1-posts {
        font-size: 55px;
        font-weight: 300;
        line-height: 1.07em;
        letter-spacing: -3.5px;
    }

    .post-content h2,
    .post-content h3 {
        font-size: 35px;
    }

    .article-category {
        color: var(--main2);
        font-weight: bold;
    }

    .article-category a {
        color: var(--main2);
        padding-left: 5px;
        text-transform: uppercase;
    }

    .autor-articulo {
        display: flex;
    }

    .autor-nombre {
        color: var(--main2);
        font-size: 22px;
        font-weight: 600;
    }

    .imagen-articulo img {
        width: 100%;
        object-fit: cover;
        height: 100%;
    }

    .autor-articulo p {
        padding-left: 20px;
        margin: 0;
    }

    .autor-articulo img {
        width: 90px;
        height: 150px;
    }

    p.autor-info-post {
        color: var(--main2);
        font-size: 18px;
        font-weight: 400;
    }

    .related-posts {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .relacionado {
        display: flex;
        width: 28%;
        padding-right: calc(55px/2);
        padding-left: calc(55px/2);
        margin-bottom: 70px;
        flex-direction: column;
    }

    .relacionado img {
        width: 100%;
        height: 210px;
        object-fit: cover;
    }

    a.titpostrel {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.1em;
        letter-spacing: -0.2px;
        margin-top: 10px;
    }

    .ptitpostrel {
        margin: 10px 0 10px 0;
    }

    p.docpostrel {
        color: var(--main);
        font-size: 15px;
        font-weight: 300;
        line-height: 1em;
        letter-spacing: -0.2px;
        margin: 0;
    }

    .bloglayout .unidad-buttons {
        justify-content: center;
        max-width: 65%;
        padding-left: 80px;
    }

    .alignleft {
        float: left;
    }

    img.alignleft {
        margin-right: 20px;
    }

    section.post-content a {
        color: var(--main2);
        text-decoration: underline;
    }

    .preguntas-content a {
        color: var(--main2);
        text-decoration: underline;
    }

    section.post-content a[target="_blank"]::after {
        background-image: url(/wp-content/themes/rocclinic/images/link-out.png);
        margin-left: 4px;
        margin-right: 8px;
        content: ' ';
        width: 15px;
        display: inline-block;
        height: 2ex;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom;
    }

    .link-cta-post a {
        display: inline-block;
        padding: 15px 40px;
        font-size: 20px;
        color: white;
        background-color: var(--main2);
        border-radius: 10px;
        text-decoration: none;
    }

    .link-cta-post {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 80px;
        font-weight: bold;
    }

    section.post-content.link-cta-post a {
        color: white;
        text-decoration: none;
    }

    .post-content img {
        display: block;
        margin: auto;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .post-content iframe {
        margin: auto;
        display: block;
        max-width: 100%;
        object-fit: contain;
    }

    /* Conoce nuestros rotantes */
    .cover-rotantes {
        height: 275px;
        display: flex;
        align-items: end;
        justify-content: center;        
        padding-bottom: 2%;
    }

    .titulo-rotantes h1{
        font-weight: normal;
    }

    section.todos-rotantes{
        padding-block: 80px;
    }
    
    .rotantes-ano-titulo {
        margin-top: 40px;
        margin-bottom: 20px;
    }
    
    .rotantes-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 80px 40px;
    }

    .rotante-card {
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        background: linear-gradient(79deg, #74BEE0 0%, #1280B2 100%);
        position: relative;
        overflow: hidden;
        color: var(--main-font);
    }

    .rotante-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: white;
        border-radius: 0 0 180px 0;
        z-index: 0;
    }
    
    .rotante-card__header,
    .rotante-card__body {
        position: relative;
        z-index: 1;
    }

    .rotante-card__header {
        padding-top: 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 20px
    }
    
    .rotante-card__body {
        margin-top: auto;
        padding-top: 25px;
        padding-bottom: 80px;
        padding-inline: 45px;
        text-align: left;
        background-color: var(--light-grey);
        border-radius: 0 0 180px 0;
    }

    .rotante-card__footer {
        text-align: center;
        margin-top: 20px;
    }

    .rotante-card__info {
        margin: 8px 0;
        line-height: 1.4;
        color: #333;
    }
    
    .rotante-card__info--pais {
        color: var(--font-grey);

        text-align: left;

    }

    .info-grid {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px 15px;
        padding-bottom: 20px;
    }

    .info-grid__label {
        color: #1280B2;
        font-weight: bold;
    }

    .info-grid__data {
        text-align: right;
        color: var(--font-grey);
    }

    .rotante-card__imagen {
        width: 220px;
        height: 220px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto 10px;
        background-color: #EFEFEF;
    }

    .rotante-card__nombre {
        font-size: 25px;
        font-weight: bold;
        margin: 10px 0;
        color: #111;
    }

    .rotante-card__btn-video {
        display: inline-block;
        padding: 10px 18px;
        background: #007bff;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    .rotante-card__btn-video:hover {
        background: #0056b3;
    }

      /* --- SECCIÓN BECAS --- */
  #becas {
    padding-block: 80px;
    padding-bottom: 0px;
  }

  .becas-wrapper {
    display: flex;
    flex-direction: column;
  }
.becas-container {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: flex-start;
}
.becas-card {
    display: flex;
    border-radius: 20px;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 25px;
    max-width: 600px;
    box-sizing: content-box;
    align-items: stretch;
        height: 300px;
}
.becas-card__image-column img {
    width: 100px;
    height: 100%;
    object-fit: cover;
border-radius: 5px;
}
.becas-card__content-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 0px;
}
.becas-card.selected {
    background: var(--light-grey);
}
.becas-card__content-header {
    color: var(--main-font);
    font-size: 32px;
    font-weight: bolder;
}
  .becas-card__conteng-body {
    color: var(--font-grey);
  }
.becas-tab-text-content {
    padding: 0px 20px;
}
  .becas-card__conteng-body p {
    margin-bottom: 5px;
  }

  .plazo-abierto {
    color: green;
    /*font-weight: bold;*/
  }
  .plazo-cerrado {
    color: red;
   /* font-weight: bold;*/
  }
  .becas-card__conteng-body {
    font-size: 22px;
}
  .plazo-cerrado, .plazo-abierto {
font-weight: 100;
    font-size: 18px;
  }

  /* --- SECCIÓN BECAS INFO (TABS) --- */
  .becas-info {
    padding-block: 80px;
        padding-top: 3em;
  }

  .becas-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2; 
        gap: 10px;
  }

  .becas-tab-btn {
    flex-grow: 1;
    flex-shrink: 0;
    background-color: var(--light-grey);
    color: var(--font-grey);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    font-size: 18px;
    border-radius: 12px 12px 0px 0px;
    margin-right: -1px;
    position: relative;
    letter-spacing: -1px;
    font-weight: 500;
  }
  .ajuste-content-nav-beca {
    padding-bottom: 5em;
}

  .becas-tab-btn:first-child {
    border-top-left-radius: 12px;
  }

  .becas-tab-btn:last-child {
    border-top-right-radius: 12px;
    margin-right: 0;
  }

.becas-tab-btn.active {
  color: var(--main-font);
  background-color: white;
  box-shadow: 0 -6px 3px var(--shadow-color),
              -3px 0 8px var(--shadow-color),
               3px 0 8px var(--shadow-color);
  z-index: 3;
  margin-bottom: -1px;
  border-bottom: none;

    clip-path: inset(-20px -11px 1px -17px);

}



  .becas-tab-content {
    display: none;
    padding-inline: 60px;
    padding-top: 80px;
    background-color: white;
    box-shadow: 0px 3px 8px var(--shadow-color), 
                -3px 0px 8px var(--shadow-color), 
                3px 0px 8px var(--shadow-color); 
    border-radius: 0px 0px 45px 45px;
    margin-top: -1px;
    position: relative;
    z-index: 1; 
    min-height: 200px;
    border: none;
  }

  .becas-tab-content.active h2 {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .becas-tab-content.active {
    display: block;
  }

  .becas-tab-content-container{
    display: flex;
    gap: 30px
  }
.becas-tab-imagen img {
    width: 300px;
    border-radius: 15px;
    height: auto;
}
  .becas-tab-content-container li {
    color: var(--font-grey);
  }
.becas-tab-content-foot {
    padding-top: 60px;
    padding-bottom: 20px;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 30px
}
.pagina-gub {
    color: var(--main);

}
.becas-entidades {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    width: 100%;
}
ol ol {
    margin-top: 1em;
    margin-bottom: 1em;
}
  .becas-entidades img {
    max-height: 130px;
  }

  /* Modal */

      /* Clase que se añade al body para bloquear el scroll de fondo */
    body.modal-abierto {
        overflow: hidden;
    }

    /* Contenedor del modal: oculto por defecto */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
    }

    /* Clase que usa JS para mostrar y centrar el modal */
    .modal-visible {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Ventana del modal */
    .modal-content {
        background-color: #fefefe;
        width: 90%;
        max-width: 700px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        animation: fadeIn 0.4s;
        display: flex;
        flex-direction: column;
        max-height: 85vh; /* Altura máxima para permitir scroll interno */
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    /* Cabecera del modal */
    .modal-header {
        padding: 20px 30px;
        border-bottom: 1px solid #eee;
        position: relative;
    }
    .modal-header h3 { margin: 0; font-size: 24px; color: #004a99; }
    .modal-header h4 { margin: 5px 0 0; font-weight: 500; font-style: italic; color: #555; font-size: 18px; }

    /* Botón de cerrar (X) */
    .close-btn {
        color: #aaa;
        position: absolute;
        top: 15px;
        right: 25px;
        font-size: 32px;
        font-weight: bold;
        line-height: 1;
    }
    .close-btn:hover, .close-btn:focus { color: black; text-decoration: none; cursor: pointer; }
    
    /* Cuerpo del modal (con scroll) */
    .modal-body {
        padding: 20px 30px;
        overflow-y: auto;
    }
    .modal-body p { line-height: 1.7; margin-bottom: 1.2em; text-align: justify; color: #333; margin-top:0; }
    
    /* Pie del modal */
    .modal-footer {
        padding: 20px 30px;
        text-align: right;
        border-top: 1px solid #eee;
    }



    .contenido-videos .post-tarjeta-larga{
  margin: 22px 0;
}

.contenido-videos .deco-tarjeta-larga {
    position: relative;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 26px;
    align-items: center;
    padding:0px;
    border-radius: 0px 115px 10px 10px;
}

/* ====== Bloque izquierdo (miniatura + CTA YouTube) ====== */
.media{
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Miniatura con play centrado */
.video-thumb{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
}
.video-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb .play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.video-thumb .play::before {
    content: "";
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: var(--main);
}
.video-thumb .play::after{
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-left: 20px solid #e7ecf2;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  transform: translateX(4px);
}

/* Barra "Ver el vídeo en YouTube" */
.yt-cta{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  color: var(--font-grey);
  font-size: 16px;
  background: var(--light-grey);
}
.yt-cta:hover{
  background: #eaf3fb;
}

/* Icono de YouTube (SVG inline con background) */
.yt-cta::before{
  content: "";
  width: 36px; height: 24px;
  background-repeat: no-repeat;
  background-size: 36px 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'><path fill='%23FF0000' d='M23.5 6.2a3.3 3.3 0 0 0-2.3-2.3C19.3 3.5 12 3.5 12 3.5s-7.3 0-9.2.4A3.3 3.3 0 0 0 .5 6.2 34.4 34.4 0 0 0 .1 12a34.4 34.4 0 0 0 .4 5.8 3.3 3.3 0 0 0 2.3 2.3c1.9.4 9.2.4 9.2.4s7.3 0 9.2-.4a3.3 3.3 0 0 0 2.3-2.3c.3-1.9.4-5.8.4-5.8s-.1-3.9-.4-5.8z'/><path fill='%23fff' d='M9.75 15.02v-6l5.5 3-5.5 3z'/></svg>");
}

/* ====== Bloque derecho (contenido) ====== */
.info-inv{
  padding: 22px 28px;
}
.info-inv h3{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  color: #0E2B45;
}
.info-inv .autores{
  margin: 0 0 12px;
  font-weight: 700;
  color: #0C5A8F;
}
.info-inv p{
  margin: 0;
  color: #5B7C95;
}

/* ====== Hover sutil en toda la tarjeta ====== */
.deco-tarjeta-larga:hover{
  box-shadow: 0 12px 30px rgba(15,34,58,.12);
}
.post-tarjeta-larga:first-of-type {
  margin-top: 0;
}
x-layout ul ul {
    margin-top: 1em;
    margin-bottom: 1em;
}
/* ====== Responsive ====== */
@media (max-width: 860px){
  .deco-tarjeta-larga{
    grid-template-columns: 1fr;
    gap: 0;
  }
  .info-inv{ padding: 18px 18px 22px; }
  .media{
    border-radius: 0;
  }
}

@media only screen and (min-width: 1400px) and (max-width: 1860px){
.post-tarjeta-larga {
    max-width: 90ch;
}

.content-cursos .container,
.container {
  padding-inline: 60px;
}

}



    .trabajo-full-width {
        margin-bottom: 60px;
        max-width: 1200px;
        /* Espacio para separarlo de la rejilla de abajo */
    }

    .trabajos-en-columnas {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas */
        column-gap: 150px;
        row-gap: 60px;
        /* Espacio entre ellas */
    }
    /* Ensayo hija */
  .ens-doctor-card {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
  }

  .ens-doctor-head-container {
    display: flex;
    width: 100%;
  }

  .ens-doctor-column-izq {
    width: 50%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
  }

  .ens-doctor-column-izq img {
    max-width: 100%;
    max-height: 100%;
    height: 110px;
    width: 110px;
    border-radius: 50%;
    object-fit: cover;
  }

  .ens-doctor-column-der {
    width: 50%;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;
    background-color: var(--light-grey);
  }

  .ens-doctor-column img {
    max-width: 100%;
    max-height: 100%;
    height: 110px;
    width: 110px;
    border-radius: 50%;
    object-fit: cover;
  }


  .ens-doctor-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .ens-doctor-card-content h3,
  .ens-doctor-card-content p {
    margin: 0;
  }

  .ens-ens-data {
    width: 100%;
  }

  .ens-data-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .ens-data-row p {
    margin: 0;
    font-size: 18px;
  }    
    
    @media (min-width: 1600px){
.fotos-wrapper {
    height: 400px;
    max-width: 90dvw;
}
}
    textarea {
        resize: vertical;
        min-height: 3em;
        height: 6em;
        width: 100%;
        background: #F8FBFD;
        border: 0px;
        /*border-bottom: 1px solid var(--main-light);*/
    }
.duracion-estancia span.wpcf7-form-control.wpcf7-radio {
    display: flex;
    gap: 25px;
}
.duracion-estancia span.wpcf7-list-item {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
}
input[type="radio"] {
    height: 20px !important;
}
section.nuestros-container {
    margin-top: 3em;
    margin-bottom: 3em;
}
@media only screen and (min-width:1400px) {
section.nuestros-container {
    max-width: 1400px;
    margin: auto;
}
section#desgravacion-section .container {
    max-width: 80%;
    margin: auto;
}
}

p.description.desgravaciones {
  margin-bottom: 0px;
    max-width: 80ch;
    margin: auto;
    margin-top: 2em;
}
.tab-container, .tab-content {
    border-radius: 0px 0px 50px 50px;
}
.preca .container {
    display: flex
;
    justify-content: space-between;
    flex-direction: row;
    gap: 30px;
}
.preca button.tab-btn {
    flex: 1;
    margin-right: 0px;
    border: 0px;
}
.precb .tab-container, .precb .tab-content {
    border: none;
}
.precontainer .container > * {
    box-shadow: var(--main-transp) 1px 1px 7px 0px;
}
.precontainer.preca button {
    clip-path: inset(-15px -15px 2px -15px);
}
.precb .tab-content {
    margin: auto;
    max-width: 80%;
    margin-top: -1px;
}
.bg-tr {
    background: var(--grad-claro);
    border-radius: 12px 0px 12px 12px;
}

.tarjeta-entera:before {
    background: var(--grad-claro);
    height: 100%;
    width: 100%;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 20px 12px 20px 20px;
}

.documento-reglamento img{
  width: unset;
  height: unset;
  display: unset;
  padding-right: 5px;
}
.tarjeta-curso a.cta-azul:after {
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: black; */
    z-index: 1;
    content: '';
    top: 0;
    left: 0;
}
section.pagelayout section.post-content {
    padding: 12px 24px;
    box-sizing: content-box;
    box-shadow: 0px 0px 2px 4px #0000001c;
    max-width: 1000px;
        width: 90%;
}
span.arroba {
    font-family: math;
}
.fix-prox-curs {
    display: flex;
}
.relacionado {
    min-width: 300px;
    position: relative;
    width: 90%;
    max-width: 500px;
}
a.titpostrel:after {
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

/*Iluts*/
h2.iluts-h2 {
    margin: 113px 0 70px;
}
.tarjeta-iluts-texto {
    padding: 0 30px 30px 30px;
}
.contenedor-modulos, .profesores-wrapper, .contenido-formacion {
    width: calc(100% - 210px);
    margin: auto;
}
@media only screen and (min-width: 1400px) and (max-width:1706px) {
.tarjeta-curso {
    width: 22%;
    display: flex
;
    flex-direction: column;
    max-width: none;
    min-width: unset;
}
}

.datos-personales {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.datos-personales div p, .font-fomr {
    color: var(--main-font);
    font-weight: 700;
}
.formulario input {
    color: var(--font-grey);
    padding-left: 5px;
}
.formacion-form input:focus {
    border-color: var(--main-light) !important;
    outline: none;
    border: 1px solid;
    color: var(--main);
    padding-left: 5px;
}

.areas-interes span.wpcf7-form-control.wpcf7-checkbox {
    display: flex
;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 800px;
    gap: 20px;
    align-items: flex-start;
    align-content: flex-start;
}
.areas-interes span.wpcf7-form-control.wpcf7-checkbox span.wpcf7-list-item, .duracion-estancia span.wpcf7-list-item {
    margin-left: 0px;
}
.formacion-form input[type="checkbox"] {
    height: 16px;
    width: 16px;
    padding: 1em;
    border-color: var(--main-light) !important;
    transform: scale(0.);
    outline: none;
    border: 0.5px solid var(--main-light);
    accent-color: var(--main-light);
    /*appearance: none;
    */
}

.formacion-form input[type="checkbox"] {
  appearance: none; /* Elimina el estilo nativo */
  -webkit-appearance: none;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid var(--main-light);
  border-radius: 3px; /* Opcional: esquinas redondeadas */
  cursor: pointer;
  position: relative;
  top: 0.8em;
}

/* Estilo cuando está marcado */
.formacion-form input[type="checkbox"]:checked {
  background-color: var(--main-light);
}

/* Añadir el checkmark */
.formacion-form input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 0.9em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Estilos base para radio buttons */

.formacion-form input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1em;
    height: 1em;
    border: 2px solid var(--main-light);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
top: 0.5em;
    padding: 0.8em;
}

/* Estilo cuando está marcado */
.formacion-form input[type="radio"]:checked {
  background-color: var(--main-light);
}

/* Añadir el checkmark */
.formacion-form input[type="radio"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 0.9em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.date-form-selector p {
    margin-top: -1em;
    margin-bottom: 2em;
}
.areas-interes {
    margin-bottom: 2em;
}
.formacion-form input[type="file"],
.formacion-form .wpcf7-form-control.wpcf7-file {
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
      font-size: 15px;
}

/* Si quieres estilizar también el texto del botón */
.formacion-form input[type="file"]::file-selector-button {
  background: var(--grad-claro);
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  color: var(--light-grey);
    text-transform: uppercase;
}

/* Para navegadores webkit (Chrome, Safari) */
.formacion-form input[type="file"]::-webkit-file-upload-button {
  background: var(--grad-claro);
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
  color: var(--light-grey);
  font-family: inherit;
  text-transform: uppercase;
}
input.wpcf7-form-control.wpcf7-submit.has-spinner {
    text-align: center;
    color: var(--white);
    margin: auto;
    padding-left: 45px;
}
.formacion-form .politica-privacidad input[type="checkbox"] {
    width: 0.5em;
    height: 0.5em;
    padding: 0.6em;
    top: 0.5em;
    border: 1px solid;
}
.politica-privacidad p.form-adv, .politica-privacidad a {
    color: var(--main);
}
.politica-privacidad span.wpcf7-list-item {
    margin-left: 0px;
}
