/* 
Theme Name: Yiyo ETCM Theme
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Yiyo ETCM Theme is a child theme of Hello Elementor, created by Dinamiq. If this theme were removed or replaced, many of the website’s functions would cease to work
Author: Dinamiq
Author URI: https://www.dinamiq.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: yiyo-etcm-theme
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* =========================
   GLOBAL
========================= */
html {
	overflow-y: scroll;
	scrollbar-gutter: stable;
}
/*Enlaces*/
.custom-lnk{
	color: #B99DA1!important;
}
.custom-lnk:hover,
.custom-lnk:hover .elementor-icon-list-text{
	text-decoration:underline!important;
	color: #EC1337!important;
}

/* =========================
   HEADER
========================= */
.elementor-menu-toggle{
	padding:0;
}

/* =========================
   LISTADOS - ENTIDADES
========================= */
.yiyo-toggle-profesores,
.yiyo-toggle-festejos,
.yiyo-toggle-alumnos{
	font-family: "LEXEND VARIABLE", Sans-serif !important;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: #EC1337;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	transition: color .2s ease;
}

.yiyo-toggle-profesores:hover,
.yiyo-toggle-festejos:hover,
.yiyo-toggle-alumnos:hover{
	color: rgba(236, 19, 55, 0.82);
	text-decoration: underline;
}

.yiyo-toggle-profesores__text,
.yiyo-toggle-festejos__text,
.yiyo-toggle-alumnos__text{
    display:inline-block;
}

.yiyo-toggle-profesores__icon,
.yiyo-toggle-festejos__icon,
.yiyo-toggle-alumnos__icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.yiyo-toggle-profesores__icon svg,
.yiyo-toggle-festejos__icon svg,
.yiyo-toggle-alumnos__icon svg{
    display:block;
}

.loop-profesores .elementor-pagination,
.loop-festejos .elementor-pagination,
.loop-alumnos .elementor-pagination{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: relative;
    width: 100%;
    margin-top: 60px;
    font-family: "LEXEND VARIABLE", sans-serif;
}

.loop-profesores .elementor-pagination .prev,
.loop-profesores .elementor-pagination .next,
.loop-festejos .elementor-pagination .prev,
.loop-festejos .elementor-pagination .next,
.loop-alumnos .elementor-pagination .prev,
.loop-alumnos .elementor-pagination .next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.loop-profesores .elementor-pagination .prev,
.loop-festejos .elementor-pagination .prev,
.loop-alumnos .elementor-pagination .prev{
    left: 0;
}

.loop-profesores .elementor-pagination .next,
.loop-festejos .elementor-pagination .next,
.loop-alumnos .elementor-pagination .next{
    right: 0;
}

.loop-profesores .elementor-pagination .page-numbers,
.loop-festejos .elementor-pagination .page-numbers,
.loop-alumnos .elementor-pagination .page-numbers{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 36px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.loop-profesores .elementor-pagination .current,
.loop-festejos .elementor-pagination .current,
.loop-alumnos .elementor-pagination .current{
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #EC1337;
    color: #fff;
    font-weight: 700;
    padding: 0;
}

.loop-profesores .elementor-pagination a.page-numbers:hover,
.loop-festejos .elementor-pagination a.page-numbers:hover,
.loop-alumnos .elementor-pagination a.page-numbers:hover{
    color: #EC1337;
}

.loop-profesores .elementor-pagination .prev,
.loop-profesores .elementor-pagination .next,
.loop-festejos .elementor-pagination .prev,
.loop-festejos .elementor-pagination .next,
.loop-alumnos .elementor-pagination .prev,
.loop-alumnos .elementor-pagination .next{
    color: #FFFFFF;
	display: inline-flex;
    align-items: center;
}

.loop-profesores .elementor-pagination .prev:hover,
.loop-profesores .elementor-pagination .next:hover,
.loop-festejos .elementor-pagination .prev:hover,
.loop-festejos .elementor-pagination .next:hover,
.loop-alumnos .elementor-pagination .prev:hover,
.loop-alumnos .elementor-pagination .next:hover{
    color: #EC1337;
}

.loop-profesores .elementor-pagination .prev::before,
.loop-festejos .elementor-pagination .prev::before,
.loop-alumnos .elementor-pagination .prev::before{
    content: "\2190";
    margin-right: 10px;
}

.loop-profesores .elementor-pagination .next::after,
.loop-festejos .elementor-pagination .next::after,
.loop-alumnos .elementor-pagination .next::after{
    content: "\2192";
    margin-left: 10px;
}

/* =========================
   NOTICIAS - DETALLE
========================= */
.contenido-noticia img{
    border-radius: 12px;
}
.contenido-noticia h2,
.contenido-noticia h3,
.contenido-noticia h4{
    color:#d71920;
}
.contenido-noticia > p:first-of-type::first-letter {
    float: none;
    font-size: 46px;
    font-weight: 700;
    color: #d71920;
    line-height: 1;
    margin-right: 6px;
    display: inline-block;
    transform: translateY(2px); /* micro ajuste vertical */
}
.contenido-noticia blockquote.wp-block-quote {
    font-weight: 400!important;
    font-style: italic!important;
}
.contenido-noticia blockquote .has-text-color {
    font-weight: 500!important;
    font-style: normal!important;
}
.contenido-noticia figure{
    margin-right: 0!important;
    margin-left: 0!important;
}

/* =========================
   FESTEJOS
========================= */
/* FESTEJOS - DETALLE */
.yiyo-festejo-actuantes__title {
	font-family: "LEXEND VARIABLE", Sans-serif;
	font-size: 25px;
	font-weight: 600;
	line-height: 40px;
	color: #18111299;
	margin: 0 0 24px 0;
}
.festejo-desc > p:first-of-type::first-letter {
    float: none;
    font-size: 46px;
    font-weight: 700;
    color: #18111299;
    line-height: 1;
    margin-right: 6px;
    display: inline-block;
    transform: translateY(2px);
}

.yiyo-festejo-actuantes__list{
    display: grid;
    gap: 18px;
}

.yiyo-festejo-actuante-card{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 14px;
    background: #2A1B1E;
}

.yiyo-festejo-actuante-card__media{
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.yiyo-festejo-actuante-card__image{
    width: 80px!important;
    height: 80px!important;
    min-width: 80px!important;
    border-radius: 50%!important;
    object-fit: cover!important;
    object-position: center!important;
	margin: 0 10px;
}

.yiyo-festejo-actuante-card__content{
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.yiyo-festejo-actuante-card__category{
    margin-bottom: 8px;
    font-family: "LEXEND VARIABLE", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    text-transform: uppercase;
    color: #EC1337;
}

.yiyo-festejo-actuante-card__name{
    margin: 0 0 12px;
    font-family: "LEXEND VARIABLE", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.yiyo-festejo-actuante-card__results{
    display: grid;
    gap: 8px;
}

.yiyo-festejo-actuante-card__result-row{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-family: "LEXEND VARIABLE", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: #FFFFFF;
}

.yiyo-festejo-actuante-card__result-label{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #B99DA1;
    font-weight: 500;
    min-width: 78px;
}

.yiyo-festejo-actuante-card__result-label::before{
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background-color: #EC1337;
    -webkit-mask-image: var(--yiyo-ganaderia-icon);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: var(--yiyo-ganaderia-icon);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    flex-shrink: 0;
}

.yiyo-festejo-actuante-card__result-sep{
    color: #B99DA1;
}

.yiyo-festejo-actuante-card__result-item{
    color: #FFFFFF;
}

@media (max-width: 767px){
    .yiyo-festejo-actuante-card{
        grid-template-columns: 56px 1fr;
        gap: 14px;
        padding: 14px;
    }

    .yiyo-festejo-actuante-card__media{
        width: 60px;
    }

    .yiyo-festejo-actuante-card__name{
        font-size: 18px;
    }

    .yiyo-festejo-actuante-card__result-row{
        font-size: 13px;
        line-height: 16px;
    }

    .yiyo-festejo-actuante-card__result-label{
        min-width: auto;
    }
}

/* =========================
   FILTRO CATEGORÍAS - ALUMNOS / FESTEJOS
========================= */

.yiyo-filtro-alumnos,
.yiyo-filtro-festejos {
	width: 100%;
	border-bottom: 1px solid #FFFFFF0D;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #FFFFFF33 transparent;
}

.yiyo-filtro-alumnos::-webkit-scrollbar,
.yiyo-filtro-festejos::-webkit-scrollbar {
	height: 4px;
}

.yiyo-filtro-alumnos::-webkit-scrollbar-track,
.yiyo-filtro-festejos::-webkit-scrollbar-track {
	background: transparent;
}

.yiyo-filtro-alumnos::-webkit-scrollbar-thumb,
.yiyo-filtro-festejos::-webkit-scrollbar-thumb {
	background-color: #FFFFFF33;
	border-radius: 999px;
}

.yiyo-filtro-alumnos::-webkit-scrollbar-thumb:hover,
.yiyo-filtro-festejos::-webkit-scrollbar-thumb:hover {
	background-color: #FFFFFF66;
}

.yiyo-filtro-alumnos__list,
.yiyo-filtro-festejos__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 40px;
	min-width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yiyo-filtro-alumnos__item,
.yiyo-filtro-festejos__item {
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}

.yiyo-filtro-alumnos__link,
.yiyo-filtro-festejos__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	font-family: "LEXEND VARIABLE", Sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 8px 8px 18px 8px;
	color: #FFFFFF99 !important;
	text-decoration: none;
	transition: color .2s ease;
}

.yiyo-filtro-alumnos__link:hover,
.yiyo-filtro-festejos__link:hover {
	color: #FFFFFF !important;
}

.yiyo-filtro-alumnos__link.is-active,
.yiyo-filtro-festejos__link.is-active {
	color: #FFFFFF !important;
}

.yiyo-filtro-alumnos__link.is-active::after,
.yiyo-filtro-festejos__link.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background-color: #EC1337;
}

@media (max-width: 767px) {
	.yiyo-filtro-alumnos__list,
	.yiyo-filtro-festejos__list {
		gap: 28px;
	}
}

/* =========================
   LOOPS - ANIMACIÓN
========================= */
.loop-festejos .e-loop-item,
.loop-alumnos .e-loop-item{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 1.5s;
}
.loop-festejos .e-loop-item.visible,
.loop-alumnos .e-loop-item.visible{
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--animation-order) * 0.2s);
}

/* =========================
   INSTALACIONES - HOME Y GALERÍA
========================= */
/*HOME*/
.galeria-instalaciones-home {
  align-items: stretch;
}

.galeria-instalaciones-home > .e-con {
  display: flex;
  flex-direction: column;
}

.galeria-instalaciones-home .elementor-element-56267f5 {
  height: auto;
}

.galeria-instalaciones-home .elementor-element-56267f5 .elementor-widget-gallery {
  height: 100%;
}

.galeria-instalaciones-home .elementor-element-56267f5 .elementor-gallery__container,
.galeria-instalaciones-home .elementor-element-56267f5 .e-gallery-container,
.galeria-instalaciones-home .elementor-element-56267f5 .e-gallery-item,
.galeria-instalaciones-home .elementor-element-56267f5 .e-gallery-image {
  height: 100% !important;
  min-height: 100%;
}

.galeria-instalaciones-home .elementor-element-56267f5 .e-gallery-container {
  padding-bottom: 0 !important;
}
/*INSTALACIONES*/
/* Contenedor */
.galeria-instalaciones .elementor-gallery__titles-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    
    /* scroll suave en iOS */
    -webkit-overflow-scrolling: touch;
}

/* Ocultar scrollbar (opcional, estético) */
.galeria-instalaciones .elementor-gallery__titles-container::-webkit-scrollbar {
    display: none;
}
.galeria-instalaciones .elementor-gallery__titles-container {
    scrollbar-width: none;
}

/* Items */
.galeria-instalaciones .elementor-gallery__titles-container .elementor-item {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* =========================================================
   FORMULARIOS ELEMENTOR
   Contacto: .contact-form
   Inscripción: .inscripcion-form
========================================================= */


/* =========================================================
   ESTILOS COMUNES
========================================================= */

.contact-form .elementor-field-type-submit button,
.inscripcion-form .elementor-field-type-submit button {
    margin-top: 10px;
}


/* =========================================================
   RADIO + CHECKBOX PERSONALIZADOS
   Contacto + Inscripción
========================================================= */

.contact-form .elementor-field-subgroup .elementor-field-option input[type="radio"],
.contact-form .elementor-field-subgroup .elementor-field-option input[type="checkbox"],
.inscripcion-form .elementor-field-subgroup .elementor-field-option input[type="radio"],
.inscripcion-form .elementor-field-subgroup .elementor-field-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-form .elementor-field-subgroup .elementor-field-option,
.inscripcion-form .elementor-field-subgroup .elementor-field-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 14px;
}

.contact-form .elementor-field-subgroup .elementor-field-option label,
.inscripcion-form .elementor-field-subgroup .elementor-field-option label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #b9aeb2;
    font-size: 14px;
    line-height: 1.3;
    transition: all .2s ease;
}

.contact-form .elementor-field-subgroup .elementor-field-option label::before,
.inscripcion-form .elementor-field-subgroup .elementor-field-option label::before {
    content: "";
    width: 14px;
    height: 14px;
    min-width: 14px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 3px;
    background: transparent;
    display: inline-block;
    box-sizing: border-box;
    transition: all .2s ease;
}

.contact-form .elementor-field-subgroup .elementor-field-option input[type="radio"]:checked + label,
.contact-form .elementor-field-subgroup .elementor-field-option input[type="checkbox"]:checked + label,
.inscripcion-form .elementor-field-subgroup .elementor-field-option input[type="radio"]:checked + label,
.inscripcion-form .elementor-field-subgroup .elementor-field-option input[type="checkbox"]:checked + label {
    color: #ffffff;
}

.contact-form .elementor-field-subgroup .elementor-field-option input[type="radio"]:checked + label::before,
.contact-form .elementor-field-subgroup .elementor-field-option input[type="checkbox"]:checked + label::before,
.inscripcion-form .elementor-field-subgroup .elementor-field-option input[type="radio"]:checked + label::before,
.inscripcion-form .elementor-field-subgroup .elementor-field-option input[type="checkbox"]:checked + label::before {
    background: #ff2b45;
    border-color: #ff2b45;
    box-shadow: inset 0 0 0 2px #1a0d10;
}

.contact-form .elementor-field-subgroup .elementor-field-option label:hover::before,
.inscripcion-form .elementor-field-subgroup .elementor-field-option label:hover::before {
    border-color: rgba(255,255,255,0.45);
}


/* =========================================================
   FORMULARIO INSCRIPCIÓN
========================================================= */

/* Select */
.inscripcion-form #form-field-genero option {
    color: #181112 !important;
}

/* Títulos de pasos */
.inscripcion-form .form-step-head {
    font-family: 'LEXEND VARIABLE', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -0.75px;
}

.inscripcion-form .form-step-head::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #EC1337;
    margin-top: 12px;
}

/* Texto informativo */
.inscripcion-form .form-step-text {
    color: #B99DA1 !important;
    font-family: 'LEXEND VARIABLE', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

/* Botonera paso 1 */
.inscripcion-form .e-form__step:nth-of-type(1) .e-form__buttons {
    width: 40%;
    display: flex;
    align-items: flex-end;
}

/* Botonera paso 2 en adelante */
.inscripcion-form .e-form__step:nth-of-type(n+2) .e-form__buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Evita que los wrappers de botones crezcan */
.inscripcion-form .e-form__step:nth-of-type(n+2) .e-form__buttons .e-form__buttons__wrapper,
.inscripcion-form .e-form__step:nth-of-type(n+2) .e-form__buttons .elementor-field-type-previous,
.inscripcion-form .e-form__step:nth-of-type(n+2) .e-form__buttons .elementor-field-type-next,
.inscripcion-form .e-form__step:nth-of-type(n+2) .e-form__buttons .elementor-field-type-submit {
    width: auto;
    flex: 0 0 auto;
    max-width: none;
}

/* Ancho controlado de botones */
.inscripcion-form .e-form__step:nth-of-type(n+2) .e-form__buttons .elementor-button {
    width: 220px;
    min-width: 220px;
    flex: 0 0 auto;
}

/*Firma*/
.elementor_signature_clear{
	background:#fff!important;
}

/* =========================================================
   DATEPICKER FLATPICKR
   Se deja global porque Flatpickr suele renderizarse fuera del form
========================================================= */

.flatpickr-day.today {
    border-color: #EC1337 !important;
}

.flatpickr-day.today:focus,
.flatpickr-day.today:hover {
    border-color: #EC1337 !important;
    background: #EC1337 !important;
}

.flatpickr-day.selected {
    border-color: #EC1337 !important;
    background: #EC1337 !important;
}

.flatpickr-day.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.nextMonthDay.today.inRange,
.flatpickr-day.nextMonthDay:focus,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.today.inRange,
.flatpickr-day:focus,
.flatpickr-day:hover {
    background: #FF3153 !important;
    border-color: #FF3153 !important;
    color: #ffffff !important;
}

/* =========================================================
   ESTADÍSTICAS
========================================================= */
.yiyo-estadisticas-filtros,
.yiyo-estadisticas-filtros *,
.yiyo-estadisticas-filtros-mobile,
.yiyo-estadisticas-filtros-mobile *,
.yiyo-estadisticas-tabla-wrap,
.yiyo-estadisticas-tabla-wrap * {
    font-family: "LEXEND VARIABLE", Sans-serif !important;
}

/* Filtros escritorio */
.yiyo-estadisticas-filtros {
    display: flex;
    gap: 16px;
    align-items: end;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .13);
}

.yiyo-estadisticas-filtros__field,
.yiyo-estadisticas-filtros-mobile__field {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.yiyo-estadisticas-filtros label,
.yiyo-estadisticas-filtros-mobile label {
    font-size: 20px;
    font-weight: 800;
    color: #1c1516;
}

.yiyo-estadisticas-filtros select,
.yiyo-estadisticas-filtros-mobile select {
    height: 52px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 0 46px 0 22px;
    background-color: #f7f7f7;
    font-size: 15px;
    color: #777;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
    background-position: calc(100% - 25px) 50%, calc(100% - 18px) 50%;
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
}

.yiyo-estadisticas-filtros__button,
.yiyo-estadisticas-filtros-mobile__button {
    height: 52px;
    border: 2px solid transparent;
    box-sizing: border-box;
    border-radius: 8px;
    background: #ef1745;
    color: #fff;
    font-weight: 700;
    padding: 0 34px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.yiyo-estadisticas-filtros__button::before,
.yiyo-estadisticas-filtros-mobile__button::before {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    background: currentColor;
    mask: url("https://yiyomadrid.com/wp-content/uploads/2026/05/filter-icon.svg") center / contain no-repeat;
    -webkit-mask: url("https://yiyomadrid.com/wp-content/uploads/2026/05/filter-icon.svg") center / contain no-repeat;
}

.yiyo-estadisticas-filtros__button:hover,
.yiyo-estadisticas-filtros__button:focus,
.yiyo-estadisticas-filtros-mobile__button:hover,
.yiyo-estadisticas-filtros-mobile__button:focus {
    background: #fff !important;
    border-color: #ED2A4A !important;
    color: #ED2A4A !important;
}

/* Filtros móvil */
.yiyo-estadisticas-filtros-mobile {
    display: none;
}

/* Tabla */
.yiyo-estadisticas-tabla-wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.yiyo-estadisticas-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.yiyo-estadisticas-tabla {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.yiyo-estadisticas-tabla thead,
.yiyo-estadisticas-tabla thead tr,
.yiyo-estadisticas-tabla thead th {
    background: transparent !important;
    border: 0 !important;
}

.yiyo-estadisticas-tabla th {
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 0 18px 24px;
    font-weight: 700;
    white-space: nowrap;
    color: rgba(0, 0, 0, .4) !important;
}

.yiyo-estadisticas-tabla th:first-child {
    text-align: left;
    min-width: 290px;
}

.yiyo-estadisticas-tabla td {
    padding: 18px;
    border: 0;
    border-bottom: 1px solid #e4e4e4;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

.yiyo-estadisticas-tabla td:first-child {
    text-align: left;
    min-width: 290px;
}

.yiyo-estadisticas-tabla tbody tr,
.yiyo-estadisticas-tabla tbody tr:nth-child(odd),
.yiyo-estadisticas-tabla tbody tr:nth-child(even),
.yiyo-estadisticas-tabla tbody tr td,
.yiyo-estadisticas-tabla tbody tr:nth-child(odd) td,
.yiyo-estadisticas-tabla tbody tr:nth-child(even) td {
    background: #fff !important;
    background-color: #fff !important;
}

.yiyo-estadisticas-tabla tbody tr:hover,
.yiyo-estadisticas-tabla tbody tr:hover td {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
}

/* Sort */
.yiyo-estadisticas-sort-link,
.yiyo-estadisticas-tabla th a {
    color: rgba(0, 0, 0, .4) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .2s ease;
}

.yiyo-estadisticas-sort-link:hover,
.yiyo-estadisticas-sort-link.is-active,
.yiyo-estadisticas-tabla th a:hover {
    color: #EC1337 !important;
}

.yiyo-estadisticas-sort-link span::before {
    content: "↕";
    font-size: 12px;
    opacity: .65;
}

.yiyo-estadisticas-sort-link.is-desc span::before {
    content: "↓";
    opacity: 1;
}

.yiyo-estadisticas-sort-link.is-asc span::before {
    content: "↑";
    opacity: 1;
}

/* Alumno */
.yiyo-estadisticas-tabla__alumno {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 800;
    color: #1c1516;
    white-space: nowrap;
}

.yiyo-estadisticas-tabla__avatar {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px;
    border-radius: 50% !important;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    display: block;
}

/* Empty */
.yiyo-estadisticas-empty {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.75px;
    font-weight: 700;
}

/* Paginación */
.yiyo-estadisticas-pagination-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.yiyo-estadisticas-count {
    margin: 0;
    color: #999;
    font-size: 13px;
}

.yiyo-estadisticas-count strong {
    font-weight: 700;
    color: inherit;
}

.yiyo-estadisticas-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.yiyo-estadisticas-pagination__item,
.yiyo-estadisticas-pagination__dots {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #777;
    text-decoration: none;
    font-size: 13px;
}

.yiyo-estadisticas-pagination__item {
    border: 1px solid #aaa;
}

.yiyo-estadisticas-pagination__item:hover,
.yiyo-estadisticas-pagination__item.is-active,
.yiyo-estadisticas-pagination__item.is-active:hover {
    background: #ef1745 !important;
    border-color: #ef1745 !important;
    color: #fff !important;
}

/* Responsive cards */
@media (max-width: 767px) {
    .yiyo-estadisticas-filtros {
        display: none;
    }

    .yiyo-estadisticas-filtros-mobile {
        display: grid;
        gap: 16px;
        width: 100%;
        padding: 20px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .13);
    }

    .yiyo-estadisticas-filtros-mobile label {
        font-size: 20px;
        line-height: 24px;
    }

    .yiyo-estadisticas-filtros-mobile select,
    .yiyo-estadisticas-filtros-mobile__button {
        width: 100%;
        min-width: 0;
    }

    .yiyo-estadisticas-table-scroll {
        overflow: visible;
    }

    .yiyo-estadisticas-tabla {
        min-width: 0;
        width: 100%;
        border-collapse: separate;
    }

    .yiyo-estadisticas-tabla thead {
        display: none;
    }

    .yiyo-estadisticas-tabla,
    .yiyo-estadisticas-tabla tbody,
    .yiyo-estadisticas-tabla tr,
    .yiyo-estadisticas-tabla td {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
    }

    .yiyo-estadisticas-tabla tbody {
        display: grid;
        gap: 20px;
        width: 100%;
    }

    .yiyo-estadisticas-tabla tbody tr {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        padding: 22px;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
        overflow: hidden;
    }

    .yiyo-estadisticas-tabla tbody tr,
    .yiyo-estadisticas-tabla tbody tr td {
        background: #fff !important;
        background-color: #fff !important;
    }

    .yiyo-estadisticas-tabla tbody tr:hover,
    .yiyo-estadisticas-tabla tbody tr:hover td {
        background: #fff !important;
        background-color: #fff !important;
    }

    .yiyo-estadisticas-tabla td {
        min-width: 0 !important;
        padding: 11px 0;
        border-bottom: 1px solid #e4e4e4;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        text-align: right;
        white-space: normal;
        font-size: 14px;
    }

    .yiyo-estadisticas-tabla td::before {
        content: attr(data-label);
        font-size: 13px;
        font-weight: 800;
        color: rgba(0, 0, 0, .45);
        text-align: left;
        white-space: nowrap;
    }

    .yiyo-estadisticas-tabla td:first-child {
        display: block;
        min-width: 0 !important;
        padding: 0 0 18px;
        margin: 0 0 8px;
        text-align: center;
        border-bottom: 1px solid #e4e4e4;
    }

    .yiyo-estadisticas-tabla td:first-child::before {
        display: none;
    }

    .yiyo-estadisticas-tabla td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .yiyo-estadisticas-tabla__alumno {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: center;
        white-space: normal;
        font-size: 18px;
        line-height: 20px;
    }

    .yiyo-estadisticas-tabla__avatar {
        width: 74px !important;
        height: 74px !important;
        min-width: 74px;
    }

    .yiyo-estadisticas-pagination-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   COOKIES
========================================================= */

.mgbutton{
	border-radius:8px!important;
}