
        /* ================= ESTILOS GENERALES ================= */
        body {
            background: #f0f2f5;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
        }

        .main-wrapper {
            width: 100%;
            max-width: 420px; /* Ancho ideal para móviles */
            padding: 15px;
            box-sizing: border-box;
        }

        h1 {
            color: #1e293b;
            text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
        }

        /* ================= SELECTOR DE JUGADORES ================= */
        .players-container {
            display: flex;
            gap: 10px;
            justify-content: center;
            padding: 10px 0;
        }

        .player-button {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0.6;
            transform: scale(0.9);
        }

        .player-button.selected {
            opacity: 1;
            transform: scale(1.1);
        }

        .circle-border {
            width: 55px;
            height: 55px;
            border-radius: 50%;
            padding: 3px;
            background: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .avatar {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background-color: #eee;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
            background-position: center;
            background-size: 60%;
            background-repeat: no-repeat;
        }

        /* Colores de empresas */
        .eirl .circle-border { border: 3px solid #f368e0; }
        .eirl span { color: #f368e0; font-weight: bold; font-size: 0.7rem; margin-top: 4px; }
        
        .sac .circle-border { border: 3px solid #3498db; }
        .sac span { color: #3498db; font-weight: bold; font-size: 0.7rem; margin-top: 4px; }
        
        .saa .circle-border { border: 3px solid #2ecc71; }
        .saa span { color: #2ecc71; font-weight: bold; font-size: 0.7rem; margin-top: 4px; }
        
        .srl .circle-border { border: 3px solid #e74c3c; }
        .srl span { color: #e74c3c; font-weight: bold; font-size: 0.7rem; margin-top: 4px; }

        /* ================= TABLERO 5x5 (CORE) ================= */
        .board-container {
            position: relative;
            width: 100%;
            aspect-ratio: 1; /* Mantiene el cuadrado perfecto */
            background: #2c3e50;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            border: 4px solid #34495e;
            margin: 20px 0;
            box-sizing: border-box;
        }

        /* --- CÁLCULO DE POSICIONES PARA 5x5 --- 
           Ancho total = 100%
           5 casillas = 100 / 5 = 20%
           Usamos 18% para dejar margen.
           Posiciones (P): 
           P0: 2% (Inicio)
           P1: 21.5%
           P2: 41% (Centro exacto de columna/fila media)
           P3: 60.5%
           P4: 80% (Final)
        */

        .board-cell {
            position: absolute;
            width: 18%;  /* 18% ancho */
            height: 18%; /* 18% alto */
            background-color: #4b6584; /* Color de respaldo si falla img */
            border-radius: 8px;
            border: 2px solid rgba(255,255,255,0.3);
            cursor: pointer;
            transition: transform 0.2s;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2;
        }

        .board-cell img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .board-cell:hover {
            transform: scale(1.1);
            border-color: #f1c40f;
            z-index: 10;
        }

        /* FILA SUPERIOR (0-4) */
        .cell-0 { top: 2%; left: 2%; }
        .cell-1 { top: 2%; left: 21.5%; }
        .cell-2 { top: 2%; left: 41%; }
        .cell-3 { top: 2%; left: 60.5%; }
        .cell-4 { top: 2%; left: 80%; }

        /* COLUMNA DERECHA (5-7) */
        .cell-5 { top: 21.5%; left: 80%; }
        .cell-6 { top: 41%; left: 80%; }
        .cell-7 { top: 60.5%; left: 80%; }

        /* FILA INFERIOR (8-12) - Inverso */
        .cell-8 { top: 80%; left: 80%; }
        .cell-9 { top: 80%; left: 60.5%; }
        .cell-10 { top: 80%; left: 41%; }
        .cell-11 { top: 80%; left: 21.5%; }
        .cell-12 { top: 80%; left: 2%; }

        /* COLUMNA IZQUIERDA (13-15) - Inverso */
        .cell-13 { top: 60.5%; left: 2%; }
        .cell-14 { top: 41%; left: 2%; }
        .cell-15 { top: 21.5%; left: 2%; }

        /* CENTRO (Logo) - Ocupa el espacio de 3x3 interior */
        .center-logo {
            position: absolute;
            top: 21.5%;
            left: 21.5%;
            width: 57%; /* Abarca desde P1 hasta P3 */
            height: 57%;
            background: #1e272e;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1;
            padding: 10px;
            box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
        }

        .center-logo img {
            width: 80%;
            height: auto;
            object-fit: contain;
            margin-bottom: 5px;
        }

        .center-logo-text {
            color: #bdc3c7;
            font-size: 0.65rem;
            text-align: center;
            line-height: 1.2;
        }

        /* MEEPLE */
        .meeple {
            position: absolute;
            width: 40px;
            height: 20px;
            z-index: 20;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5));
            pointer-events: none;
            display: none; /* Oculto hasta seleccionar empresa */
        }
        
        .move-animation {
            transform: scale(1.3) rotate(15deg);
        }

        /* ================= DADOS Y CONTROLES ================= */
        .controls-area {
            background: white;
            padding: 15px;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            text-align: center;
        }

        .dice-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 15px;
        }

        .dice {
            width: 50px;
            height: 50px;
            background: white;
            border: 2px solid #333;
            border-radius: 10px;
            display: grid;
            grid-template: repeat(3, 1fr) / repeat(3, 1fr);
            padding: 4px;
            box-sizing: border-box;
            box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
            transition: transform 0.5s;
        }

        .dot {
            background-color: #333;
            border-radius: 50%;
            align-self: center;
            justify-self: center;
            width: 8px;
            height: 8px;
            visibility: hidden; /* Por defecto ocultos */
        }
        
        /* Clases para mostrar puntos según el número */
        .d-1 .dot:nth-child(5) { visibility: visible; }
        
        .d-2 .dot:nth-child(1), .d-2 .dot:nth-child(9) { visibility: visible; }
        
        .d-3 .dot:nth-child(1), .d-3 .dot:nth-child(5), .d-3 .dot:nth-child(9) { visibility: visible; }
        
        .d-4 .dot:nth-child(1), .d-4 .dot:nth-child(3), 
        .d-4 .dot:nth-child(7), .d-4 .dot:nth-child(9) { visibility: visible; }
        
        .d-5 .dot:nth-child(1), .d-5 .dot:nth-child(3), .d-5 .dot:nth-child(5), 
        .d-5 .dot:nth-child(7), .d-5 .dot:nth-child(9) { visibility: visible; }
        
        .d-6 .dot:nth-child(1), .d-6 .dot:nth-child(3), .d-6 .dot:nth-child(4), 
        .d-6 .dot:nth-child(6), .d-6 .dot:nth-child(7), .d-6 .dot:nth-child(9) { visibility: visible; }

        .btn-action {
            width: 100%;
            background: linear-gradient(45deg, #f1c40f, #f39c12);
            border: none;
            padding: 12px;
            border-radius: 8px;
            color: #2c3e50;
            font-weight: bold;
            font-size: 1rem;
            cursor: pointer;
            box-shadow: 0 4px 0 #d35400;
            transition: all 0.1s;
        }
        
        .btn-action:active {
            transform: translateY(4px);
            box-shadow: 0 0 0 #d35400;
        }

        .btn-action:disabled {
            background: #bdc3c7;
            box-shadow: none;
            color: #7f8c8d;
            cursor: not-allowed;
            transform: none;
        }

        /* Selector de movimiento */
        .move-selector {
            display: none; /* Oculto por defecto */
            flex-wrap: wrap;
            gap: 5px;
            justify-content: center;
            margin-top: 10px;
        }
        
        .btn-move {
            background: #3498db;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            font-size: 0.8rem;
            cursor: pointer;
        }

        /* Asistente */
        .ai-assistant {
            margin-top: 15px;
            background: linear-gradient(135deg, #0984e3, #74b9ff);
            padding: 15px;
            border-radius: 10px;
            color: white;
            box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
        }

        /* Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.8);
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 20px;
            box-sizing: border-box;
        }
        
        .modal-content {
            background: white;
            padding: 20px;
            border-radius: 15px;
            max-width: 350px;
            width: 100%;
            text-align: center;
        }

        /* Animación de dados */
        .rolling { animation: shake 0.5s infinite; }
        
        @keyframes shake {
            0% { transform: rotate(0deg); }
            25% { transform: rotate(10deg); }
            50% { transform: rotate(0deg); }
            75% { transform: rotate(-10deg); }
            100% { transform: rotate(0deg); }
        }
 