﻿bodyLanding {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.headerLanding {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #333;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.headerLanding img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.headerLanding .headerLanding-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.headerLanding h1 {
    margin: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.containerLanding {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.intro {
    text-align: center;
    margin-bottom: 20px;
}

.inicio {
    text-align: center;
    margin-bottom: 20px;
}

.cta-button {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #CCCCCC;
    color: white;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #555;
}

/*Cookies*/
#cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    border-top: 3px solid #000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.cookie-message p {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.cookie-message a {
    color: #CCCCCC;
    text-decoration: underline;
}

    .cookie-message a:hover {
        color: #fff;
    }

.cookie-buttons, .cookie-config-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    width: auto;
}

#accept-cookies, #config-cookies, #confirm-cookies {
    background-color: #CCCCCC;
    color: #333;
    border: 2px solid #000;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: Arial, sans-serif;
    margin: 0;
}

    #accept-cookies:hover, #config-cookies:hover, #confirm-cookies:hover {
        background-color: #555;
        color: white;
    }

#cookie-config {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.cookie-config-modal {
    background-color: #fff;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cookie-options {
    margin: 20px 0;
}

    .cookie-options label {
        display: block;
        margin-bottom: 10px;
        font-family: Arial, sans-serif;
    }

    .cookie-options input {
        margin-right: 10px;
    }


/* ************************ */

.grid-partidas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.ficha-partida {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 10px;
    width: 200px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .ficha-partida img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 10px;
    }

    .ficha-partida h4 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

.ficha-partida h5 {
    font-size: 1.1em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

    .ficha-partida h5[title]:hover::after {
        content: attr(title);
        position: absolute;
        background: #333;
        color: white;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 0.9em;
        white-space: normal;
        max-width: 240px;
        top: 110%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .ficha-partida.seleccionada {
        border-color: #008000;
        box-shadow: 0 0 10px #00a000;
    }

.botoneraLandingPartidas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.boton-desactivado {
    opacity: 0.5;
    pointer-events: none;
}

.resumen-partida {
    /*display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 15px 20px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 150px;*/ /* ✅ altura fija */
    /*overflow: hidden;*/
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    gap: 10px;
}

.resumen-contenido-superior {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

    .resumen-partida img {
        /*      width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;*/
        height: 100%;
        width: auto;
        max-width: 150px;
        object-fit: cover;
        border-radius: 10px;
        background-color: #f5f5f5;
        padding: 6px;
        border: 1px solid #ccc;
    }

#bloqueSeleccionPartida .grid-partidas {
    text-align: left !important;
}

.info-partida-activa {
    /*    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    padding-right: 20px;
    flex: 1;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    padding: 0 10px;
    overflow: hidden;
}

    .info-partida-activa h4 {
        /*        margin-top: 0;
        font-size: 1.3em;
        margin-bottom: 10px;
        color: #333;*/
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 1.2rem;
        margin: 0 0 4px 0; /* margen inferior pequeño */
        color: #222;
    }

    .info-partida-activa p {
        /*        font-size: 1em;
        color: #555;
        text-align: justify;
        height: 100px;
        overflow: hidden;
        position: relative;*/
        font-size: 0.95rem;
        color: #555;
        text-align: justify;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        line-height: 1.3em;
        max-height: calc(1.3em * 4); /* Máximo 4 líneas */
    }
    .info-partida-activa p.ellipsis::after {
        content: '...';
        position: absolute;
        bottom: 0;
        right: 0;
        padding-left: 20px;
        background: linear-gradient(to right, transparent, #fff 50%);
    }

/*.resumen-partida img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;*/ /* redondeo similar */
    /*background-color: #f5f5f5;*/ /* fondo gris claro */
    /*padding: 6px;*/ /* espacio interior */
    /*border: 1px solid #ccc;*/ /* borde sutil */
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/ /* sombra ligera */
/*}*/

.icono-propia-inline {
    /*    color: #28a745;
    margin-left: 6px;
    font-size: 1em;
    vertical-align: middle;*/
    color: #28a745;
    font-size: 1rem;
}

.intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 10px 20px;
}

    .intro h2 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .intro .resaltado {
        color: #2a7f62;
        font-weight: bold;
    }

.intro-parrafo {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 20px auto;
    color: #444;
}

.intro-caracteristicas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.intro-item {
    width: 220px;
    padding: 15px;
    background-color: #fafafa;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.intro-item i {
    font-size: 2em;
    margin-bottom: 10px;
    color: #28a745;
}

.intro-item p {
    font-size: 0.95em;
    color: #555;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro {
    animation: fadeSlideUp 0.8s ease-out both;
}

.intro-item {
    animation: fadeSlideUp 0.6s ease-out both;
    animation-delay: 0.4s;
}

.intro-item:nth-child(2) {
    animation-delay: 0.6s;
}

.intro-item:nth-child(3) {
    animation-delay: 0.8s;
}

.bloque-partida-activa {
    margin: 0 30px; /* margen horizontal */
}

.barra-partidas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 30px 10px 30px;
}

.acciones-partidas {
    display: flex;
    gap: 10px;
}



/*.ejemplos-carrusel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.ejemplos-carrusel img {
    height: 180px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}*/

/*.carrusel {
    width: 100%;
    max-width: 900px;
    height: 120px;
    overflow: hidden;
    margin: 30px auto 60px auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.carrusel-imagenes {
    display: flex;
    height: 100%;
    transition: transform 1s ease;
}

    .carrusel-imagenes img {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }*/



.bloque-novedades {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 30px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    animation: fadeSlideUp 0.8s ease-out both;
}

    .bloque-novedades h3 {
        font-size: 1.5em;
        color: #2a7f62;
        margin-bottom: 10px;
        border-bottom: 2px solid #2a7f62;
        padding-bottom: 5px;
    }

    .bloque-novedades h5 {
        font-size: 1.1em;
        color: #444;
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .bloque-novedades ul {
        padding-left: 20px;
        margin: 10px 0 20px;
        list-style-type: disc;
    }

    .bloque-novedades li {
        margin-bottom: 6px;
        color: #555;
        font-size: 0.95em;
    }

    .bloque-novedades br {
        display: none; /* opcional: oculta los saltos extra si sobran */
    }

@media (max-width: 600px) {
    .acciones-partidas {
        flex-direction: column;
        align-items: stretch;
    }

    .acciones-partidas button {
        font-size: 0.8rem;
        padding: 6px 10px;
        flex: 1;
    }
}

.grid-partidas-administracion {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}


.usuarios-partida-listado {
    display: flex;
    gap: 10px;
    margin-top: 2px;
    margin-left: 0;
    padding-left: 10px;
    padding-bottom: 5px;
    flex-wrap: wrap;
    width: 100%;
}

    .usuarios-partida-listado img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid #444;
        display: block;
        padding: 0;
        background: none;
        box-sizing: content-box;
    }

.usuarios-partida-listado img[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9em;
    white-space: nowrap;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


.separador-resumen-partida {
    border: none;
    height: 1px;
    background: #ccc;
    margin: 10px 0 4px 0;
}