/*
 Theme Name:   Ontibasket Theme Child
 Theme URI:    https://ontibasket.es
 Description:  Tema hijo para Ontibasket.es basado en GeneratePress
 Author:       Tu Nombre o el del Club
 Author URI:   https://ontibasket.es
 Template:     ontibasket-theme
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, responsive-layout
 Text Domain:  ontibasket-theme-child
*/

/*--------------------------------------------------------------
# 1.0 VARIABLES Y ESTILOS GLOBALES
--------------------------------------------------------------*/

:root {
    --ont-color-orange: #e97029;
    --ont-color-purple: rgb(152, 68, 146);
    --ont-color-dark: #1e1e1e;
    --ont-color-gray: #f4f4f4;
    --ont-color-text: #333;
    --ont-font-primary: 'Montserrat', sans-serif;
}

body {
    font-family: var(--ont-font-primary);
    color: var(--ont-color-text);
}

.page-template-template-home .no-sidebar #primary {
    width: 100%;
}
.separate-containers .site-main{
    margin-top: 0;
}
.post-template-default input, .post-template-default textarea {
    border: 1px solid black !important;
}
/*--------------------------------------------------------------
# 2.0 COMPONENTES REUTILIZABLES (Botones, Contenedores, Grids)
--------------------------------------------------------------*/

.ont-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.ont-section {
    padding: 30px 0;
}

.ont-section__title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    color: var(--ont-color-dark);
    margin-bottom: 40px;
    text-transform: uppercase;
}

.ont-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--ont-color-orange);
    margin: 15px auto 0;
}

.ont-section__subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--ont-color-purple);
    margin-top: -30px;
    margin-bottom: 40px;
    font-weight: 700;
}

.ont-section__footer {
    text-align: center;
    margin-top: 40px;
}

.ont-button {
    display: inline-block;
    background-color: var(--ont-color-orange);
    color: #fff;
    padding: 5px 25px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.ont-button:hover {
    background-color: var(--ont-color-purple);
    color: #fff;
}

.ont-button--outline {
    background-color: transparent;
    color: var(--ont-color-orange);
    border: 2px solid var(--ont-color-orange);
}

.ont-button--outline:hover {
    background-color: var(--ont-color-orange);
    color: #fff;
}

.ont-grid {
    display: grid;
    gap: 30px;
}

.ont-grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ont-grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/*--------------------------------------------------------------
# 3.0 ESTILOS DE SECCIONES ESPECÍFICAS
--------------------------------------------------------------*/

.ont-section--history {
    background-color: var(--ont-color-gray);
}
.ont-history__content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
}
.ont-history__content p{
    text-align: justify;
}
.ont-history__content ul{
    text-align: left;
}

.ont-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.ont-grid--2-cols .ont-card__image {
    height: 300px;
}

.ont-card__image-link {
    display: block;
}

.ont-card__image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ont-card__category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--ont-color-purple);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.ont-card__content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ont-card__title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.ont-card__title a {
    font-weight: 600;
    text-decoration: none;
    color: var(--ont-color-dark);
    transition: color 0.3s ease;
}

.ont-card__title a:hover {
    color: var(--ont-color-orange);
}

.ont-card__meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    margin-top: auto;
}

.ont-section--facilities {
    background-color: var(--ont-color-gray);
}
.ont-card--facility .ont-card__content {
    text-align: center;
}
.ont-card__address {
    margin-bottom: 20px;
}

.ont-matches-list {
    max-width: 800px;
    margin: 0 auto;
}
.ont-match-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.ont-match-entry:last-child {
    border-bottom: none;
}

.ont-match-entry__team {
    flex: 1;
    text-align: center;
}

.ont-match-entry__team-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--ont-color-text);
    transition: color 0.3s ease;
}

.ont-match-entry__team-link:hover {
    color: var(--ont-color-orange);
}

.ont-match-entry__team--local .ont-match-entry__team-link {
    justify-content: flex-start;
}

.ont-match-entry__team--visitor .ont-match-entry__team-link {
    justify-content: flex-end;
}

.ont-match-entry__logo {
    width: 50px;
    height: 50px;
}

.ont-match-entry__name {
    font-weight: 700;
    margin: 0 15px;
}

.ont-match-entry__score {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ont-color-dark);
}

.ont-match-entry__score a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.ont-match-entry__points.is-winner {
    color: #28a745; 
}

.ont-match-entry__points.is-loser {
    color: #dc3545;
    opacity: 0.7;
}

.ont-slider-section {
    width: 100%;
    margin-bottom: 60px;
}

.ont-slider {
    position: relative;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

.ont-slider__wrapper {
    position: relative;
    width: 100%;
}

.ont-slider__slide {
    display: none;
}

.ont-slider__slide.is-active {
    display: block;
    animation: fadeEffect 1.5s;
}

.ont-slider__slide img {
    width: 100%;
    vertical-align: middle;
}

@keyframes fadeEffect {
    from { opacity: .4 }
    to { opacity: 1 }
}

.ont-slider__nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    transition: background-color 0.3s ease;
    user-select: none;
}

.ont-slider__nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.ont-slider__nav--prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.ont-slider__nav--next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.ont-slider__dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.ont-slider__dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: inline-block;
    padding: 0;
    transition: background-color 0.6s ease;
}

.ont-slider__dot.is-active,
.ont-slider__dot:hover {
    background-color: var(--ont-color-orange);
    border-color: var(--ont-color-orange);
}

.site-content .content-area {
    width: 100% !important;
}

.ont-section--scorers {
    background-color: var(--ont-color-gray);
}

.ont-scorers-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #ddd;
}

.ont-scorer-entry {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.ont-scorer-entry:hover {
    background-color: #fff;
}

.ont-scorer-entry__rank {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ont-color-purple);
    width: 50px;
    flex-shrink: 0;
    text-align: center;
}

.ont-scorer-entry__player-info {
    flex-grow: 1;
}

.ont-scorer-entry__player-info a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--ont-color-dark);
}

.ont-scorer-entry__photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.ont-scorer-entry__name {
    font-weight: 700;
    font-size: 1.1rem;
}

.ont-scorer-entry__player-info a:hover .ont-scorer-entry__name {
    color: var(--ont-color-orange);
}

.ont-scorer-entry__team {
    margin: 0 20px;
}

.ont-scorer-entry__team-logo {
    width: 45px;
    height: auto;
}

.ont-scorer-entry__stats {
    text-align: right;
}

.ont-scorer-entry__points {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--ont-color-orange);
    line-height: 1;
}

.ont-scorer-entry__points-label {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
}

/*--------------------------------------------------------------
# 4.0 ESTILOS DEL HEADER Y FOOTER
--------------------------------------------------------------*/

.ont-header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1001;
}

.ont-header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ont-header__logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

.ont-footer {
    background-color: var(--ont-color-dark);
    color: #ccc;
    padding: 30px 0;
    margin-top: 60px;
}
.ont-footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.ont-menu, .ont-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ont-menu li {
	position: relative;
}

body.no-scroll {
    overflow: hidden;
}

.ont-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.ont-mobile-toggle {
    display: flex; 
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1;
    background-color: transparent !important;
}

.ont-mobile-toggle__bar {
    width: 100%;
    height: 3px;
    background: var(--ont-color-dark);
    border-radius: 10px;
}

.ont-header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--ont-color-dark);
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    overflow-y: auto;
}
.ont-header__nav.is-open {
    transform: translateX(0);
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
}

.ont-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ont-menu li {
    width: 100%;
}
.ont-menu a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    border-bottom: 1px solid #444;
}
.ont-menu a:hover {
    background-color: var(--ont-color-purple);
}

.ont-menu .sub-menu {
    padding-left: 20px;
}
.ont-menu .sub-menu a {
    font-size: 0.9rem;
    font-weight: normal;
    text-transform: none;
    padding-left: 30px;
}

.ont-menu .ont-menu-button a {
    background-color: var(--ont-color-orange);
    color: #fff !important;
}
.ont-menu .ont-menu-button a:hover {
    background-color: var(--ont-color-purple);
}

@media (max-width: 991px) {
	.ont-header__nav {
		position: fixed;
		top: 0;
		left: -300px;
		width: 300px;
		height: 100%;
		background: #000;
		color: #fff;
		transition: left 0.3s ease;
		padding-top: 60px;
		z-index: 9999;
		overflow-y: auto;
	}
	.ont-header__nav.active {
		left: 300px;
        z-index: 1001;
	}
	.ont-menu {
		display: flex;
		flex-direction: column;
	}
	.ont-menu li {
		border-bottom: 1px solid #222;
        border-top: 1px solid #222;

	}
	.ont-menu li a {
		display: block;
		padding: 15px;
		color: #fff;
		text-decoration: none;
        width: fit-content;
        border:none;
	}
	.ont-menu li ul {
		display: none;
		background: #111;
	}
	.ont-menu li.open > ul {
		display: block;
	}
	.submenu-toggle {
		position: absolute;
		right: 15px;
		top: 18px;
		width: 12px;
		height: 12px;
		border-right: 2px solid #fff;
		border-bottom: 2px solid #fff;
		transform: rotate(45deg);
		cursor: pointer;
	}
	.ont-menu-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,0.5);
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
		z-index: 9998;
	}
	.ont-menu-overlay.active {
		opacity: 1;
		visibility: visible;
        z-index: 1;
	}
}


@media (min-width: 992px) {

    .ont-header__logo { 
        order: 1; 
    }
    .ont-header__nav { 
        order: 2; 
    }
    .ont-mobile-toggle { 
        order: 3; 
        display: none; 
    }

    .ont-header__logo img {
        height: 60px;
    }

    .ont-header__nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding-top: 0;
        transform: none;
        overflow-y: visible;
        box-shadow: none;
    }

    .ont-menu {
        display: flex;
        align-items: center;
    }
    .ont-menu li {
        width: auto;
        margin-left: 10px;
    }
    .ont-menu a {
        color: var(--ont-color-dark);
        border-bottom: none;
        padding: 15px;
        font-size: 0.9rem;
    }
    .ont-menu a:hover,
    .ont-menu .current-menu-item > a {
        background-color: transparent;
        color: var(--ont-color-orange);
    }
    
    .ont-submenu-toggle {
        display: none;
    }

    .ont-menu .menu-item-has-children > a {
        padding-right: 30px;
    }
    .ont-menu .menu-item-has-children > a::after {
        content: '▼';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.7rem;
        color: var(--ont-color-purple);
        transition: transform 0.3s ease;
    }
    .ont-menu .menu-item-has-children:hover > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .ont-menu .sub-menu {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        padding: 10px 0;
        margin: 0;
        min-width: 200px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-radius: 0 0 5px 5px;
        z-index: 1000;
        overflow: visible;
        max-height: none; 
    }
    .ont-menu li:hover > .sub-menu {
        display: block;
    }
    .ont-menu .sub-menu li {
        margin: 0;
    }
    .ont-menu .sub-menu a {
        padding: 10px 20px;
        white-space: nowrap; 
    }
    .ont-menu .sub-menu a:hover {
        background-color: var(--ont-color-gray);
        color: var(--ont-color-purple);
    }

    .ont-menu .ont-menu-button a {
        background-color: var(--ont-color-orange);
        color: #fff !important;
        border-radius: 5px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .ont-menu .ont-menu-button a:hover {
        background-color: var(--ont-color-purple);
    }

    .inside-article {
        max-width: 1220px;
        margin: 0 auto;
    }
}

/*--------------------------------------------------------------
# 6.0 ESTILOS DE PÁGINAS DE EQUIPOS (ROSTER)
--------------------------------------------------------------*/

.ont-pro-team__intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.ont-grid--roster {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
}
@media (min-width: 576px) {
    .ont-grid--roster {
        gap: 30px; 
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}
.ont-card--player {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.ont-card--player:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.ont-card--player .ont-card__link-wrapper {
    text-decoration: none;
    display: block;
    color: inherit;
}

.ont-card--player .ont-card__image-container {
    position: relative;
    padding-bottom: 133.33%; 
    height: 0;
    overflow: hidden;
    background-color: var(--ont-color-gray);
}

.ont-card--player .ont-card__image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; 
}

.ont-card--player .ont-card__dorsal {
    position: absolute;
    bottom: -15px;
    right: 15px;
    background-color: var(--ont-color-orange);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #fff;
}

.ont-card--player .ont-card__content {
    padding: 25px 15px 15px;
    text-align: center;
}

.ont-card--player .ont-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

/*--------------------------------------------------------------
# 7.0 ESTILOS DE BLOG Y ENTRADAS
--------------------------------------------------------------*/

.ont-archive-header {
    padding: 40px 0;
    text-align: center;
}

.archive .site-main {
    padding-bottom: 60px;
}

.ont-grid--3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.ont-card__excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1; 
}

.ont-card--news .ont-button {
    align-self: flex-start; 
}


.posts-navigation {
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
}
.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.posts-navigation .nav-links a {
    display: inline-block;
    background-color: transparent;
    color: var(--ont-color-orange);
    border: 2px solid var(--ont-color-orange);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.posts-navigation .nav-links a:hover {
    background-color: var(--ont-color-orange);
    color: #fff;
}

.ont-single-post__thumbnail {
    height: 500px;
    background-size: contain;
    background-position: center;
    margin-bottom: 40px;
    background-repeat: no-repeat;
}

.ont-single-post__header {
    text-align: center;
    margin-bottom: 40px;
}

.ont-single-post__header .ont-card__category {
    display: inline-block; 
    margin-bottom: 15px;
}

.ont-single-post__title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
}

.ont-single-post__header .ont-card__meta {
    margin-top: 15px;
    font-size: 1rem;
    color: #777;
}

.ont-single-post__content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.ont-single-post__content p,
.ont-single-post__content ul,
.ont-single-post__content ol,
.ont-single-post__content blockquote {
    margin-bottom: 1.5em;
}

.ont-single-post__content h2 { font-size: 2rem; margin-top: 2em; margin-bottom: 1em; }
.ont-single-post__content h3 { font-size: 1.6rem; margin-top: 1.8em; margin-bottom: 1em; }
.ont-single-post__content ul,
.ont-single-post__content ol { padding-left: 1.5em; }

.ont-single-post__content blockquote {
    border-left: 4px solid var(--ont-color-orange);
    padding-left: 1.5em;
    font-style: italic;
    color: #555;
    margin-left: 0;
    margin-right: 0;
}

.ont-single-post__footer {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.ont-single-post__footer .tags-links a {
    display: inline-block;
    background-color: var(--ont-color-gray);
    color: #555;
    padding: 5px 12px;
    margin: 0 5px 5px 0;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.ont-single-post__footer .tags-links a:hover {
    background-color: var(--ont-color-purple);
    color: #fff;
}

/*--------------------------------------------------------------
# 8.0 ESTILOS DE TIENDA (PRODUCTOS)
--------------------------------------------------------------*/

.ont-shop-header {
    text-align: center;
    margin: 40px 0;
}

.ont-shop-header__logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    border: 3px solid;
    border-radius: 25px;
}

.ont-card--product .ont-card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ont-card--product .ont-card__title {
    text-align: center;
    font-weight: 600;
}

.ont-card__attributes {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.ont-card__attributes li {
    margin-bottom: 5px;
}

.ont-card__actions {
    margin-top: auto; 
    text-align: center;
    padding-top: 15px; 
}

@media (max-width: 768px) {
    .ont-shop-header__logo {
        max-width: 250px;
    }
}
/*--------------------------------------------------------------
# 9.0 ESTILOS PARA PÁGINA DE PARTIDOS (SHORTCODE OPTIMIZADO)
--------------------------------------------------------------*/

.ont-jornadas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.ont-jornada-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ont-jornada-card__title {
    background-color: var(--ont-color-purple);
    color: #fff;
    padding: 15px;
    margin: 0;
    text-align: center;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ont-match-entry {
    display: grid;
    grid-template-columns: 1fr 100px 1fr; 
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--ont-color-gray);
}

.ont-jornada-card__matches .ont-match-entry:last-child {
    border-bottom: none;
}

.ont-match-entry__team {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--ont-color-dark);
    transition: opacity 0.3s ease;
}

.ont-match-entry__team:hover {
    opacity: 0.7;
}

.ont-match-entry__team--local {
    justify-content: flex-start;
}

.ont-match-entry__team--visitor {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.ont-match-entry__logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.ont-match-entry__name {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 10px;
}

.ont-match-entry__score {
    text-align: center;
}

.ont-match-entry__score a {
    text-decoration: none;
    color: var(--ont-color-purple);
    font-size: 1.8rem;
    font-weight: 900;
    display: block;
}

.ont-match-entry__points {
    display: inline-block;
}

.ont-match-entry__points.is-winner {
    color: #28a745;
}

.ont-match-entry__points.is-loser {
    color: #dc3545;
    opacity: 0.8;
}
.ont-match-entry__team a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: inherit;
}

@media (max-width: 480px) {
    .ont-jornadas-grid {
        grid-template-columns: 1fr;
    }

    .ont-match-entry {
        grid-template-columns: 1fr 80px 1fr;
        gap: 10px;
    }
    .ont-match-entry__name {
        font-size: 0.7rem;
    }
    .ont-match-entry__score a {
        font-size: 1.5rem;
    }
}

/*--------------------------------------------------------------
# 10.0 ESTILOS PARA TABLA DE ANOTADORES
--------------------------------------------------------------*/

.ont-scorers-table {
    margin: 40px 0;
}

.ont-scorers-table__header {
    display: none;
}

.ont-scorer-entry {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    background-color: #fff;
    padding: 15px;
    border-bottom: 1px solid var(--ont-color-gray);
}
.ont-scorers-table__body .ont-scorer-entry:nth-child(odd) {
    background-color: #f9f9f9;
}

.ont-scorer-entry__rank {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ont-color-purple);
    text-align: center;
    margin-bottom: 10px;
}
.ont-scorer-entry__player a {
    text-decoration: none;
    color: var(--ont-color-dark);
    text-align: center;
}
.ont-scorer-entry__player .player-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.ont-scorer-entry__player .player-name {
    display: block;
    font-weight: 700;
    margin-top: 10px;
}

.ont-scorer-entry__stats-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}
.ont-scorer-entry__stat {
    text-align: center;
    background-color: var(--ont-color-gray);
    padding: 10px;
    border-radius: 5px;
}
.stat-label-mobile {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #777;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.ont-scorer-entry__stat .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.ont-scorer-entry__team {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 15px;
}
.ont-scorer-entry__team .team-logo {
    height: 40px;
    width: auto;
}

/* ----- ESTILOS PARA ESCRITORIO (min-width: 992px) ----- */
@media (min-width: 992px) {
    .ont-scorers-table__header,
    .ont-scorer-entry {
        display: grid;
        grid-template-columns: 40px 1fr repeat(9, 60px) 80px;
        align-items: center;
        gap: 15px;
        padding: 15px;
        justify-content: space-between;
    }  
    section.ont-section.ont-section--scorers li.ont-scorer-entry {
    display: flex;
    }

    .ont-scorers-table__header {
        background-color: var(--ont-color-purple);
        color: #fff;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.8rem;
        border-radius: 8px 8px 0 0;
    }

    .stat-label-mobile {
        display: none;
    }

    .ont-scorer-entry__stats-grid,
    .ont-scorer-entry__team {
        grid-column: auto;
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }
    
    .ont-scorer-entry {
        grid-template-columns: 40px 1fr repeat(9, 60px) 80px;
    }

    .ont-scorer-entry__rank,
    .ont-scorer-entry__stat,
    .ont-scorer-entry__team {
        font-size: 1rem;
        font-weight: 700;
        text-align: center;
        background-color: transparent;
    }
    .ont-scorer-entry__stat:first-of-type {
        font-size: 1.2rem;
        color: var(--ont-color-orange);
    }
    
    .ont-scorer-entry__player a {
        display: flex;
        align-items: center;
        text-align: left;
    }
    .ont-scorer-entry__player .player-name {
        margin-top: 0;
        margin-left: 15px;
    }
}
.ont-scorer-entry__player {
    display: flex;
    align-items: center;
    justify-content: initial;
}

/*--------------------------------------------------------------
# 11.0 ESTILOS PARA LISTA DE EQUIPOS DE LIGA
--------------------------------------------------------------*/

.ont-teams-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
}

.ont-team-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ont-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.ont-team-card__logo img {
    width: 100%;
    height: auto;
    max-width: 100px;
    display: block;
    margin: 0 auto;
}

.ont-team-card__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ont-team-card__name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.ont-team-card__name a {
    text-decoration: none;
    color: var(--ont-color-dark);
}
.ont-team-card__name a:hover {
    color: var(--ont-color-orange);
}

.ont-team-card__kits {
    display: flex;
    gap: 10px;
    align-items: center;
}
.ont-team-card__kits img {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.ont-team-card__actions .ont-button {
    align-self: flex-start;
}

@media (min-width: 768px) {
    .ont-teams-list {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}

/*--------------------------------------------------------------
# 12.0 ESTILOS PARA PÁGINA DE EQUIPO (SINGLE EQUIPO)
--------------------------------------------------------------*/

.single-equipo .site-main {
    margin-top: 0;
}

.ont-team-header {
    padding: 40px 0;
    text-align: center;
    background-color: var(--ont-color-gray);
    border-bottom: 1px solid #e0e0e0;
}
.ont-team-header__logo {
    max-height: 120px;
    width: auto;
    margin-bottom: 20px;
}
.ont-team-header__name {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 20px;
}
.ont-team-header__kits {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.ont-team-header__kits img {
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ont-team-main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
}

.ont-team-photo figure {
    margin: 0;
    text-align: center;
}
.ont-team-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.ont-team-photo figcaption {
    margin-top: 15px;
    font-style: italic;
    color: #777;
}

.ont-team-roster .ont-section__title {
    text-align: center;
}

.ont-grid--roster-small {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    background: white;
    padding: 10px;
}
.ont-grid.ont-grid--roster-small a {
    text-align: center;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.ont-team-results {
    background-color: var(--ont-color-gray);
}

@media (min-width: 992px) {
    .ont-team-main-content {
        grid-template-columns: 2fr 3fr;
        align-items: anchor-center;
    }

    .ont-team-header__name {
        font-size: 4rem;
    }
}
@media (min-width: 768px) {
    .ont-grid--roster-small {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*--------------------------------------------------------------
# 5.0 ESTILOS DE PÁGINAS INDIVIDUALES (SINGLE)
--------------------------------------------------------------*/

.single-jugador .site-main {
    margin-top: 0;
}

.ont-player-header {
    background-color: var(--ont-color-dark);
    color: #fff;
    padding: 40px 0;
    position: relative;
}

.ont-player-header__grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: center;
}

.ont-player-header__photo-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #333; 
}

.ont-player-header__photo {
    width: 100%;
    height: auto;
    display: block;
}

.ont-player-header__inactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ont-player-header__dorsal {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--ont-color-orange);
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #fff;
    z-index: 1;
}

.ont-player-header__name {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.ont-player-header__team a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}
.ont-player-header__team a:hover { color: #fff; }
.ont-player-header__team-logo { height: 40px; width: auto; margin-right: 15px; }
.ont-player-header__team-name { font-size: 1.2rem; font-weight: 700; }

.ont-container--narrow { max-width: 800px; }
.ont-entry-content p, .ont-entry-content ul { font-size: 1.1rem; line-height: 1.8; }

.ont-teammates-section { background-color: var(--ont-color-gray); }

.ont-grid--roster-small {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
}

.ont-card--teammate { text-align: center; }
.ont-card--teammate a { text-decoration: none; }
.ont-card--teammate .ont-card__image-wrapper { border-radius: 50%; overflow: hidden; margin-bottom: 15px; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.ont-card--teammate .ont-card__title { font-size: 1.1rem; color: var(--ont-color-dark); }
.ont-card--teammate a:hover .ont-card__title { color: var(--ont-color-orange); }

@media (max-width: 768px) {
    .ont-player-header__grid { grid-template-columns: 1fr; text-align: center; }
    .ont-player-header__photo-wrapper { width: 200px; margin: 0 auto 30px; }
    .ont-player-header__name { font-size: 2.5rem; }
    .ont-player-header__team a { justify-content: center; }
}

@media (min-width: 768px) {
    .ont-grid--roster-small {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ont-player-header__subtitle {
    display: block;
    color: var(--ont-color-orange);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .home li.ont-scorer-entry {
        display: flex;
    }
}