/**************** HEADER ************************/
.headerBand {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	transition: var(- -transition);
	top: 0;
	background-color: #FCFCFC;
}

.logoinicio {
	width: 25%;
	position: relative;
	float: left;
	padding: 1.25em;
}

.box-usuario {
	position: relative;
	float: right;
	margin-top: 1em;
}

/**************** IMAGEN ************************/
.hero-band {
    position: relative;
	top: 82px;
	left: 0;
	right: 0;
	height: 400px;
	overflow: hidden;
	z-index: 100;
}

/**************** MAIN ************************/
.main-content {
	position: relative;
	z-index: 200;
}

/**************** PROXIMAS ACTIVIDADES ************************/
.proximas-band {
	left: 0;
	right: 0;
	z-index: 110;
	margin-bottom: 40px;
	position: relative;
	top: -100px;
}

.carousel-prox {
	margin: 0 auto;
	position: relative;
	width: 100%;
	margin-bottom: 15px
}

.owl-carousel .item {
	margin: 3px
}

.owl-carousel .item img {
	display: block;
	width: 100%;
	height: auto
}

/* Owl Carousel 1.x usa .owl-controls > .owl-buttons */
.owl-theme .owl-controls {
	margin-top: 12px;
	text-align: center;
}

.owl-theme .owl-controls .owl-buttons div {
	display: inline-block !important;
    background: #2949e5 !important;
    color: #fff !important;
    padding: 4px 8px !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer;
    margin: 0 5px;
    opacity: 1 !important;
}

.owl-theme .owl-controls .owl-buttons div:hover {
	background: #123a8a !important;
}

/* Por si acaso también están presentes clases de v2 */
.owl-theme .owl-nav {
	position: static !important;
	display: flex !important;
	justify-content: center;
	gap: 10px;
	margin-top: 12px;
}

.owl-theme .owl-nav [class*='owl-'] {
	background: #2949e5 !important;
	color: #fff !important;
	padding: 6px 18px !important;
	border-radius: 5px !important;
	font-size: 18px !important;
	line-height: 1 !important;
	cursor: pointer;
	display: inline-block !important;
	opacity: 1 !important;
}

.owl-theme .owl-nav [class*='owl-']:hover {
	background: #123a8a !important;
}

.owl-theme .owl-nav .disabled {
	opacity: 0.4 !important;
}

.prox-card {
	float: left;
	width: 95%;
	height: 140px;
	background-color: #FCFCFC;
	border-radius: 10px;
	border-color: #aaaaaa6e;
	border-style: solid;
	border-width: 1px;
	margin: 10px;
	box-shadow: 1px 5px 16px rgba(0, 0, 0, 0.3);
	padding: 10px;
}

.prox-titulo {
	width: 70%;
	float: left;
}

.prox-top h5 {
	width: 75%;
	float: left;
	margin: 0px;
	color: #323232;
	font-size: 13px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.prox-top h3 {
	width: 25%;
	float: right;
	text-align: center;
	font-size: 1.2em;
	margin: 0px;
	color: #323232;
}

.prox-clases {
	width: 50%;
	font-size: 10px;
	float: left;
	text-transform: uppercase;
	position: absolute;
	bottom: 20px;
	color: #777777;
}

.prox-tipo {
	width: 50%;
	font-size: 10px;
	text-transform: uppercase;
	font-style: italic;
	float: right;
	text-align: right;
	position: absolute;
	bottom: 20px;
	right: 25px;
	color: #777777;
}

.div-relleno-izquierda {
	/* 	background-color: #eaeaea7a; */
	width: 100%;
	height: 100%;
	float: left;
	width: 15%;
}

.div-relleno-derecha {
	/* 	background-color: #eaeaea7a; */
	width: 100%;
	height: 100%;
	float: right;
	width: 15%;
}

/**************** PROPUESTAS ACTIVIDADES ************************/
.propuestas-band {
	display: flex;
	flex-wrap: wrap;
	clear: both;
	position: relative;
	left: 0;
	right: 0;
	z-index: 110;
	margin-bottom: 40px;
	/* 	background-color: #EAEAEAb8; */
	top: -50px;
}

.propuestas-nomrbe-div {
	padding-top: 20px;
	padding-bottom: 20px;
	padding-left: 20px;
	background-color: #eaeaeae0;
	border-radius: 10px 10px 0px 0px;
	text-shadow: 0px 0px 10px white;
}

.propuestas-band h2 {
	color: #2949e5;
}

.categorias-div {
	width: 100%;
	background-color: #eaeaeae0;
	border-radius: 0px 0px 10px 10px;
    display: inline-block;
}

#categoria-seleccionada-div {
    width: 100%;
    display: block;
    overflow: hidden; /* clearfix para los float */
}

.categorias-card {
	float: left;
	width: 20%;
	margin: 0px;
	padding: 0px;
}

.categoria-button {
	border: none;
	width: 100%;
	text-align: center;
	color: #FFFFFF;
	padding: 10px;
	height: 80px;
}

.curso-card {
	/* 	background-color: #FCFCFC; */
	width: 25%;
	float: left;
}

.curso-interno {
	background-color: #FCFCFC;
	box-shadow: 1px 5px 16px rgba(0, 0, 0, 0.3);
	margin: 10px;
	border-radius: 10px;
	height: 424px;
	position: relative;
}

.curso-card h5 {
	margin: 0px;
	color: #323232;
	font-size: 14px;
	padding: 0px 15px;
	max-height: 70px; /* 3 líneas de 14px * 1.3 line-height ~= 55px + padding */
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.curso-card h3 {
	position: relative;
	top: 15px;
	left: -15px;
	font-size: 1.3em;
	background: #FCFCFC;
	border: solid;
	border-width: 1px;
	border-radius: 5px;
	border-color: #FCFCFC;
	z-index: 100;
	color: #323232;
	width: 25%;
	text-align: center;
}

.curso-imagen {
	background-size: cover;
	background-position: center;
	height: 280px;
	border-radius: 9px;
	margin-bottom: 10px;
}

.curso-inicio{
    padding: 8px 15px 0px 15px;
    font-size: 0.8em;
	color: #323232;
	display: -webkit-box;
}

.curso-clases {
	width: 50%;
	font-size: 10px;
	float: left;
	text-transform: uppercase;
	position: absolute;
	bottom: 10px;
	color: #777777;
	padding-left: 15px;
}

.curso-tipo {
	width: 50%;
	font-size: 10px;
	text-transform: uppercase;
	font-style: italic;
	float: right;
	text-align: right;
	right: 15px;
	position: absolute;
	bottom: 10px;
	color: #777777;
}

.curso-info{
	position: absolute; 
	bottom: 10px
}

/***************** MARCAS ******************/
.partners-div{  
	display: flex;   
	background-color: #eaeaeae0;
    border-radius: 10px 10px 0px 0px;
    position: relative;
    z-index: 120;
}

.partner-card{
	display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 15px;
}

.partner-card a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    overflow: hidden;
}

.partner-card owl-wrapper-outer owl-wrapper owl-item{
 	 max-height: 100%;
}

.partner-card img{
	max-width: 100%;
    max-height: 100%;
   	min-width: 140px;
    padding: 5px;
    width: auto;
    display: block;
}

/******************** FOOTER ***************/
.hrfooter {
	border: 1px solid #2949E5;
	margin: 0px 12.5px;
}

.footer-ext{
	padding: 0px 0px 0px 0px !important;
	max-width: none;
}


.footer-div{
	padding: 0px 0px 0px 0px !important;
	width: 100%;
    background-color: #eaeaeae0;
    position: relative;
    z-index: 120;
}

/**************** RESPONSIVE ************************/

/* ===== TABLET (max 1024px) ===== */
@media (max-width: 1024px) {

  /* Header */
  .logoinicio {
    width: 35%;
  }

  /* Sección central de proximas y propuestas */
  .proximas-band > div > div[style],
  .propuestas-band > div > div[style] {
    width: 90% !important;
  }

  .div-relleno-izquierda,
  .div-relleno-derecha {
    width: 5% !important;
  }

  /* Cursos: 2 por fila */
  .curso-card {
    width: 50%;
  }

  /* Categorías: 3 por fila */
  .categorias-card {
    width: 33.33%;
  }

  /* Hero */
  .hero-band {
    height: 280px;
  }

  .main-content {
    margin-top: 362px;
  }
}

/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {

  /* Header */
  .logoinicio {
    width: 55%;
    padding: 0.75em;
  }

  .box-usuario {
    margin-top: 0.6em;
  }

  .box-usuario span {
    display: none; /* Oculta texto "BUSCAR", deja solo ícono */
  }

  /* Hero: altura adaptable */
  .hero-band {
    position: relative;
    top: 0;
    height: auto;
    margin-top: 60px; /* altura aproximada del header */
  }

  .hero-band img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Main content sin margen fijo */
  .main-content {
    margin-top: 0;
  }

  /* Proximas y propuestas: eliminar rellenos laterales */
  .div-relleno-izquierda,
  .div-relleno-derecha {
    display: none !important;
  }

  .proximas-band > div > div[style],
  .propuestas-band > div > div[style] {
    width: 100% !important;
    float: none !important;
  }

  /* Proximas: posición relativa */
  .proximas-band {
    top: 0;
    margin-bottom: 20px;
  }

  /* Propuestas: posición relativa */
  .propuestas-band {
    top: 0;
  }

  /* Categorías: 2 por fila en mobile */
  .categorias-card {
    width: 50%;
  }

  /* Categorías: ajuste de border-radius en botones */
  .categoria-button {
    height: auto;
    min-height: 60px;
    font-size: 11px;
    padding: 8px 4px;
  }

  /* Cursos: 1 por fila */
  .curso-card {
    width: 100%;
  }

  .curso-interno {
    height: auto;
    padding-bottom: 100px;
  }

  .curso-imagen {
    height: 200px;
  }

  /* Prox card */
  .prox-card {
    height: auto;
    min-height: 120px;
    padding-bottom: 30px;
  }

  /* Partners */
  .partners-div {
    flex-wrap: wrap;
  }

  .partner-card {
    width: 50%;
    height: 120px;
    box-sizing: border-box;
  }

  .partner-card a {
    height: 120px;
  }
}

/* ===== MOBILE PEQUEÑO (max 480px) ===== */
@media (max-width: 480px) {

  .logoinicio {
    width: 65%;
  }

  /* Categorías: 1 por fila */
  .categorias-card {
    width: 100%;
  }

  .categoria-button {
    border-radius: 0 !important;
  }

  /* Imagen hero más baja */
  .hero-band img {
    min-height: 150px;
    object-fit: cover;
  }

  /* Partners */
  .partners-div {
    flex-wrap: wrap;
  }

  .partner-card {
    width: 50%;
    height: 120px;
    box-sizing: border-box;
  }

  .partner-card a {
    height: 120px;
  }

  .prox-top h5 {
    font-size: 13px;
  }

  .prox-top h3 {
    font-size: 1em;
  }
}

/**************** MODAL SEARCH ************************/
#modalsearch {
	display: none !important;
	opacity: 0;
	pointer-events: none;
	z-index: 9999 !important;
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: opacity 200ms linear;
}

#modalsearch.modal-open {
	display: block !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

#modalsearch .cajabusqueda {
	display: flex !important;
}



/**************** FOOTER MOBILE ************************/
@media (max-width: 768px) {

	footer {
		padding: 22px 32px 30px 30px;
		background-color: #eaeaeae0;
		color: #2949E5;
	}
	
  .anchofooter,
  .anchofooter2 {
    display: none !important; /* oculta versión desktop */
  }

  .footermobile {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .footermobile .box1 {
    width: 100%;
  }

  .footermobile .box1 p {
    margin: 4px 0;
    font-size: 13px;
    color: #444;
    text-align: left;
  }

  .footermobile .box1 a {
    font-size: 13px;
  }

  .anchofooter3 {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
  }

  .anchofooter3 img {
    width: 60px !important;
    display: block;
  }

  .anchofooter3.boxifooter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
  }

  .anchofooter3.boxifooter i {
    font-size: 22px;
    margin: 0 !important;
    color: #2949E5;
  }

  .footer-div footer {
    padding: 16px 0;
  }
}

/* Oculta el footermobile en desktop */
@media (min-width: 769px) {
  .footermobile {
    display: none !important;
  }
}

/**************** RIBBON ÚLTIMAS VACANTES ************************/
.ribbon-vacantes {
	position: absolute;
	top: 18px;
	right: -6px;
	background-color: #e02020;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 5px 12px 5px 10px;
	border-radius: 3px 0px 0px 3px;
	z-index: 10;
	box-shadow: -2px 2px 4px rgba(0,0,0,0.25);
}

/* Pequeña oreja doblada en la esquina */
.ribbon-vacantes::after {
	content: "";
	position: absolute;
	bottom: -6px;
	right: 0;
	border-width: 6px 6px 0 0;
	border-style: solid;
	border-color: #a01010 transparent transparent transparent;
}