/* TIRADA CRUZ CELTA - LAYOUT ESPECÍFICO */

.cruz-celta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* ÁREA DE LA CRUZ */
.cross-area {
    display: grid;
    grid-template-columns: repeat(3, 110px);
    grid-template-rows: repeat(3, auto); /* Cambiado a auto */
    gap: 10px;
    position: relative;
    justify-content: center;
    margin-right: 20px;
    min-height: 500px;
}

/* Ajustes de las posiciones para la cruz */
.cross-area .posicion {
    max-width: 110px;
    min-height: 160px; /* Usar min-height en vez de height */
}

/* Permitir que crezca cuando hay carta seleccionada */
.posicion.seleccionada {
    height: auto !important;
    aspect-ratio: auto !important;
}

/* POSICIONAMIENTO ESPECÍFICO EN EL GRID */
.pos-top { grid-column: 2; grid-row: 1; }
.pos-bottom { grid-column: 2; grid-row: 3; }
.pos-left { grid-column: 1; grid-row: 2; align-self: center; }
.pos-right { grid-column: 3; grid-row: 2; align-self: center; }
.pos-center-base { grid-column: 2; grid-row: 2; }

/* CARTA CRUZADA (Nivel 2) */
.pos-center-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 110px;
    height: 160px;
    z-index: 5;
    background: rgba(30, 41, 59, 0.7) !important; /* Más transparente */
    backdrop-filter: blur(4px);
}

.pos-center-cross.seleccionada {
    height: 120px !important;
    width: 180px !important;
    overflow: visible !important; /* Permitir que se vea todo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pos-center-cross.seleccionada .posicion-carta {
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pos-center-cross.seleccionada .posicion-carta-img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.pos-center-cross:hover {
    transform: translate(-50%, -50%) rotate(90deg) scale(1.08);
}

/* ÁREA DE LA COLUMNA */
.column-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-end;
}

.column-area .posicion {
    width: 100px;
    min-height: 150px; /* Aumentado de 140 */
    max-width: 100px;
}

.cruz-celta-wrapper .posicion-nombre {
    font-size: 0.65em;
    padding-top: 4px;
}

.cruz-celta-wrapper .posicion-desc {
    font-size: 0.55em;
    height: auto;
    margin-bottom: 4px;
}

/* RESPONSIVE */
@media (max-width: 800px) {
    .cruz-celta-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .cross-area {
        grid-template-columns: repeat(3, 90px);
        gap: 8px;
        min-height: 400px;
    }
    
    .pos-center-cross {
        width: 90px;
        height: 130px;
    }
    
    .column-area {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .column-area .posicion {
        width: 85px;
        min-height: 125px;
    }
}
