:root {
    /* Tipografía nativa de Apple */
    --font-mac: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mac-bg: rgba(30, 30, 30, 0.6);
    --mac-border: rgba(255, 255, 255, 0.15);
    --mac-text: #ffffff;
    --mac-text-muted: rgba(255, 255, 255, 0.6);
    --mac-blue: #0A84FF;
    --mac-green: #30D158;
}

body {
    font-family: var(--font-mac);
    color: var(--mac-text);
    margin: 0;
    padding: 40px 20px;
    box-sizing: border-box;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.mac-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Efecto Ventana macOS con Glassmorphism */
.mac-window {
    background: var(--mac-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--mac-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Barra superior de la ventana */
.mac-titlebar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--mac-border);
}

.mac-buttons {
    display: flex;
    gap: 8px;
    width: 60px;
}

.mac-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.mac-btn.close { background: #FF5F56; border: 1px solid #E0443E; }
.mac-btn.minimize { background: #FFBD2E; border: 1px solid #DEA123; }
.mac-btn.maximize { background: #27C93F; border: 1px solid #1AAB29; }

.mac-title {
    flex-grow: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mac-text-muted);
    margin-left: -60px; /* Centrar absoluto compensando botones */
}

.mac-content {
    padding: 24px;
}

.text-center { text-align: center; }
.hero-window h1 { margin: 0 0 10px 0; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.5px; }
.desc { color: var(--mac-text-muted); font-size: 1.1rem; }

/* Chips (Etiquetas) */
.stats-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.mac-chip {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--mac-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Puntos de estado */
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-green { background: #32D74B; box-shadow: 0 0 8px #32D74B; }
.dot-red { background: #FF453A; box-shadow: 0 0 8px #FF453A; }
.dot-orange { background: #FF9F0A; box-shadow: 0 0 8px #FF9F0A; }
.dot-gray { background: #8E8E93; }

/* Botones de acción */
.action-buttons { margin-top: 30px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.mac-btn-action {
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.btn-whatsapp { background: #242424; color: white; border-color: rgba(255,255,255,0.2); }
.btn-whatsapp:hover { background: #2A2A2A; border-color: #32D74B; }
.btn-game { background: var(--mac-blue); color: white; }
.btn-game:hover { filter: brightness(1.1); }

/* Buscador Spotlight */
.spotlight-search {
    display: flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.search-icon { font-size: 1.2rem; margin-right: 12px; opacity: 0.6; }
.mac-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-family: var(--font-mac);
    width: 100%;
    outline: none;
}
.mac-input::placeholder { color: var(--mac-text-muted); }

/* Grids y Listas */
.section-title { font-size: 1.8rem; font-weight: 600; margin-bottom: 24px; letter-spacing: -0.5px; }
.role-title { font-weight: 500; color: var(--mac-text-muted); margin-top: 40px; }

.mac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.mac-list { list-style: none; padding: 0; margin: 0; }
.mac-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mac-list li:last-child { border-bottom: none; padding-bottom: 0; }
.p-info strong { display: block; font-size: 1.05rem; }
.p-info small { color: var(--mac-text-muted); font-size: 0.85rem; }
.p-score { font-weight: 600; }
.text-blue { color: #5E5CE6; font-weight: 700; }

/* --- ESTILOS PARA LOS MAZOS DE CARTAS --- */
.deck-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--mac-border);
    text-align: center;
}

.mac-deck-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--mac-border);
    color: var(--mac-text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-mac);
    transition: background 0.2s;
}

.mac-deck-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.deck-container {
    min-height: 20px;
}

.cards-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.cr-card-img {
    width: 22%; /* 4 cartas por fila en móvil */
    max-width: 60px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.2s;
}

.cr-card-img:hover {
    transform: translateY(-5px);
}