html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

:root {
    --verde-oscuro: #123c2d;
    --verde-tenis: #198754;
    --verde-claro: #2fb36f;
    --amarillo-tenis: #d9f248;
    --fondo-suave: #f5f8f6;
    --texto-oscuro: #17352a;
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: var(--fondo-suave);
    color: var(--texto-oscuro);
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar-tenis {
    background-color: var(--verde-oscuro);
    min-height: 70px;
}

.navbar-brand {
    font-size: 1.35rem;
}

.navbar-tenis .nav-link {
    color: rgba(255, 255, 255, 0.82);
    margin-left: 12px;
    font-weight: 500;
}

.logo-navbar-wrap {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.logo-navbar-tenis {
    display: block;
    width: auto;
    height: 40px;
    object-fit: contain;
}

.navbar {
    min-height: 74px;
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (max-width: 767.98px) {
    .navbar {
        min-height: 64px;
    }

    .logo-navbar-wrap {
        padding: 4px 8px;
        border-radius: 10px;
    }

    .logo-navbar-tenis {
        height: 32px;
    }
}

.login-logo-contenedor {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 2.25rem;
}

.login-logo-horizontal {
    width: 220px;
    max-width: 100%;
    height: 76px;
    display: block;
    border-radius: 14px;
    object-fit: contain;
    background: #ffffff;
    padding: 6px 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    border-radius: 5px;
}

@media (max-width: 767.98px) {
    .login-logo-contenedor {
        justify-content: center;
        margin-top: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .login-logo-horizontal {
        width: 190px;
        height: 66px;
        border-radius: 12px;
        padding: 5px 8px;
    }
}
.navbar-tenis .nav-link:hover {
    color: var(--amarillo-tenis);
}

.pelota-logo {
    color: var(--amarillo-tenis);
    font-size: 1.5rem;
    margin-right: 5px;
}

.opcion-proximamente {
    opacity: 0.45;
    cursor: default;
}

.hero-tenis {
    color: white;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(217, 242, 72, 0.16),
            transparent 32%
        ),
        linear-gradient(
            125deg,
            #0d2e22 0%,
            #15583b 60%,
            #198754 100%
        );
}

.min-vh-hero {
    min-height: 510px;
}

.hero-etiqueta {
    display: inline-block;
    color: var(--amarillo-tenis);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-titulo {
    max-width: 700px;
    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    margin-bottom: 24px;
}

.hero-titulo span {
    color: var(--amarillo-tenis);
}

.hero-texto {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.18rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.btn-tenis {
    color: #173022;
    background-color: var(--amarillo-tenis);
    border-color: var(--amarillo-tenis);
    font-weight: 700;
}

.btn-tenis:hover {
    color: white;
    background-color: var(--verde-claro);
    border-color: var(--verde-claro);
}

.pelota-grande {
    position: relative;
    width: 280px;
    height: 280px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--amarillo-tenis);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.28);
    transform: rotate(-18deg);
}

.linea-pelota {
    position: absolute;
    width: 170px;
    height: 330px;
    top: -25px;
    border: 7px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.linea-izquierda {
    left: -112px;
}

.linea-derecha {
    right: -112px;
}

.seccion-modulos {
    padding: 75px 0;
}

.titulo-seccion {
    font-weight: 800;
    color: var(--verde-oscuro);
}

.modulo-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(18, 60, 45, 0.09);
    transition: transform 0.2s, box-shadow 0.2s;
}

.modulo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 38px rgba(18, 60, 45, 0.15);
}

.modulo-card .card-body {
    padding: 28px;
}

.modulo-card h4 {
    color: var(--verde-oscuro);
    font-weight: 750;
}

.modulo-card p {
    color: #687a72;
    line-height: 1.6;
}

.numero-modulo {
    color: var(--verde-tenis);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.enlace-modulo {
    color: var(--verde-tenis);
    font-weight: 700;
    text-decoration: none;
}

.enlace-modulo:hover {
    color: var(--verde-oscuro);
}

.footer-torneos {
    color: rgba(255, 255, 255, 0.7);
    background-color: #0b281e;
    padding: 22px 0;
}

.input-validation-error {
    border-color: #dc3545;
}

.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
}

@media (max-width: 991px) {
    .min-vh-hero {
        min-height: 470px;
        padding: 70px 0;
    }

    .navbar-tenis .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

.torneo-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.torneo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 38px rgba(18, 60, 45, 0.15) !important;
}

.opcion-seleccion {
    display: flex;
    gap: 14px;
    padding: 20px;
    border: 2px solid #e5ece8;
    border-radius: 15px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.opcion-seleccion:hover {
    border-color: var(--verde-claro);
    background-color: #f7fff9;
}

.opcion-seleccion:has(input:checked) {
    border-color: var(--verde-tenis);
    background-color: #effbf4;
}

.opcion-seleccion .form-check-input {
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 2px;
}

.opcion-contenido {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.opcion-contenido strong {
    color: var(--verde-oscuro);
}

.opcion-contenido small {
    color: #718078;
}

.resumen-cuadros {
    color: white;
    background: linear-gradient(
        120deg,
        var(--verde-oscuro),
        var(--verde-tenis)
    );
}

.cantidad-cuadros {
    min-width: 75px;
    color: var(--verde-oscuro);
    background-color: var(--amarillo-tenis);
    border-radius: 15px;
    padding: 10px 20px;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
}

.modalidad-card {
    background-color: #f8faf9;
    border: 1px solid #e4ece7 !important;
}

.categoria-selector {
    position: relative;
    cursor: pointer;
}

.categoria-selector input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.categoria-selector span {
    display: inline-block;
    color: var(--verde-oscuro);
    background-color: white;
    border: 2px solid #dfe8e3;
    border-radius: 12px;
    padding: 9px 15px;
    font-weight: 650;
    transition: all 0.2s;
}

.categoria-selector:hover span {
    border-color: var(--verde-claro);
}

.categoria-selector input:checked + span {
    color: white;
    background-color: var(--verde-tenis);
    border-color: var(--verde-tenis);
    box-shadow: 0 5px 12px rgba(25, 135, 84, 0.22);
}
.detalle-torneo {
    border-left: 6px solid var(--verde-tenis) !important;
}

.fecha-torneo {
    min-width: 210px;
    padding: 18px 22px;
    background-color: #f2f8f4;
    border-radius: 15px;
}

.contador-detalle {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    color: white;
    background-color: var(--verde-oscuro);
    border-radius: 15px;
    padding: 10px 20px;
}

.contador-detalle strong {
    color: var(--amarillo-tenis);
    font-size: 1.7rem;
    line-height: 1;
}

.contador-detalle span {
    font-size: 0.8rem;
    margin-top: 5px;
}

.cuadro-card {
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cuadro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 38px rgba(18, 60, 45, 0.15) !important;
}

.categoria-grande {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: var(--verde-oscuro);
    background-color: var(--amarillo-tenis);
    border-radius: 16px;
    font-size: 1.8rem;
    font-weight: 800;
}

.formato-cuadro {
    color: var(--verde-oscuro);
    background-color: #f2f8f4;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 0.9rem;
    font-weight: 600;
}

.contador-inscripciones {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 115px;
    color: white;
    background-color: var(--verde-oscuro);
    border-radius: 16px;
    padding: 14px 22px;
}

.contador-inscripciones strong {
    color: var(--amarillo-tenis);
    font-size: 2rem;
    line-height: 1;
}

.contador-inscripciones span {
    margin-top: 5px;
    font-weight: 600;
}

.contador-inscripciones small {
    color: rgba(255, 255, 255, 0.7);
}

.estado-cuadro-listo,
.estado-cuadro-pendiente {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.estado-cuadro-listo {
    color: white;
    background-color: var(--verde-tenis);
}

.estado-cuadro-pendiente {
    color: #634d00;
    background-color: #fff4c7;
}

.estado-cuadro-listo div,
.estado-cuadro-pendiente div {
    display: flex;
    flex-direction: column;
}

.lista-inscripciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inscripcion-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    background-color: #f7faf8;
    border: 1px solid #e5ece8;
    border-radius: 13px;
}

.numero-inscripcion {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    color: white;
    background-color: var(--verde-oscuro);
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 575px) {
    .estado-cuadro-listo,
    .estado-cuadro-pendiente {
        align-items: stretch;
        flex-direction: column;
    }

    .inscripcion-item {
        flex-wrap: wrap;
    }

    .inscripcion-item .btn {
        width: 100%;
    }
}

.cruce-editor {
    padding: 20px;
    background-color: #f7faf8;
    border: 1px solid #e1e9e4;
    border-radius: 15px;
}

.cruce-editor-titulo {
    color: var(--verde-oscuro);
    font-weight: 800;
    margin-bottom: 15px;
}

.separador-vs {
    color: var(--verde-tenis);
    font-size: 0.75rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 2px;
    margin: 8px 0;
}

.cuadro-scroll {
    overflow-x: auto;
    background:
        radial-gradient(
            circle at top right,
            rgba(217, 242, 72, 0.08),
            transparent 30%
        ),
        #082e39;
    padding: 25px;
}

.cuadro-visual {
    display: flex;
    align-items: stretch;
    gap: 55px;
    width: max-content;
    min-width: 100%;
}

.columna-ronda {
    display: flex;
    flex-direction: column;
    width: 310px;
    min-width: 310px;
}

.titulo-ronda {
    color: var(--amarillo-tenis);
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.partidos-ronda {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    gap: 30px;
}

.partido-etiqueta {
    overflow: hidden;
    color: white;
    background-color: #0d5060;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.24);
}

.partido-numero {
    color: rgba(255, 255, 255, 0.55);
    background-color: rgba(0, 0, 0, 0.13);
    padding: 6px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fila-participante {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fila-participante.ganador {
    color: var(--amarillo-tenis);
    font-weight: 800;
}

.marca-ganador {
    flex-shrink: 0;
    width: 20px;
    color: var(--amarillo-tenis);
    font-size: 1.15rem;
    font-weight: 900;
}

.nombre-participante {
    flex: 1;
    overflow: hidden;
    padding-right: 8px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sets-participante {
    display: flex;
    flex-shrink: 0;
    gap: 5px;
}

.sets-participante span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 30px;
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-weight: 800;
}

.ganador .sets-participante span {
    color: var(--amarillo-tenis);
    border: 1px solid var(--amarillo-tenis);
}

.partido-acciones {
    padding: 9px 11px;
    text-align: right;
}

@media (max-width: 575px) {
    .cuadro-scroll {
        padding: 16px;
    }

    .cuadro-visual {
        gap: 30px;
    }

    .columna-ronda {
        width: 280px;
        min-width: 280px;
    }
}

.cruce-editor {
    padding: 20px;
    background-color: #f7faf8;
    border: 1px solid #e1e9e4;
    border-radius: 15px;
}

.cruce-editor-titulo {
    color: var(--verde-oscuro);
    font-weight: 800;
    margin-bottom: 15px;
}

.separador-vs {
    color: var(--verde-tenis);
    font-size: 0.75rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 2px;
    margin: 8px 0;
}

.cuadro-scroll {
    overflow-x: auto;
    background:
        radial-gradient(
            circle at top right,
            rgba(217, 242, 72, 0.08),
            transparent 30%
        ),
        #082e39;
    padding: 25px;
}

.cuadro-visual {
    display: flex;
    align-items: stretch;
    gap: 55px;
    width: max-content;
    min-width: 100%;
}

.columna-ronda {
    display: flex;
    flex-direction: column;
    width: 310px;
    min-width: 310px;
}

.titulo-ronda {
    color: var(--amarillo-tenis);
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.partidos-ronda {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    gap: 30px;
}

.partido-etiqueta {
    overflow: hidden;
    color: white;
    background-color: #0d5060;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.24);
}

.partido-numero {
    color: rgba(255, 255, 255, 0.55);
    background-color: rgba(0, 0, 0, 0.13);
    padding: 6px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fila-participante {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fila-participante.ganador {
    color: var(--amarillo-tenis);
    font-weight: 800;
}

.marca-ganador {
    flex-shrink: 0;
    width: 20px;
    color: var(--amarillo-tenis);
    font-size: 1.15rem;
    font-weight: 900;
}

.nombre-participante {
    flex: 1;
    overflow: hidden;
    padding-right: 8px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sets-participante {
    display: flex;
    flex-shrink: 0;
    gap: 5px;
}

.sets-participante span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 30px;
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-weight: 800;
}

.ganador .sets-participante span {
    color: var(--amarillo-tenis);
    border: 1px solid var(--amarillo-tenis);
}

.partido-acciones {
    padding: 9px 11px;
    text-align: right;
}

@media (max-width: 575px) {
    .cuadro-scroll {
        padding: 16px;
    }

    .cuadro-visual {
        gap: 30px;
    }

    .columna-ronda {
        width: 280px;
        min-width: 280px;
    }
}

.resultado-enfrentamiento {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    color: white;
    background-color: #0d5060;
    border-radius: 14px;
    padding: 18px;
}

.resultado-enfrentamiento > span {
    color: var(--amarillo-tenis);
    font-size: 0.8rem;
    font-weight: 900;
}

.resultado-nombre {
    font-weight: 750;
    text-align: center;
}

.tabla-resultados th {
    font-size: 0.85rem;
    vertical-align: middle;
}

.marcador-set {
    min-width: 75px;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 575px) {
    .resultado-enfrentamiento {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tabla-resultados {
        min-width: 470px;
    }
}

.cuadro-listado-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.cuadro-listado-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.cuadro-listado-link:hover .cuadro-listado-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 38px rgba(18, 60, 45, 0.15) !important;
}

.cuadro-listado-link:hover .btn-outline-success {
    color: white;
    background-color: var(--verde-tenis);
}

.usuario-menu {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: white;
}

.usuario-menu-icono {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1rem;
}

.usuario-menu-nombre,
.usuario-menu-rol {
    display: block;
    line-height: 1.15;
}

.usuario-menu-nombre {
    max-width: 140px;
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.usuario-menu-rol {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .usuario-menu {
        width: 100%;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .usuario-menu-nombre {
        max-width: 220px;
    }
}
.logo-navbar-tenis {
    height: 42px;
    width: auto;
    display: block;
}

@media (max-width: 767.98px) {
    .logo-navbar-tenis {
        height: 34px;
    }
}